Koozali.org: home of the SME Server

Open a port

Eric

Open a port
« 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

chris meredith

Re: Open a port
« Reply #1 on: July 02, 2002, 05:25:45 AM »
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