From: Paul <lists@loudas.com>
To: "Netfilter Users (List)" <netfilter@lists.netfilter.org>
Subject: Help with fwmark and shorewall
Date: Tue, 14 Dec 2004 14:44:05 +1300 [thread overview]
Message-ID: <41BE4565.7090503@loudas.com> (raw)
I'm using shorewall, 2 ISP connections, and I want to force udp 500
traffic out one particular interface
here's what I have so far
/etc/shorewall/tcrules:
4 0.0.0.0/0 202.37.230.93 udp 500
4 202.37.230.93 0.0.0.0/0 udp 500
shorewall show mangle | grep MARK
14 4203 MARK udp -- * * 0.0.0.0/0
202.37.230.93 udp dpt:500 MARK set 0x4
0 0 MARK udp -- * * 202.37.230.93
0.0.0.0/0 udp dpt:500 MARK set 0x4
routing:
/sbin/ip rule add prio 223 fwmark 4 table 223
/sbin/ip route add default via 202.37.230.65 dev eth2 \
src 202.37.230.93 proto static table 223
routing rules:
ip rule show
0: from all lookup local
50: from all lookup main
201: from 202.37.230.64/26 lookup 201
202: from 203.96.212.0/23 lookup 202
222: from all lookup 222
223: from all fwmark 0x4 lookup 223
32766: from all lookup main
32767: from all lookup default
ip route show table 223
default via 202.37.230.65 dev eth2 proto static src 202.37.230.93
the load balancing work flawlessly :)
however I have racoon (kernel 2.6.8.1) on the firewall, and only
sometimes it responds using 202.37.230.93 .. sometimes it uses my other
ISP connection .. which is no good :(
I've got to the point where I guess I need to use fwmark before routing,
but it doesn't seem to work :(
Any help
Thanks
Paul.
reply other threads:[~2004-12-14 1:44 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=41BE4565.7090503@loudas.com \
--to=lists@loudas.com \
--cc=netfilter@lists.netfilter.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox