[LARTC] problems with routing (two DSL lines)

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx



__________________________________________



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux