* [LARTC] rule based routing
@ 2002-10-04 13:19 Arindam Haldar
0 siblings, 0 replies; only message in thread
From: Arindam Haldar @ 2002-10-04 13:19 UTC (permalink / raw)
To: lartc
hi all,
we are having 2 gateways & hence are using rule based routing on ip source.
we want to do now rule based routing on users... by user i mean user of
linux box itself, for eg squid ftp etc....
i tried to do the same using owner patch with iptables, but was unable
to achieve the desired result... here is what i did
[root@Lr1 src]# iptables -A OUTPUT -t mangle -m owner --uid-owner 500 -d
204.0.0.0/7 -j MARK --set-mark 1
[root@Lr1 root]# ip rule ls
....
....
100: from all to $netA lookup GATEA
100: from all to $netB lookup GATEA
100: from all to $netC lookup GATEA
100: from all fwmark 1 lookup GATEA
125: from $netGAteA lookup GATEB
125: from all to $netD lookup GATEB
32766: from all lookup main
32767: from all lookup default
[root@Lr1 root]#
Chain OUTPUT (policy ACCEPT 52917 packets, 3013K bytes)
pkts bytes target prot opt in out source destination
2810 153K MARK all -- * * 0.0.0.0/0 netB
OWNER UID match 500 MARK set 0x1
there is no default route in table main & the default route of table
default is load balanced.... but path to netB is still using default
route via GATEB ie not using GATEA... why ??
whats the mistake i made here ??
awaiting for your suggestion & help...
thanking in advance..
A.H
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-10-04 13:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-04 13:19 [LARTC] rule based routing Arindam Haldar
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.