Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Tom Fischer <tfischer@abh.de>
To: netfilter@lists.samba.org
Subject: Routing Problem
Date: Fri, 20 Sep 2002 16:29:07 +0200	[thread overview]
Message-ID: <3D8B30B3.9030002@abh.de> (raw)

Hi,

I have 2 Machines connected to the Internet via DSL. The first machine 
is the default gateway on all machines in the LAN. I've 2 Machines 
because i want to use the second as a fallback. But now i want to route 
a few services over the second machine, like E-Mail.

For testing i wanted to route a host over the second machine. I followed 
the Adv-Routing-HOWTO and placed:

iptables -I PREROUTING -i eth0 -t mangle -p tcp -s host -j MARK --set-mark 1
echo 201 test >> /etc/iproute2/rt_tables
ip rule add fwmark 1 table test
ip route add default via xxx.xxx.xxx.xxx dev eth2 table test

xxx.xxx.xxx.xxx is the IP of the second Machine connected to the first 
via a Crossover-Cable. This works fine, both machines can ping the other.

This setup didn't work. Did i miss something?

Hope anybody can help me out.

Regards, Tom

-- 
Tom Fischer			ABH Marketingservice GmbH
System Administrator		Weisshaustrasse 23a
Tel: 0221-94400446		50939 Koeln
http://www.abh.de




             reply	other threads:[~2002-09-20 14:29 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-20 14:29 Tom Fischer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-08-13 18:26 Routing problem GG Noris
2004-02-13 15:39 Carlos Fernandez Sanz
2004-02-13 15:50 ` Antony Stone
2004-02-13 16:30   ` Carlos Fernandez Sanz
2004-02-13 17:12     ` Antony Stone
2004-02-14  8:41       ` Carlos Fernandez Sanz
2004-02-14  9:09         ` Antony Stone
2004-02-14 15:15           ` Carlos Fernandez Sanz
2004-02-14 15:19           ` Carlos Fernandez Sanz
2004-02-14 15:38             ` Antony Stone
2004-02-13 17:16     ` Scott MacKay
2004-02-14  8:47       ` Carlos Fernandez Sanz
2004-02-13 16:53 ` John A. Sullivan III
2004-07-27  7:23 Michelle Konzack
2004-07-27  7:42 ` Sven Schuster
2004-07-27  8:06   ` Michelle Konzack
2004-07-27 14:21     ` Sven Schuster
2004-07-28  8:32       ` Michelle Konzack

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=3D8B30B3.9030002@abh.de \
    --to=tfischer@abh.de \
    --cc=netfilter@lists.samba.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