From: Arindam Haldar <arindamhaldar@inbox.lv>
To: lartc@vger.kernel.org
Subject: [LARTC] rule based routing
Date: Fri, 04 Oct 2002 13:19:20 +0000 [thread overview]
Message-ID: <marc-lartc-103373667706829@msgid-missing> (raw)
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/
reply other threads:[~2002-10-04 13:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-103373667706829@msgid-missing \
--to=arindamhaldar@inbox.lv \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.