openssh - AllowUsers

2012-11-03 Thread pch0317
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 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Arch

Re: openssh - AllowUsers

2012-11-03 Thread Lars Noodén
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

Re: openssh - AllowUsers

2012-11-03 Thread lina
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

Re: openssh - AllowUsers

2012-11-03 Thread Lars Noodén
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-