Page 1 of 1

Port Forwarding on Linksys Routers

Posted: 2009-05-15 12:18pm
by Lord MJ
I was wondering if was able to port forward on Linksys from one port to another.

Basically I want all traffic coming in on port 222 to forward to port 22 on a machine in the internal network. Right now all I see in the router is the ability for forward port 22 on the router to port 22 on a machine in the internal network.

I have two machines that have ssh and the external facing port 22 is already forwarded to port 22 on one machine. I want to set up port 222 on the router without having to change any of the ssh config files on the second machine.

Can I do this?

Re: Port Forwarding on Linksys Routers

Posted: 2009-05-15 12:46pm
by TheFeniX
I believe you're looking for "Port Triggering" on a linksys device. If you're using a router from the WRT54G line and the firmware is updated, it should be under: "Applications and Gaming" > "Port Triggering" The menu is pretty self-explanatory. From there, you would need to setup a port forward for the forwarded port, not the original, to forward to the machine. At least this is supposed to work in theory.

Re: Port Forwarding on Linksys Routers

Posted: 2009-05-16 08:32am
by Pu-239
AFAIK, port triggering is only for automatically setting up forwarding based on outgoing connections.

What he wants is putting 2222 into source port and 22 into destination port in the regular NAT settings, and yes that's possible on most routers. Don't know how nerfed the firmware is since the first thing I do is reflash it.

Re: Port Forwarding on Linksys Routers

Posted: 2009-05-22 12:54am
by Lord MJ
Did not change the firmware, but it doesn't look like it's letting me set the internal port more than once :?

Re: Port Forwarding on Linksys Routers

Posted: 2009-05-22 03:48am
by Starglider
Why is changing the SSH config files a big deal? You know you can have sshd listen on multiple ports if you want to, e.g. 22 and 222 for internal and external access? Just put multiple port directives in the config file.