Koozali.org: home of the SME Server

port forwarding how?

Mark S

port forwarding how?
« on: May 29, 2002, 09:40:29 AM »
I've tried to install e-smith-ipportfw-0.1.1-1.src.rpm but it doesn't seem to work for SME Server V5.1.2.  Is there a tool that works with this version or do I have to resort to ipchains?

I've tried ssh -L 80:192.168.0.5:80:192.168.0.1 but that didn't work either.

Would a basic ipchains command work? If so, what would that be?

Thanks

Robert Heaton

Re: port forwarding how?
« Reply #1 on: May 29, 2002, 03:36:54 PM »
Hi!

If you install Darell May's addon, found at;
http://myezserver.com/downloads/mitel/contrib/portforwarding-0.0.1/dmc-mitel-portforwarding-0.0.1-4.noarch.rpm

This will give you a panel in the SME manager, to setup portforwarding.

Kind regards,
Rob.

Miguel Simon

Re: port forwarding how?
« Reply #2 on: May 30, 2002, 04:36:36 PM »
I want to redirect from ext eth port 2000 (i.e.) to internal LAN port 80



I will explained what I have done and  do not work :( :
I have a SME server and gateway with ext IP 192.168.2.2 and internal 192.168.1.2
Internally I have a IIS server with IP 192.168.1.100 which accepts traffic from port 80

SME accept web traffic from port 80 so I want to redirect traffic from another port (I have tried 81 and 2000) to my IIS server.
I have installed dmc-portforwarding*-0.0.0.1-4.rpm. If I execute ipmasqadm portfw -l I can see both redirections

When I execute a nmap from the SME server to the external IP (nmap -p 81 -sT 192.168.2.2) it says the port is closed

The PC I am working with is in the external net (192.168.2.12/24 GW 192.168.2.1)

What am I missing?

Thanks

Chuck Lloyd

Re: port forwarding how?
« Reply #3 on: May 30, 2002, 08:07:17 PM »
I've got the same setup. (Apache not IIS) and the same problem.
I'm to the point where I need to start tracing packets to find out
what is going on.

External Port 8034 ->192.168.10.33:80

# /sbin/e-smith/db configuration show masq
masq=service
    InitscriptOrder=06
    Logging=none
    TCPForwards=8034,192.168.10.33:80
    status=enabled

# ipchains -L | fgrep 8034
ACCEPT     tcp  ------  anywhere             216.177.27.137        any ->   8034

# ipmasqadm portfw -ln
prot localaddr            rediraddr               lport    rport  pcnt  pref
TCP  216.177.27.137       192.168.10.33           8034       80    10    10

If I browse to the external port I get a server not found error.

Joe Bucar

Re: port forwarding how?
« Reply #4 on: July 01, 2002, 08:16:40 PM »
Hi Miguel,
 Did you get your problme solved? I believe I have the same problem.

Ronald Tanis

Re: port forwarding how?
« Reply #5 on: July 04, 2002, 07:48:48 PM »
I have installed the portforwarding*.rpm , but port forwarding isn't working, I have also tried it on E-smithv5.5.

With regards,
Ronald Tanis