* [LARTC] problems with routing (two DSL lines)
@ 2003-03-31 14:54 Stefan Weigel
2003-03-31 16:42 ` Kim Jensen
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Weigel @ 2003-03-31 14:54 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] problems with routing (two DSL lines)
2003-03-31 14:54 [LARTC] problems with routing (two DSL lines) Stefan Weigel
@ 2003-03-31 16:42 ` Kim Jensen
0 siblings, 0 replies; 2+ messages in thread
From: Kim Jensen @ 2003-03-31 16:42 UTC (permalink / raw)
To: lartc
Hi Stefan,
The problem is that you must have a copy of your routing table installed with
a different default. Look at the small shell script in
http://linux-ip.net/html/adv-multi-internet.html.
/Kim
On Monday 31 March 2003 18:54, Stefan Weigel wrote:
> 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
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-03-31 16:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-31 14:54 [LARTC] problems with routing (two DSL lines) Stefan Weigel
2003-03-31 16:42 ` Kim Jensen
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.