[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Firewall rules with multiple IP's - Part II
- From: Stephen Torri <storri ameritech net>
- To: "Rodolfo J. Paiz" <rpaiz indahaus com>
- Cc: <redhat-list redhat com>
- Subject: Re: Firewall rules with multiple IP's - Part II
- Date: Mon, 1 Oct 2001 11:24:30 -0400 (EDT)
On Mon, 1 Oct 2001, Rodolfo J. Paiz wrote:
> We've established that this works for *two* IP's on *one* interface:
>
> for IP in 111.222.333.444 111.222.333.445 ; do
> ipchains -A input -i eth0 -p tcp -d $IP 80 -j ACCEPT
> ipchains -A output -i eth0 -p tcp ! -y -s $IP 80 -j ACCEPT
> done
This script worked for me (ipchains-1.3.9-17, kernel 2.2, RedHat 7). The
only change I did was put in the full path to ipchains.
Stephen Torri
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]