Allowing only a certain source IP range back out through the bridge

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

 



I am wanting to stop such things as fake packets going out our network. 

Some of the new worms send out bogus packets claiming to come from IP's
that are not legit would be one case where this may be helpful.

I have a bridge with firewall capabilities setup and it is doing fine
with what it is doing so now I would like to know if there is a way to
say something like:

If the source is between 192.168.0.20 and 192.168.0.30 and the direction
it is going is from eth1 to eth0 then it is okay, let it go through.

something like:
iptables -A FORWARD --in-interface eth1 --out-interface eth0 -s \
 192.168.1.20 -j ACCEPT

Would this work and how do you allow a range of IP's or would I have to
add a rule for each IP I want to allow out.

Thanks.



[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