On 11/3/12, lina 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-
On Sunday 04,November,2012 01:01 AM, pch0317 wrote:
> Hi,
>
> I would like to allow user access to server form range of addresses from
> 192.168.0.50 to 192.168.0.70.
> How to do that with openssh?
I use the iptables as follows:
# Allow SSH connections
-A INPUT -p tcp --dport 22 -s 172.21.50.55
On 11/3/12, pch0317 wrote:
> Hi,
>
> I would like to allow user access to server form range of addresses from
> 192.168.0.50 to 192.168.0.70.
> How to do that with openssh?
>
> Thanks
You could try using the conditional block "Match Address" see the
manual page for sshd_config for the details. B
3 matches
Mail list logo