LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   How can I change RH9 firewall settings after install? (https://www.linuxquestions.org/questions/linux-security-4/how-can-i-change-rh9-firewall-settings-after-install-467295/)

dsschanze 07-24-2006 09:54 PM

How can I change RH9 firewall settings after install?
 
I have finished my install of redhat 9 and realized that I forgot allow ports for Webmin during the firewall config. How can I change this in Redhat 9 after install, as when using the Security Level Config tool, I cannot get to where I can manually enter ports to allow.

-Derek

Capt_Caveman 07-24-2006 10:15 PM

I can't remember if RH9 firewall GUI allowed you to enter a user-defined port or not. Certain RH versions only allowed you to select from a list of common ports, but didn't have a user-defined option. You can however use the commandline to open ports in the firewall.

Open a terminal and become root using su -

Then use the following command to open the desired ports:
iptables -I INPUT -p tcp --dport XX -j ACCEPT

**where XX is the desired port number**

Then run: service iptables save


All times are GMT -5. The time now is 12:39 PM.