Re: openssh - AllowUsers
On 11/3/12, lina <lina.lastname@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
Reply to: