Re: I need to allow to login to Linux pc from particular IP addr only - Can I do that with IPtables command?



On 29 Jan 2006 15:56:36 -0800, GS wrote:
> I looked into thi spage, thi stells me to add entry into /etc/hosts.all
> and hosts.deny file.

you put
ALL: ALL
in /etc/hosts.deny

And in /etc/hosts.allow
sshd: 68.192.220.199

> if I add just an IP address of the external PC, in /etc/hosts.allow
> file will it be Ok?.

I assume you have a carriage after each line and the firewall does not
block you.

For extra points, try doing a

man hosts.allow
man hosts.deny


.