Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Eric on July 02, 2002, 02:58:47 AM
-
How do I open a port? I do not wish to use port forwarding. I would like to open TCP 4099
-
You will get a solution for questions like that much faster if you search the forums, its been answered a lot.
You need to edit the template for '/etc/rc.d/masq' and insert something along the lines of:
/sbin/ipchains --append input -p tcp -s 0/0 -d $OUTERNET 4099 -j ACCEPT
/sbin/ipchains --append output ! -y -p tcp -d 0/0 -s $OUTERNET 4099 -j ACCEPT
Then expand the template and run
/etc/rc.d/init.d/masq restart