From: Arthur van Leeuwen arthurvl@sci.kun.nl
To: lartc@vger.kernel.org
Subject: [LARTC] Masquerading under 2.4
Date: Fri, 12 Jan 2001 09:51:39 +0000 [thread overview]
Message-ID: <marc-lartc-98373940416864@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98373940416855@msgid-missing>
<PRE>On Thu, 11 Jan 2001 <A HREF="mailto:wyonker@dcsnow.com">wyonker@dcsnow.com</A> wrote:
><i> Here is the final piece to my puzzle. I'll buy someone a beer if they
</I>><i> can help me with this.
</I>><i>
</I>><i> I have two connections to the internet. I would like all traffic on port
</I>><i> 27015 to go out on the 2nd connection (which is eth1 on the router)
</I>><i> and all traffic from one client also. Oh and I would like to force all
</I>><i> traffice going to specific hosts (myisp.com and myisp2.com) to go
</I>><i> over their respective interfaces because they block traffic from anywhere
</I>><i> else.
</I>
><i> Now, to do the part with the client I can just do the following right?
</I>><i>
</I>><i> echo 200 John >> /etc/iproute2/rt_tables
</I>><i> ip rule add from 10.0.0.10 table John
</I>><i> ip route add default via 195.96.98.253 dev ppp2 table John
</I>><i> ip route flush cache
</I>><i>
</I>><i> I copied that from the advanced routing Howto.
</I>
Right so far.
><i> So can I just add the port to the 'ip rule add' line? Like this?
</I>><i>
</I>><i> ip rule add from 10.1.1.10:27015 table John
</I>
Nope. You'll have to mark the packets with ipchains (or, in your case
iptables) first (the -m option for ipchains, --mark for iptables). Then
you add a rule matching on that fwmark (ip rule add fwmark 0xf00 table John).
Note that you have to specify the marks in hexadecimal, or else it won't work.
><i> As always, any help would be appreciated.
</I>
I'll leave figuring out the ISP-specific routing to your creativity...
can't really spoil all your fun, now can I? :)
Doei, Arthur.
--
/\ / | <A HREF="mailto:arthurvl@sci.kun.nl">arthurvl@sci.kun.nl</A> | Work like you don't need the money
/__\ / | A friend is someone with whom | Love like you have never been hurt
/ \/__ | you can dare to be yourself | Dance like there's nobody watching
</PRE>
next prev parent reply other threads:[~2001-01-12 9:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-11 14:45 [LARTC] Masquerading under 2.4 Arthur
2001-01-11 15:12 ` Willis
2001-01-11 20:12 ` wyonker
2001-01-11 21:30 ` Arthur
2001-01-11 22:47 ` wyonker
2001-01-12 1:51 ` wyonker
2001-01-12 9:51 ` Arthur [this message]
2001-01-13 0:37 ` wyonker
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-98373940416864@msgid-missing \
--to=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.