Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
thanks for reply
it not work for me, actually i have 2 lancard on server etho connected to internal lan and eth1 to isp internet ,and my internet is controlled through squid proxy here also i make acl for 5222 port , i add rule in iptables as follows
-A INPUT -p tcp -m tcp -m state -i eth1 --dport 5222 --state NEW,ESTABLISHED,RELATED -j ACCEPT
and fired command netstat tlpn | grep 5222 but not shown any thing
First of all, the app should be running on expected port, 5222 in your case. While this doesn't happen, nothing will work, and according to your netstat, there's nothing running in such port.
i restarted the services , the iptables rule i write is ok or not according to the lan set up i explain earlier,and the app is running on the 5222 port
...
and fired command netstat tlpn | grep 5222 but not shown any thing
If your command doesn't show any lines with 5222, which includes the listening port, that means that there's nothing listening on port 5222. If I'm missing something, please elaborate more clearly.
app listening on port 5222 in server , i want to access this app from internet for that i need to unblock port 5222, i mention the rule i apply in my firewall server i.e internet server but it shows nothing pls guide
To rule out firewall problems trying flushing all the rules, this will allow ALL traffic so make sure you set everything back quickly after testing.
1) Copy current iptables file just in case:
cp /etc/sysconfig/iptables /root/iptables
2) Flush iptables rules and allow all traffic
iptables -F
3) Test your app and see if you can access from internet, if not, its an application issue NOT iptables. To replace all your iptables rules run the following command.
added rule after restart iptable service,fired netstat tlpn | grep 5222 still not shown any thing, while netstat tlpn | grep 5222 on app server show port listening and unable still problem not ressolved
added rule after restart iptable service,fired netstat tlpn | grep 5222 still not shown any thing, while netstat tlpn | grep 5222 on app server show port listening and unable still problem not ressolved
AMar
Did you SAVE the iptables config before restarting it?
Can you show me the output of the following command:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.