All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Weigel <sw@global-linxs.de>
To: lartc@vger.kernel.org
Subject: [LARTC] problems with routing (two DSL lines)
Date: Mon, 31 Mar 2003 14:54:44 +0000	[thread overview]
Message-ID: <marc-lartc-104912248402440@msgid-missing> (raw)

Hi!
I have sucessfully installed the iproute2 stuff. I configurated the way like 
this:

iptables -A PREROUTING -i eth0 -t mangle -p TCP --dport 80 -j MARK --set-mark

echo 201 dynamic.out >> /etc/iproute2/rt_tables
ip rule add fwmark 1 table dynamic.out
ip route add default via <my_dyn_ip> dev ppp0 table dynamic.out

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE


After setup it's working fine. But instead of only routing only the http 
requests over ppp0, all protocols are routed over this interface.

I have another DSL line (SDSL) with a public IP address. I don't know, why 
everything is routed through the ADSL line.


Best regards

Stefan

-- 

__________________________________________




 stefan weigel
 administration


 global linxs gmbh
 knowledge interaction
 romanstrasse 16
 80639 munich - germany
 www.global-linxs.com



 tel.: +49(0)89. 189 336- 61
 fax.: +49(0)89. 189 336- 99
 email: sw@global-linxs.com



__________________________________________

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

             reply	other threads:[~2003-03-31 14:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-31 14:54 Stefan Weigel [this message]
2003-03-31 16:42 ` [LARTC] problems with routing (two DSL lines) Kim Jensen

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-104912248402440@msgid-missing \
    --to=sw@global-linxs.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.