Port forwarding issue.

bboy

Expert Member
Joined
Jan 21, 2005
Messages
3,230
Ok, so on my network i have multiple ADSL routers, lets say 192.168.1.1, 192.168.1.2, 192.168.1.3.

No on router .1 i have port forward(80) set to PC 192.168.1.100:80
And
No on router .2 i have port forward(81) set to PC 192.168.1.100:81
And
No on router .3 i have port forward(82) set to PC 192.168.1.100:82

Now on PC192.168.1.100, the default gateway is set to 192.168.1.1.

The port forward(80) works, the other port forwards dont!
Unless i change the gateway on the pc!

So effectively I can only have the pc being port forwarded from its default gateway.

Which kind of sucks, now i suspect that his happens becase with a port forward my pc see's the connection as coming from somewhere on the internet and not from the router.

Any idea how I can get around this problem?
 

PsyWulf

Honorary Master
Joined
Nov 22, 2006
Messages
16,574
Ok, so on my network i have multiple ADSL routers, lets say 192.168.1.1, 192.168.1.2, 192.168.1.3.

No on router .1 i have port forward(80) set to PC 192.168.1.100:80
And
No on router .2 i have port forward(81) set to PC 192.168.1.100:81
And
No on router .3 i have port forward(82) set to PC 192.168.1.100:82

Now on PC192.168.1.100, the default gateway is set to 192.168.1.1.

The port forward(80) works, the other port forwards dont!
Unless i change the gateway on the pc!

So effectively I can only have the pc being port forwarded from its default gateway.

Which kind of sucks, now i suspect that his happens becase with a port forward my pc see's the connection as coming from somewhere on the internet and not from the router.

Any idea how I can get around this problem?

Sounds like a problem we had a while ago with some forwarded web traffic.

Traffic on Incoming connection is coming from ADSL router 2/3 and then it transmits outgoing on ADSL1...causing a wee bit of a furore. Don't ask me how it was sorted,we have Web server monkeys to handle that
 

Kroks

Well-Known Member
Joined
May 27, 2009
Messages
158
Source based routing

You need to setup source based routing. If it is a Linux system then have a look at http://www.wlug.org.nz/SourceBasedRouting .

If it is a Windows system have a look at policy based routing --- Google is your friend :)

There is another solution. You can put a router between the ADSL routers and the P.C's so that that router becomes the default GW for the P.C's
 
Top