Koozali.org: home of the SME Server

Port Forwarding Source IP Restricting

ztasevski

Port Forwarding Source IP Restricting
« on: January 04, 2005, 08:11:18 AM »
Hi,

I have setup up a port forwarding rule on an SME server for port 6161 to be forwarded to an internal server's SSH port,using the "port forwarding" module in the sme manager.

By viewing the iptables rules anyone can connect to the external server's 6161 and be forwarded to the internal server's SSH port.

Just wondering how can access to port 6161 be restricted to a specific external IP ?

ZT

RavenIV

Port Forwarding Source IP Restricting
« Reply #1 on: January 05, 2005, 11:24:28 PM »
you have to change the iptables-rules manually.
there in not yet a contrib to da that.

cheers

ztasevski

Port Forwarding Source IP Restricting
« Reply #2 on: January 06, 2005, 05:52:20 AM »
hi ravenIV,

what is the best way of adding the iptables rule ?

is there a specific file that needs to be edited in /etc/e-smith/templates/etc/rc.d/init.d/masq/??? directory and then expanded through the templates-custom directory ?

ZT