LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   how to specify port no in TCPwrappers (hosts.allow) (http://www.linuxquestions.org/questions/linux-security-4/how-to-specify-port-no-in-tcpwrappers-hosts-allow-899506/)

Monika32011 08-25-2011 11:38 PM

how to specify port no in TCPwrappers (hosts.allow)
 
Hello experts,

Can you please guide me on how to specify port no in Hosts.allow?
I want to restrict access to WHM for some IP on specific ports.

for example:
whostmgrd/port : [IP] : ALLOW/DENY

sandeep_hello 08-26-2011 12:55 AM

Hi,

There is no option in /etc/host.allow or /etc/host.deny to specify port number which restrict access.

For port restiction, you can use tools like iptables.



Regards
Sandeep Sharma

unSpawn 09-13-2011 06:02 PM

Quote:

Originally Posted by sandeep_hello (Post 4453741)
There is no option in /etc/host.allow or /etc/host.deny to specify port number which restrict access.

While using iptables is preferred, due to its ability to handle traffic below application level, that's actually not true. It's just that process names are used instead of port numbers: see 'man 5 hosts_access'.


All times are GMT -5. The time now is 01:28 AM.