Administrators Nathan Posted February 20, 2012 Administrators Posted February 20, 2012 I needed to open a certain outgoing port on my CentOS 5 server. Now that I know how I figured I would share with you. It's really pretty simple. First you will need to login to your server via SSH. I use Putty. After that su - to root. Open Outgoing Port: iptables -A RH-Firewall-1-OUTPUT -p tcp -m state --state NEW -m tcp --dport 65 -j ACCEPT Open Incoming Port: iptables -A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 65 -j ACCEPT Once done you need to save your iptables by running this command: service iptables save Now restart the service: /etc/init.d/iptables restart That's it your done! Thomas 1 Quote
wonderzz Posted February 21, 2012 Posted February 21, 2012 Very good tutorial. I will be trying this later when I get on my home computer. Quote
sam300 Posted April 17, 2012 Posted April 17, 2012 Already knew it, but good for beginners. Anyway thanks for sharing with us. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.