Changes between Version 7 and Version 8 of setup_dedicated_ip


Ignore:
Timestamp:
Dec 19, 2008, 2:36:02 PM (13 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • setup_dedicated_ip

    v7 v8  
     1= Allocate dedicated IP address to a member =
     2
    13If a member wants a dedicated IP on one of our shared servers, these are the steps for setting it up.
    24
    3  1. Allocated the IP by editing the [wiki:ip_allocation] page, putting the member domain name next to the next available IP address.
    4  1. Edit the file /etc/network/interfaces on the machine in which the account is hosted. Add a stanza like the following (summup.org is the domain name of hosting order. The Address and netmask should reflect the address and netmask of the record you took from the [wiki:ip_allocation IP allocation] page):
     5 * Allocated the IP by editing the [wiki:ip_allocation] page, putting the member domain name next to the next available IP address.
     6
     7'''Xen or standalone server'''
     8
     9 * Edit the file /etc/network/interfaces on the machine in which the account is hosted. Add a stanza like the following (summup.org is the domain name of hosting order. The Address and netmask should reflect the address and netmask of the record you took from the [wiki:ip_allocation IP allocation] page):
    510{{{
    611auto eth0:summup.org
     
    914  netmask 255.255.255.240
    1015}}}
    11  1. Bring the new IP up with (change summup.org to the domain name that you used):
     16 * Bring the new IP up with (change summup.org to the domain name that you used):
    1217{{{
    1318sudo ifup eth0:summup.org
    1419}}}
    15  1. Modify the DNS records via the [https://members.mayfirst.org/cp members control panel] )DNS service). For advanced users, you should ask them to make this change. Change the IP address of the A records to the new ip (usually this would just be, in the example above, summup.org and www.summup.org). The SSL certificate will typically only apply to these domains - so you don't want to change the IP address of, for example, summup.mayfirst.org.
    16  1. Add an ssl record to the web config via the [https://members.mayfirst.org/cp members control panel]. For advanced users, you should ask them to make this change. Under web config, click add new item. Be sure to copy and paste the values from the existing web config rather than taking the default values - you want to be sure to include any extras that you might have added (like the drupal AllowOverride lines). Specify the same login as the owner, make it enabled, specify https, for IP address specify the IP address that has been allocated. Finally, add three new lines (Replace chavez with the name of the server the site is hosted on. NOTE: They will need to change these lines after they have purchased an SSL certificate so that they point to their own ssl certificate. These lines are just starters so that it works without an error.)
     20
     21'''vserver'''
     22
     23For references, see [http://linux-vserver.org/Frequently_Asked_Questions#How_do_I_add_several_IPs_to_a_vserver.3F linux-vserver.org faq].
     24
     25 * Add the following files on the vserver host in /etc/vservers/name-of-vserver/interfaces/name-of-interface/
     26  * dev (eth0, eth1, eth2, etc.)
     27  * ip
     28  * prefix (for example, 27 for a /27 address)
     29 * To make it live without restarting the vserver, run the following on the host (not guest):
     30  * Add it via ip (change values as needed):
     31{{{
     32ip addr add 194.169.123.23/24 dev eth1
     33}}}
     34  * Add the ip to the guest's network context (a guests NID is the same as the XID {context ID})
     35{{{
     36naddress --add --nid <nid> --ip 194.169.123.23/24
     37}}}
     38  * Enter the guest and restart any services needing the IP address
     39
     40== All hosts ==
     41
     42 * Modify the DNS records via the [https://members.mayfirst.org/cp members control panel] )DNS service). For advanced users, you should ask them to make this change. Change the IP address of the A records to the new ip (usually this would just be, in the example above, summup.org and www.summup.org). The SSL certificate will typically only apply to these domains - so you don't want to change the IP address of, for example, summup.mayfirst.org.
     43 * Add an ssl record to the web config via the [https://members.mayfirst.org/cp members control panel]. For advanced users, you should ask them to make this change. Under web config, click add new item. Be sure to copy and paste the values from the existing web config rather than taking the default values - you want to be sure to include any extras that you might have added (like the drupal AllowOverride lines). Specify the same login as the owner, make it enabled, specify https, for IP address specify the IP address that has been allocated. Finally, add three new lines (Replace chavez with the name of the server the site is hosted on. NOTE: They will need to change these lines after they have purchased an SSL certificate so that they point to their own ssl certificate. These lines are just starters so that it works without an error.)
    1744{{{
    1845#SSL Stuff