- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to open port?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2003 07:16 AM
09-09-2003 07:16 AM
I need to open ports 8005 and 8081 on my Red hat box. These ports will be used by Tomcat web server 4.0.6.
Please advise how to open these ports.
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2003 08:07 AM
09-09-2003 08:07 AM
Re: How to open port?
/etc/services is where the various port(s) <> number(s) are found
ipchains or iptables are started in respectively /etc/init.d/ipchains and /etc/init.d/iptables
theses use config file found respectively
/etc/sysconfig/iptables-config
and
/etc/sysconfig/ipchains-config
in ipchains this would open port 22 (ssh)
-A input -s 0/0 -d 0/0 22 -p tcp -y -j ACCEPT
any how have a look at man iptables
and for more info try link
http://www.groovyweb.uklinux.net/?page_name=Linux%20firewall%20Iptables%20Basics%20NHF
J-P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2003 08:41 AM
09-09-2003 08:41 AM
Re: How to open port?
You'll also need entries in /etc/services to reserve those ports for you application.
To make sure you have access control, the iptables/ipchains data is extremely important.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2003 08:55 AM
09-09-2003 08:55 AM
Re: How to open port?
Ouadi, please forgive this Highjack of this post
J-P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2003 12:50 AM
09-10-2003 12:50 AM
Re: How to open port?
Thanks for your feedback.
I had a look on iptables help but it seems too complicated for me.
Would anyone be kind enough to give me the exact syntax for iptables ?
Many thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2003 01:59 AM
09-10-2003 01:59 AM
Re: How to open port?
Working with IPTables/Chains, etc is not straight forward - I don't understand them properly, but that's not saying much!
I can recommend a firewall package called Shorewall (http://shorewall.sourceforge.net/). I happened across it the other week and it has two wonderful features:
1. It is documented extremely well
2. It is easy to configure.
Inline with the earlier responses, set up your ports in /etc/services and start using them.
Just make sure you have *some* kind of firewall configured to allow the appropriate connections!
Regards,
Andy Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2003 02:28 AM
09-10-2003 02:28 AM
SolutionFirst of all . Are you Firewall in this Red Hat Box ?.
Paste the output of this command.
#iptables -L
Look for any DROP or REJECT rules.
If you have a firewall with strict DROP rule , then you will have to open those ports in the firewall.
#iptables -I INPUT -p tcp --dport 8005 -j ACCEPT
#iptables -I INPUT -p tcp --dport 8081 -j ACCEPT
#service iptables save
Install tomcat and start the tomcat service.
Thats it.
regards,
U.SivaKumar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2003 03:22 AM
09-10-2003 03:22 AM
Re: How to open port?
ipchains, in this case as root do
ipchains -L
ipchains is less used nowdays because iptables is more "pwerfull/flexible", so go for iptables, using U.SivaKumar example would be a better option.
I try the link Andy Bruce gave us but this returned an error so after searching i found this link http://www.shorewall.net/
I am reading the shorewall doc now ... very nice!
J-P