Re: [gentoo-user] iptables: how can I include multiple hosts/IPs in "-s" and "-d"?

2010-04-09 Thread Stefan Schulte
Hi, you can define a rule like that: iptables -A FORWARD -s 192.168.235.43,192.168.235.46 -d 10.0.0.1,192.168.0.1 -j ACCEPT it will create 4 rules. be sure to activate Networking support->Networking options->Network packet filtering framework->Core Netfilter Configuration->iprange address rang

Re: [gentoo-user] iptables: how can I include multiple hosts/IPs in "-s" and "-d"?

2010-04-06 Thread Alex Schuster
Jarry writes: > I'd like to ask if there is some way to include multiple discrete > hosts/IP's in --source and --destination options of iptables. > > I'm trying to write firewall rules for my server, but it has > 12 IP's from different segments (and maybe it gets a few more > later), and the scri

Re: [gentoo-user] iptables: how can I include multiple hosts/IPs in "-s" and "-d"?

2010-04-06 Thread Kostyantyn
On Mon, 2010-04-05 at 19:32 +0200, Jarry wrote: > Hi > > I'd like to ask if there is some way to include multiple discrete > hosts/IP's in --source and --destination options of iptables. > > I'm trying to write firewall rules for my server, but it has > 12 IP's from different segments (and maybe

[gentoo-user] iptables: how can I include multiple hosts/IPs in "-s" and "-d"?

2010-04-05 Thread Jarry
Hi I'd like to ask if there is some way to include multiple discrete hosts/IP's in --source and --destination options of iptables. I'm trying to write firewall rules for my server, but it has 12 IP's from different segments (and maybe it gets a few more later), and the script grows up as I have