* [LARTC] FWMARK ROUTING OVER MULTIPLE ROUTERS/LANS
@ 2005-10-30 11:25 Bartosz
0 siblings, 0 replies; only message in thread
From: Bartosz @ 2005-10-30 11:25 UTC (permalink / raw)
To: lartc
I would like to route ssh in my network via DSL2 and all other trafic via
DSL1.
So far I menaged to do it for LAN2 but there are still WLAN1,LAN3 and LAN1 to
go.
On all routers I added table "pilicka" with rule for fwmark and I fwmarked
ssh.
# ip rule show
0: from all lookup local
32765: from all fwmark 0x3 lookup pilicka
32766: from all lookup main
32767: from all lookup default
# iptables -L -t mangle
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
MARK tcp -- anywhere anywhere tcp spt:ssh MARK
set 0x3
MARK tcp -- anywhere anywhere tcp dpt:ssh MARK
set 0x3
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Routing for pilicka table is the same as for main table exept default gw on
all routers.
Network is set to work with DSL1 and it is working.
modem DSL1 modem DSL2
| |
| |
[eth0] R1 [eth1] [eth1] R4 [eth0]
\ /
LAN1 LAN2
\ /
[eth0] R2 [ra0] -------- [ra0] R3 [eth0]
[ra1]
|
|
Access point -- WLAN1
|
|
[ra0] R5 [eth0] -- LAN3
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-30 11:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-30 11:25 [LARTC] FWMARK ROUTING OVER MULTIPLE ROUTERS/LANS Bartosz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.