Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: ztasevski on January 04, 2005, 08:11:18 AM

Title: Port Forwarding Source IP Restricting
Post by: ztasevski 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
Title: Port Forwarding Source IP Restricting
Post by: RavenIV 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
Title: Port Forwarding Source IP Restricting
Post by: ztasevski 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