Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Port forwarding and static routes

Status
Not open for further replies.

linuxpyro

Technical User
Feb 11, 2003
38
US
I have a Linksys WRT54G router, which I have connected to the Internet via a cable modem. I have a couple computers running Linux that are acting as servers (Web, mail, SSH, etc) and have their appropriate ports forwarded. What I would like to do is set up a subnet with another Linux computer acting as a router. I also have a couple workstations running Windows.

The Linksys box created the subnet 192.168.1.0, with netmask 255.255.255.0. I set up a Linux router to act as a gateway for the subnet 192.168.2.0 with netmask 255.255.255.0, and set up a static route to this subnet on the Linksys router. I can ping and exchange traffic between the two subnets with no problems, but the Linksys router won't let me forward ports to IP addresses on the other subnet. Is it possible to somehow set up another static route to the second subnet and thus make it look like some of the hosts on this subnet are on 192.168.1.0, so I can forward the ports to them?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top