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

Re: Network renumbering



At 9/29/2001 12:10 PM +0530, you wrote:
Rodolfo J. Paiz wrote:
for IPADDR in 111.111.111.111 222.222.222.222 ; do
        ipchains -A input -i eth0 -p tcp  -d $IPADDR -j ACCEPT
        ipchains -A input -i eth0 -p udp  -d $IPADDR -j ACCEPT
        ipchains -A input -i eth0 -p icmp -d $IPADDR -j ACCEPT
done
1) it does not matter but it would be more logical to use eth0, eth0:0, eth0:1..........

2) It should work.

I've just realized that RahulKrishna is correct. 111.111.111.111 is on eth0 and 222.222.222.222 is on eth0:0. I don't know how to write the loop so that it changes *two* variables... :(



-- Rodolfo J. Paiz rpaiz indahaus com





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