From: Gerardo Arceri <elfarto@elfarto.com.ar>
To: lartc@vger.kernel.org
Subject: [LARTC] Route away packets addressed to the machine itself w/iproute and
Date: Fri, 18 Feb 2005 21:16:48 +0000 [thread overview]
Message-ID: <42165B40.20905@elfarto.com.ar> (raw)
[-- Attachment #1: Type: text/plain, Size: 876 bytes --]
I have a box with only 1 IP (lets say 10.0.0.1) which has an ipip tunnel
to another machine (lets say 10.2.0.1)(different networks) i wan't all
packets coming to 10.0.0.1 destination port 80 be routed thru the tunnel
device and be answered by 10.2.0.2 (which has an interface configured
with 10.0.0.1).
It works if the incoming ip address is not configured on the receiving
machine (but is configured to be arpproxied) but not with the "main" ip
address.
This is what i did to test
on 10.0.0.1
ifconfig
eth0: main interface
tunnel2: ipip tunnel interface to 10.2.0.2
/etc/iproute/rt_tables
added:
100 myroute
iptables -A PREROUTING -t mangle -d 10.0.0.1 -p tcp --dport 80 -j MARK
--set-mark 99
ip route add table test dev tunnel2
ip rule add fwmark 99 table test
in 10.0.0.2
ifconfig eth0:101 10.0.0.1 netmask 255.255.255.255
What i'm doing wrong ?
Thanks!
[-- Attachment #2: Type: text/html, Size: 1319 bytes --]
reply other threads:[~2005-02-18 21:16 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=42165B40.20905@elfarto.com.ar \
--to=elfarto@elfarto.com.ar \
--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.