On 11/3/12, lina <lina.lastn...@gmail.com> wrote:
> I use the iptables as follows:
>
> # Allow SSH connections
> -A INPUT -p tcp --dport 22 -s 172.21.50.55 -j ACCEPT

Also, to filter on the range of ip addresses you can use IP range
match[1] -src-range

-A INPUT -p tcp -m tcp --dport 22 -m iprange --src-range
192.168.0.50-192.168.0.70 -j ACCEPT

Regards,
/Lars

[1] It's over 6 years old but nothing has replaced it yet:

http://www.frozentux.net/iptables-tutorial/iptables-tutorial.html#TABLE.IPRANGEMATCH


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cacq_q0cg1ropy3nqcuvna3njwqcw8hezeleoll5lpgkxbfk...@mail.gmail.com

Reply via email to