From: "dravya" <dravya@magma.ca>
To: Netfilter mailing list <netfilter@lists.netfilter.org>,
dchemko@smgtec.com
Subject: Change of ip addresses continues.... :(
Date: Thu, 26 Aug 2004 17:10:33 -0400 (EDT) [thread overview]
Message-ID: <200408262110.i7QLAX0V026111@webmail1.magma.ca> (raw)
Hi people/Daniel,
I have been trying various set of rules in various table in order to have packets go over
the right link. ie. packet's src add should match outgoing link's ip address. YET, there
are some packets that always tend to go over the wrong link and thus causing ip address
change. They mostly seem to be ICMP Destination Unreacheable messages or DNS queries.
I tried out the rules that Daniel Chemko so generously had provided me with...and they
don't seem to work. I am probably not doing something right. I just tried the following
rules with no luck:
iptables -t mangle -A PREROUTING -j CONNMARK --restore-mark
iptables -t mangle -A PREROUTING -m mark ! --mark 0 -j ACCEPT
iptables -t mangle -A PREROUTING -m mark ! --mark 0 -p icmp -j MARK --set-mark 1
iptables -t mangle -A PREROUTING -m mark ! --mark 0 -j MARK --set-mark 2
iptables -t mangle -A PREROUTING -j CONNMARK --save-mark
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
ptables -t nat -A POSTROUTING -o ppp1 -j MASQUERADE
Are these rules supposed to create 2 routing tables???? If they do, I don't seem them?
This is what I see:
[ ]# ip rule list
0: from all lookup local
32766: from all lookup main
32767: from all lookup 253
I even tried the ROUTE rule separately with no luck (still ip changes):
iptables -A POSTROUTING -t mangle -p icmp -j ROUTE --oif ppp0
Not to mention I initially tried MASQUERADING and that is when Daniel told me that there
were a few problems with Masquerading.
I am to the point of pulling my hair.... thus... any help whatsoever would be appreciated.
Thanks guys,
Dravya
next reply other threads:[~2004-08-26 21:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-26 21:10 dravya [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-08-26 21:26 Change of ip addresses continues.... :( Jason Opperisano
2004-08-26 21:33 ` Eric Leblond
2004-08-26 21:30 Jason Opperisano
2004-08-26 21:36 Daniel Chemko
2004-08-26 21:48 Daniel Chemko
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=200408262110.i7QLAX0V026111@webmail1.magma.ca \
--to=dravya@magma.ca \
--cc=dchemko@smgtec.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