All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Stefan Kaiser" <stefan@ms-kaiser.de>
To: lartc@vger.kernel.org
Subject: [LARTC] policy routing
Date: Wed, 07 Aug 2002 13:16:38 +0000	[thread overview]
Message-ID: <marc-lartc-102872625310677@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98509121616631@msgid-missing>

Hello,

i am using suse-linux 8.0 and i am trying to get this to work:

eth0 = local network
ppp0 = dsl modem
ippp0= isdn-card

network traffic coming from eth0 and going to ppp0 by default

network traffic to dport25 is routed to ippp0 (dynamic-ip)

the traffic from eth0 to ppp0 is working

but the configuration for ippp0 is killing me :-(

marking the pakets:
# iptables -A PREROUTING -i eth0 -t mangle -p tcp --dport 25 \
 -j MARK --set-mark 1

configuring the policy routing database:
# echo 201 mail.out >> /etc/iproute2/rt_tables
# ip rule add fwmark 1 table mail.out
# ip rule ls
0: from all lookup local
32764: from all fwmark        1 lookup mail.out
32766: from all lookup main
32767: from all lookup default

and at last the mail.out table with the route to ippp0, but that´s my
problem: (i think)
# ip route add default dev ippp0 table mail.out

when i am now sending a mail (port25) ippp0 is dialing, but then the
route
is deleted, so i set the route again manual with the above command, but
the mail is not delivered

i have tryed to route the pakets back to my local net to the external
isdn-router:

# ip route add default via 192.168.21.10 dev eth0 table mail.out

this is working!!!

where do i fail?
when i try to set "default route" in the isdn configuration my default
route to the dsl
connection is deleted

I hope somebody can help me

regards,
stefan







_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      parent reply	other threads:[~2002-08-07 13:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-20 12:26 [LARTC] policy routing Gregory OSINAIKE
2001-03-24 21:33 ` bert hubert
2001-12-06 19:13 ` Fabian Gervan
2001-12-06 19:18 ` bert hubert
2002-08-07 13:16 ` Stefan Kaiser [this message]

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-102872625310677@msgid-missing \
    --to=stefan@ms-kaiser.de \
    --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.