Open Up Port On Filewall(s) Print

  • 0

This is how to open up a port on the APF and iptables firewalls.

If you change the SSH port you MUST open up the port or you will get locked out of the server.

APF

1- Go to:
/ets/apf
edit the confil file:
nano conf.apf

2- find this line:
IG_TCP_CPORTS=
Add the port(s) you want to open to the list there already.

3- Restart APF
apf -r

______________________________

iptables
1- If you want to open up port 25 ... issue this command:
iptables -I INPUT -p tcp --dport 25 -j ACCEPT

2- Change that port number for what number you need to open

3- Repeat the command for each port to open



Was this answer helpful?

« Back