LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How To Open Port 443 On RedHat 7.1 (https://www.linuxquestions.org/questions/linux-general-1/how-to-open-port-443-on-redhat-7-1-a-13708/)

sc300t 02-06-2002 10:25 PM

How To Open Port 443 On RedHat 7.1
 
Hi, I'm running apache on redhat 7.1. When I install the redhat, I customize the firewall configuration to allow incoming on port 80, but I forgot to open port 443. I did ran a probing port test, and I was right. Port 80 is open, and port 443 is closed.

Anybody know how to open port 443 on redhat?

Thanks.

ryanstrayer 02-06-2002 10:34 PM

If you're using the built in RH setup for firewall - just type 'setup' at the command prompt and it will have an option for FW config.

sc300t 02-07-2002 12:03 AM

Hey, It worked. Thank you.

I have one more question. How can I configure it without going to setup? Is there any other way that is more general to linux? Thanks again.

John

ryanstrayer 02-07-2002 09:22 AM

Yes - if you go back into setup and disable the firewall. The go back to the console - you can use the program ' iptables ' to create your firewall rule set. It's easier to just do a 'man iptables' than for me to try and discuss the syntax.

To other programs you'll want to know about are 'iptables-save' and 'iptables-restore' - because the system will lose your settings after a reboot.

After you're done creating your rule set type 'iptables-save > /etc/firewall.conf' and it will save your configuration to that file in the /etc directory.

Then edit your /etc/rc.d/rc.local file and append 'iptables-restore < /etc/firewall.conf' to the end, which will restore your settings each time upon boot.

At least this is how I do it.. there maybe more than one way to skin a horse, but this works for me.

DavidPhillips 02-07-2002 09:40 AM

the file is /etc/sysconfig/iptables


edit the file and when you get it like you want it run this


/etc/rc.d/init.d/iptables restart

try that

also the same command for stop, and start



don't run lokkit or it will rewrite the script.


All times are GMT -5. The time now is 04:14 PM.