Re: iptables - Open all ports between 3 ips



Gerhard Haslberger <ghaslbe@xxxxxx> écrivait
news:gu44j0$n0b$1@xxxxxxxxx:

Hi,

im searching and searching.... but..

Can someone give me a hint?

I want to open all ports between 5 IPs (5 Servers - totally different
ips) but just between them.

Is it possible to do that without create a rule for every ip to ip
pair? Something very easy or at least:

-s 1.1.1.1,2.2.2.2,3.3.3.3... --sport 1:65535
-d 1.1.1.1,2.2.2.2,3.3.3.3... --dport 1:65535

How? or any keyword-hits for google?

Thanx

Did you try the iptables 'iprange' module :

http://iptables-tutorial.frozentux.net/other/iptables.html#lbBC ?


Regards
.