Need help with Iptable/Firewall on RHEL.

Login or Register for Dates, Times and to Reply

Thread Tools Search this Thread
Operating Systems Linux Red Hat Need help with Iptable/Firewall on RHEL.
# 1  
Need help with Iptable/Firewall on RHEL.

Hi Gurus,

I am facing an issue with firewalls on one of my Linux Box.

Issue : Port 8001 looks open to me and there is a weblogic process running on it

netstat -alnp | grep 8001
tcp        0      0 ::ffff:    :::*                        LISTEN      28768/java

lsof -ni tcp:8001
java    28768 xxxxxxx  362u  IPv6 348588617       TCP (LISTEN)

but when I try to connect to that port externally I am not able to I tested using telnet to check that but failed. it said could not connect. Can you suggest how to check if this port is blocked outside the OS .

Thanks In Advance.
Rama Krishna.
# 2  
First, check to see if you can connect to that port when logged into the same server.

For example. telnet localhost 8001
This User Gave Thanks to Neo For This Post:
# 3  
Neo Thanks for the response. I tried to telnet but no luck.
# 4  
Do you have an entry in /etc/sysconfig/iptables like this? If not, do add that before the FORWARD chain begins and restart the iptables service:

-A INPUT -m state --state NEW -m tcp -p tcp --dport 8001 -j ACCEPT

To check if a port is open or not on a remote machine, you have a very versatile tool called "nmap". RedHat repository has this tool and you can install it with yum.
This User Gave Thanks to admin_xor For This Post:
# 5  
Thanks Guys for the responses. I found the issue under the iptables files the order of entry was not correct . I fixed it and its working
# 6  
Cheers!! Smilie Smilie
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #465
Difficulty: Medium
A 2017 security audit of three NTP implementations, conducted on behalf of the Linux Foundation's Core Infrastructure Initiative, suggested that both NTP was less secure than Chrony.
True or False?

9 More Discussions You Might Find Interesting

1. Red Hat

RHEL 6, Spacewalk 2.3 unable to download RHEL 5 repo data

Hello all, I am having a bit of an issue on my Spacewalk installation. Some amplifying information is that it is Spacewalk 2.3 installed on a RHEL 6 machine and I am attempting to install/update a RHEL 5 channel/repository. I am fairly new to Spacewalk so I am still learning but this is what I... (3 Replies)
Discussion started by: jstone4646
3 Replies

2. Red Hat

Error throwing while installing vsftpd package in rhel 6. using rhel 6 dvd.

Hi all, Im studying rhcsa as of now, so yum installation and dependencies are messing me to not workit out. i have dual os, win 7 & rhel 6. i have tried this installation of vsftpd package with rhel 6 dvd in VM rhel 6 in win 7 as well as host rhel 6.still the same issue. below error... (6 Replies)
Discussion started by: redhatlbug
6 Replies

3. UNIX for Advanced & Expert Users

Iptable and port forwarding

Hello, I have a routeur linksys ( ) a firewall ( IN ----> OUT) which using iptable I want to acces to an equipment (lorex video camera serveur which using an ddns service on the port 9000 So i don t know which redirection a will do on the... (2 Replies)
Discussion started by: tapharule
2 Replies

4. Ubuntu

iptable forward packet

Hi, I have the doubt which involved following configuration. comp1<--->main<--->comp2 Comp1 sends icmp packet to main. Main takes that packet and changes destination address to comp2 and source address to it own. I can capture the packet send from comp1 to main using netfilter. I can see the... (0 Replies)
Discussion started by: arsipk
0 Replies

5. Red Hat

Does RHEL 5 provide a command to collect RHEL system log in single compress file?

Hi, I heard a command that can collect all RHEL 5 log in a single compress file before I forget. Does any body know...What the command is ? Thanks. (4 Replies)
Discussion started by: nnnnnnine
4 Replies

6. IP Networking

unable to find iptable service

Hi Am trying to check the service of iptables using /etc/init.d/iptables status but I am not even getting this file. # /etc/init.d/iptables status -bash: /etc/init.d/iptables: No such file or directory # I tried to check whether iptables rpm is installed or not, and it is... (2 Replies)
Discussion started by: mangeshpardhi
2 Replies

7. UNIX for Dummies Questions & Answers


Hi, Is het possible to block everyone (all IP addresses) except a given (white)list? How can I do this? Regards, Kevin (2 Replies)
Discussion started by: kever
2 Replies

8. Linux

IPtable rule help need

Hi, I need to configure iptable such that whatever request comes to needs to forwarded to and only port 80 and 443 needs to be forwarded others need to be blocked.... Thanks gr8 forum:) (1 Reply)
Discussion started by: iron_michael86
1 Replies

9. Red Hat

running customised firewall -RHEL 4

I have created a custom firewall script in RHEL 4 .Let me explain the steps which i followed . etho -Internal lan eth1 -External lan During the installtion of RHEL 4 ,i enabled Firewall and after booting to x windows i selected enable firewall and defined the defined and customised ports... (0 Replies)
Discussion started by:
0 Replies

Featured Tech Videos