[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Routing



dbrett wrote:

The only potential problem with this method is the network he is on,
is most likely using DHCP

Change eth0:0 to by a dynamic address, and have the iptables script run each time the network interface starts. Modify the script with something like this:

/sbin/ifconfig eth0:0 | grep "inet addr" | cut -d ":" -f 2 | cut -d " " -f 1

to get the IP that was 10.1.1.21 in the example script.

Alan








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]