Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: chris g on June 11, 2002, 11:35:38 PM

Title: Port Forwarding Syntax
Post by: chris g on June 11, 2002, 11:35:38 PM
Could somone please post a working port forward command?  I have tried something resembling

ipmasqadm portfw -a -P tcp -L 1.1.1.1 5800 -R 2.2.2.2 5800

I am wishing to use VNC to remotely administer win98 machines.  
Thank you for any help,

Chris G
Title: Re: Port Forwarding Syntax
Post by: TheRealWaldo on June 12, 2002, 06:12:44 AM
/usr/sbin/ipmasqadm autofw -A -r tcp 5900 5900 -h xx.xx.xx.xx

VNC uses 5900+screen, default for windows is screen = 0.

replace xx.xx.xx.xx with the machines address running the VNC server.

W.
Title: Re: Port Forwarding Syntax
Post by: Dan Brown on June 12, 2002, 06:55:19 AM
...or just use ssh tunneling, which requires no server-side configuration at all (other than allowing public SSH access).
Title: Re: Port Forwarding Syntax
Post by: TheRealWaldo on June 12, 2002, 07:16:49 AM
He's using it to administer Windows 98 machines behind e-smith.

W.
Title: Re: Port Forwarding Syntax
Post by: Dan Brown on June 12, 2002, 07:20:32 AM
...and?
Title: Re: Port Forwarding Syntax
Post by: Dan Brown on June 12, 2002, 07:23:13 AM
OK, maybe I could have explained a bit.  The type of machine behind the e-smith is irrelevant; you can create a tunnel to it, though the e-smith box, with SSH.  I do it regularly.  With VNC, even.
Title: Re: Port Forwarding Syntax
Post by: TheRealWaldo on June 12, 2002, 08:00:08 AM
Sorry, missed the 'tunneling' part.  My bad.

Yep, a little more secure as well.

W.
Title: Re: Port Forwarding Syntax
Post by: Chris G on June 12, 2002, 09:57:02 AM
Thanks for all the great info.  Could you expand on the ssh tunneling through the e-smith box?  I searched around but could not seems to find anything that I can apply to this situation.
Title: Re: Port Forwarding Syntax
Post by: Andrew on June 12, 2002, 06:12:50 PM
Is there a reason why no-one is suggeting the port forwarding RPM.  I used that to access a W2K box behind the SME server - no probs.

  e-smith-ipportfw-0.1.1-1.noarch.rpm

Cheers,
A.
Title: Re: Port Forwarding Syntax
Post by: Andrew on June 12, 2002, 06:23:10 PM
Sorry all, I got that RPM wrong - that one didn't work for me and I went back to the tried and true:
 
  dmc-mitel-portforwarding-0.0.1-4.noarch.rpm

Cheers,
A.
Title: Re: Port Forwarding Syntax
Post by: Dan Brown on June 12, 2002, 08:11:09 PM
Chris, this is really a matter of the documentation of your SSH client.  I use putty 0.52, and I set it up under connection/SSH/Tunnels.  Set the local port to 5900, and the destination to [IP address on your lan]:5900.  Then just point your VNC viewer to localhost.