Skip to contentSkip to conversation

I'm sure you can solve this

DISCUSSION decompose 1 participant 1 message Apr 1, 2004

lore
Share & tools
lore

decompose

author
#0 lore raw

Hi Ive read the docs and still can't work it out (Yes I'm stupid)

Background: I want to forward traffic from hosts on the switch to through router A to router B. (and later from router B to a host on the switch, but i guess I could just invert the first problem).

I think one of the reasons i'm having trouble with this is because all hosts are on the same subnet (here is the setup)

[switch]-->[router A]-->[router B]-->(Inet)

        192.168.0/24

Ive tryed various things this being one of them (where x is a host on the switch) iptables -t mangle -A POSTROUTING -p tcp -s 192.168.0.x -d 192.168.0.223 --destination-port 80

I hope my question is clear enough. Thanks in advance