nixCraft Linux / UNIX / Shell Scripting Forum

nixCraft

Linux / UNIX Tech Support Forum

IPtables vs TCPWrappers

This is a discussion on IPtables vs TCPWrappers within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; Hi all, how to find if a service is blocked by IPtables or TCPWrappers? how to find which tool is ...


Register free or login to your account to remove all advertisements.

Go Back   nixCraft Linux / UNIX / Shell Scripting Forum > Linux Distribution > CentOS / RHEL / Fedora

Linux answers from nixCraft.


CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems.

Reply

 

Thread Tools Display Modes
  #1 (permalink)  
Old 16th November 2009, 08:51 AM
kumarat9pm's Avatar
Senior Member
 
Join Date: Jun 2007
Location: Pune,MH,India
OS: RHEL(4/5),UBUNTU..
Scripting language: Bash,PHP,Perl(noob)
Posts: 635
Thanks: 32
Thanked 41 Times in 36 Posts
Rep Power: 8
kumarat9pm is just really nicekumarat9pm is just really nicekumarat9pm is just really nicekumarat9pm is just really nicekumarat9pm is just really nice
Send a message via Yahoo to kumarat9pm Send a message via Skype™ to kumarat9pm
Default IPtables vs TCPWrappers

Hi all,

how to find if a service is blocked by IPtables or TCPWrappers?
how to find which tool is used to block perticular service? is there any command or file to conform this?
__________________
Thanks,
Surendra Kumar Anne
Linux: Fast, friendly, flexible and .... free!
Support Open source.
http://www.linuxnix.com
Reply With Quote
  #2 (permalink)  
Old 16th November 2009, 11:20 AM
nixcraft's Avatar
Never say die
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash, Perl, Python
Posts: 3,294
Thanks: 13
Thanked 411 Times in 304 Posts
Rep Power: 10
nixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond repute
Default

You can run iptables -n -L and verify open port or services.
Code:
iptables -n -L 
iptables -n -L  | less
iptables -n -L | grep '80'
iptables -n -L | grep '202.54.1.2'
Another option is open your iptables shell script file or under centos / rhel / fedora open /etc/sysconfig/iptables files.

For TCPwrappers take a look at /etc/hosts.allow and /etc/hosts.deny file.
__________________
Vivek Gite
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Do you run a Linux? Let's face it, you need help!
Cricket & IPL News Blog
Reply With Quote
  #3 (permalink)  
Old 16th November 2009, 01:59 PM
kumarat9pm's Avatar
Senior Member
 
Join Date: Jun 2007
Location: Pune,MH,India
OS: RHEL(4/5),UBUNTU..
Scripting language: Bash,PHP,Perl(noob)
Posts: 635
Thanks: 32
Thanked 41 Times in 36 Posts
Rep Power: 8
kumarat9pm is just really nicekumarat9pm is just really nicekumarat9pm is just really nicekumarat9pm is just really nicekumarat9pm is just really nice
Send a message via Yahoo to kumarat9pm Send a message via Skype™ to kumarat9pm
Default Hay forgot to mention from where to see?

I want this info if we are in network/internet to access that system..
In that case how we can find which tool(iptables/tcpwrappers) is used to block particular service?
__________________
Thanks,
Surendra Kumar Anne
Linux: Fast, friendly, flexible and .... free!
Support Open source.
http://www.linuxnix.com
Reply With Quote
  #4 (permalink)  
Old 18th November 2009, 03:31 PM
kumarat9pm's Avatar
Senior Member
 
Join Date: Jun 2007
Location: Pune,MH,India
OS: RHEL(4/5),UBUNTU..
Scripting language: Bash,PHP,Perl(noob)
Posts: 635
Thanks: 32
Thanked 41 Times in 36 Posts
Rep Power: 8
kumarat9pm is just really nicekumarat9pm is just really nicekumarat9pm is just really nicekumarat9pm is just really nicekumarat9pm is just really nice
Send a message via Yahoo to kumarat9pm Send a message via Skype™ to kumarat9pm
Default

hay any updates on this?
__________________
Thanks,
Surendra Kumar Anne
Linux: Fast, friendly, flexible and .... free!
Support Open source.
http://www.linuxnix.com
Reply With Quote
  #5 (permalink)  
Old 19th November 2009, 10:45 AM
nixcraft's Avatar
Never say die
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash, Perl, Python
Posts: 3,294
Thanks: 13
Thanked 411 Times in 304 Posts
Rep Power: 10
nixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond repute
Default

Did you run command I gave you? Those are two methods that will tell if port or IP blocked using iptables or tcpwrappers.
__________________
Vivek Gite
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Do you run a Linux? Let's face it, you need help!
Cricket & IPL News Blog
Reply With Quote
  #6 (permalink)  
Old 23rd November 2009, 10:55 AM
kumarat9pm's Avatar
Senior Member
 
Join Date: Jun 2007
Location: Pune,MH,India
OS: RHEL(4/5),UBUNTU..
Scripting language: Bash,PHP,Perl(noob)
Posts: 635
Thanks: 32
Thanked 41 Times in 36 Posts
Rep Power: 8
kumarat9pm is just really nicekumarat9pm is just really nicekumarat9pm is just really nicekumarat9pm is just really nicekumarat9pm is just really nice
Send a message via Yahoo to kumarat9pm Send a message via Skype™ to kumarat9pm
Default Ya i did dear Nix

Hay i did those things.. but it will show on local machine not on remote machine..
__________________
Thanks,
Surendra Kumar Anne
Linux: Fast, friendly, flexible and .... free!
Support Open source.
http://www.linuxnix.com
Reply With Quote
  #7 (permalink)  
Old 12th May 2010, 07:34 AM
Junior Member
 
Join Date: May 2010
OS: Fedora Core
Scripting language: Bash/Perl
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
rfelsburg is on a distinguished road
Default Explain more

So am I understanding this correct? You want to be able to tell which service, be it iptables, or tcp wrappers is blocking your connection to a remote server?

What are you using this info for?

-Rob
Reply With Quote
Reply

Tags
grep, iptables, less command, tcp wrappers


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Iptables Help santhosheph CentOS / RHEL / Fedora 0 9th June 2008 03:36 PM
Iptables nixsen CentOS / RHEL / Fedora 2 29th November 2007 03:01 PM
iptables help vitaminme Networking, Firewalls and Security 1 4th September 2007 02:42 AM
IPTABLES Help asim.mcp Linux software 3 8th July 2006 02:53 AM
IPTABLES help vasanth Linux software 1 9th March 2005 09:15 AM


All times are GMT +5.5. The time now is 08:41 AM.


Powered by vBulletin® Version 3.8.6 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40