policy routing

Linux Advanced Routing and Traffic Control

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

 



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/

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