LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 08-25-2011, 11:38 PM   #1
Monika32011
LQ Newbie
 
Registered: Apr 2011
Posts: 7

Rep: Reputation: 0
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
 
Old 08-26-2011, 12:55 AM   #2
sandeep_hello
Member
 
Registered: Feb 2008
Posts: 58

Rep: Reputation: 1
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
 
Old 09-13-2011, 06:02 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,285
Blog Entries: 54

Rep: Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854
Quote:
Originally Posted by sandeep_hello View Post
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'.
 
  


Reply

Tags
cpanel, tcpwrappers


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
deny hosts removing an Ip and checking tcpwrappers tkmsr Linux - Software 8 10-25-2010 06:58 AM
Is it possible for two hosts to use the same source port ? exceed1 Linux - Networking 3 04-06-2009 01:35 AM
[SOLVED] Using hosts.allow to allow only postfix to use port 25 Mogget Linux - Server 3 03-28-2009 04:36 AM
mapping address:port to name in hosts redmeat Linux - General 2 09-11-2006 10:12 AM
Virtual hosts and port forwarding fr_laz Linux - Networking 0 02-03-2005 02:46 PM


All times are GMT -5. The time now is 09:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration