Open Port For Outgoing Connections In IPTablesCreated OnMarch 21, 2021Last Updated OnMarch 21, 2021byWesAdmin Print < Back to the Title Topic Open Port For Outgoing Connections In IPTables Step 1 – Access your server via SSH. Step 2 – Run the following command to open port. This will open port 8000 for an incoming connection. /sbin/iptables -I OUTPUT -p tcp –sport $uports –dport 8000 -j ACCEPT /sbin/iptables -I INPUT -p tcp –sport 8000 –dport $uports -j ACCEPT Step 3 – edit /etc/rc.local and append the two tables commands at the end of the file, so that the new rules will be applied even after a server reboot.