Port Forwarding on Linksys Routers

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
Lord MJ
Jedi Council Member
Posts: 1562
Joined: 2002-07-07 07:40pm
Contact:

Port Forwarding on Linksys Routers

Post 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?
User avatar
TheFeniX
Sith Marauder
Posts: 4869
Joined: 2003-06-26 04:24pm
Location: Texas

Re: Port Forwarding on Linksys Routers

Post 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.
User avatar
Pu-239
Sith Marauder
Posts: 4727
Joined: 2002-10-21 08:44am
Location: Fake Virginia

Re: Port Forwarding on Linksys Routers

Post 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.

ah.....the path to happiness is revision of dreams and not fulfillment... -SWPIGWANG
Sufficient Googling is indistinguishable from knowledge -somebody
Anything worth the cost of a missile, which can be located on the battlefield, will be shot at with missiles. If the US military is involved, then things, which are not worth the cost if a missile will also be shot at with missiles. -Sea Skimmer


George Bush makes freedom sound like a giant robot that breaks down a lot. -Darth Raptor
User avatar
Lord MJ
Jedi Council Member
Posts: 1562
Joined: 2002-07-07 07:40pm
Contact:

Re: Port Forwarding on Linksys Routers

Post 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 :?
User avatar
Starglider
Miles Dyson
Posts: 8709
Joined: 2007-04-05 09:44pm
Location: Isle of Dogs
Contact:

Re: Port Forwarding on Linksys Routers

Post 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.
Post Reply