Changes between Version 22 and Version 23 of setup_dedicated_ip


Ignore:
Timestamp:
Mar 10, 2016, 4:04:19 PM (4 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • setup_dedicated_ip

    v22 v23  
    22= Allocate dedicated IP address to a member =
    33
    4 If a member wants a dedicated IP on one of our shared servers, these are the steps for setting it up.
    5 
    6 == Tasks that require administrator rights ==
    7 
    8  * Allocated the IP by editing the [wiki:how-to/servers/add_ip_allocation] page, putting the member domain name next to the next available IP address.  '''Make sure''' the IP Address is located in the same colo-center as the server!
    9 
    10 '''Xen or standalone server or KVM virtual server'''
    11 
    12  * [wiki:faq/files/edit_a_file 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:how-to/servers/add_ip_allocation IP allocation] page):
    13 {{{
    14 auto eth0:summup.org
    15 iface eth0:summup.org inet static
    16   address 209.51.163.204
    17   netmask 255.255.255.240
    18 }}}
    19  * Bring the new IP up with (change summup.org to the domain name that you used):
    20 {{{
    21 sudo ifup eth0:summup.org
    22 }}}
    23 
    24 '''vserver'''
    25 
    26 For references, see [http://linux-vserver.org/Frequently_Asked_Questions#How_do_I_add_several_IPs_to_a_vserver.3F linux-vserver.org faq].
    27 
    28  * Add the following files on the vserver host in /etc/vservers/name-of-vserver/interfaces/name-of-interface/ (name-of-interface will typically be a number, like 1, 2, 3, etc.)
    29   * dev (the contents of this file should be eth0, eth1, eth2, etc. depending on the name of the network device on the host, probably eth0)
    30   * ip (the contents of this file is the IP address being assigned)
    31   * prefix (the contents is the network prefix, for example, 27 for a /27 address)
    32  * To make it live without restarting the vserver, run the following on the host (not guest):
    33   * Add it via ip (change values as needed):
    34 {{{
    35 ip addr add 194.169.123.23/24 dev eth0
    36 }}}
    37   * Add the ip to the guest's network context (a guests NID is the same as the XID {context ID})
    38 {{{
    39 naddress --add --nid <nid> --ip 194.169.123.23/24
    40 }}}
    41   * Enter the guest and restart any services needing the IP address
    42 
    43 == Tasks that only require member level permissions ==
    44 
    45  * Modify the DNS records via the [https://members.mayfirst.org/cp members control panel] (DNS service).
    46   * Choose the canonical domain for your IP address (i.e. a single domain that will be returned if someone queries a DNS server to find out which domain name is assigned to your IP address). For example, you could use summup.org as the canonical domain.
    47   * Change the IP address AND DNS type for the canonical domain. The IP address should be changed to your new IP address. The DNS type should be changed to HOST (from A).
    48  * If you want to use the IP address with an SSL certificate, the following additional steps are need and can be made via the [https://members.mayfirst.org/cp members control panel].
    49   * [wiki:get_security_certificate Get a security certificate].
    50   * [wiki:setup_security_certificate configure your web site to use it].
     4We are no longer allocation IP addresses to members on shared servers. All members can now use [WikiPedia:Server_Name_Indication Server Name Indication] which allows you to use https with a shared IP address.