How to create a range of ip addresses on ethx
Create a range file in /etc/sysconfig/network-scripts
Example:
Insert the following
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:04:75:D4:C8:F9
IPADDR_START=192.168.0.6
IPADDR_END=192.168.0.10
CLONENUM_START=1
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
CLONENUM_START — interface clone number to start using for this range. # eg “1″
Which would start at eth0:1
How to enable IP forwarding
To enable IP packet forwarding please edit /etc/sysctl.conf with your editor of choice and set:
#Controls IP packet forwarding
You can then verify your settings with:
Removing Reseller’s Access to Server’s Shared IP in DirectAdmin
As an Admin, you can give Resellers the ability to create User web sites using the Server’s Shared (main) IP address. At this time, you cannot remove this ability through the control panel.
To solve the problem manually, remove the desired IP address from the ip.list file in the Reseller’s DirectAdmin config directory
Reseller’s DirectAdmin config directory
/usr/local/directadmin/data/users/username/ip.list
This change will not affect the Reseller’s current Users (if they are using the server’s main IP, they will continue to do so.
Source & credit - http://www.directadmin.com
Adding reverse IP Lookup in DirectAdmin
Any modern verion of DA will be able to do this through the interface.
Go to: Admin Level -> DNS Administration
Scroll to the bottom to the “Add Zone” section.
Enter your information normally:
domain name: server.hostname.com
ip: 1.2.3.4
ns1: ns1.hostname.com
ns2: ns2.hostname.com
where server.hostname.com is the hostname of your server. The IP is your server IP (license IP)
and ns1/ns2 can be any NS your server uses.
Click the “Create Reverse IP Lookup” checkbox, then click “Add”.
Reference link: http://directadmin.com
The first step is to nofify direct admin regarind this change.
Boot the machine with the new IP address, chage the IP address in the system network setting and not in DirectAdmin.
Now get the new Licence.
cd /usr/local/directadmin/scripts
./getLicense.sh 1234 56789
Replace 1234 with your client ID number, and replace 56789 with your license ID number.
Start DirectAdmin with the new license:
/etc/init.d/directadmin restart
Run the ipswap.sh script to replace the old server IP (1.2.3.4) with the new server IP (4.3.2.1)
cd /usr/local/directadmin/scripts
./ipswap.sh 1.2.3.4 4.3.2.1
Restart everything:
/etc/init.d/httpd restart
/etc/init.d/proftpd restart
/etc/init.d/exim restart
/etc/init.d/dovecot restart