Web Hosting Talk







View Full Version : iptables help, limiting access to IP


goodness0001
01-16-2003, 07:31 PM
Can someone help me out with how to limit ssh access to one IP address using IPtables?

pyoor
01-18-2003, 10:00 PM
The easiest way would be to use tcp wrappers... you will need to edit your /etc/hosts.allow and hosts.deny file. If you want to block ssh you can figure it out by getting my iptables configuration script off of www.sekure.us or by reading up on tldp.org (search for "tcp wrappers" or "iptables" based on how you want to do it... tcp wrappers would be easiest though)