Re: is it possible to mix iprange and multiport modules?

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

 



pedro noticioso wrote:
Hi there friends!

I am managing a 15 node vpn network with well over 500 pcs scattered all over, so I am looking for creative ways to simplify and better control my traffic while replacing the old IT guys 1600 line-and-10 seconds to load  firewall script, so I tried a trick that did not seem to actually work:

/sbin/iptables -A INPUT -p tcp \
 -m multiport  --source-port 22,53,80,110,443,2525 \
 -m iprange --src-range 192.168.19.25-192.168.19.100 \
 -j ACCEPT

So, am I just dreaming here, or is there a nice trick out there to achieve my goal in an elegant manner?


Which version of iptables ? What about the other rules (and INPUT's default policy).

There was small bug in 1.4.1 not so long ago - http://marc.info/?l=netfilter-devel&m=121333737332600&w=2 .

Either way, the rule looks fine.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux