[TriLUG] how do I limit log on off Id to thre IP address

Ralph Blach rcblach at blach.dnsalias.org
Wed Feb 11 00:36:28 EST 2004


Michael Hrivnak wrote:

This seems to restrict all logins to those ip address.
I just want to limit one Id to three IP address

Chip
> You could try IP tables.  Correct me if this is erroneous:
> 
> iptables -P INPUT ACCEPT
> iptabels -F INPUT
> iptables -A INPUT -s xxx.xxx.xxx.xxx -p tcp --dport 22 -j ACCEPT
> iptables -A INPUT -p tcp --dport 22 -j DROP
> 
> Continue entries like line 3 to your heart's content.  
> 
> Michael Hrivnak
> 
> -----Original Message-----
> From: trilug-bounces at trilug.org [mailto:trilug-bounces at trilug.org] On
> Behalf Of Ralph Blach
> Sent: Tuesday, February 10, 2004 11:54 PM
> To: Triangle Linux Users Group discussion list
> Subject: [TriLUG] how do I limit log on off Id to thre IP address
> 
> I am running an linux server, and I want to limit a logon  id to
> three ip address. is there any way to do this with sshd?
> 
> Thank
> 
> Chip




More information about the TriLUG mailing list