policy routing problem

Linux Advanced Routing and Traffic Control

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

 



Hello..

I Use mandrake 9.1 with a custom kernel. Policy routing etc. all routing
options selected while compile the kernel (2.4.22)..

System is a PC and contain 4 ethernet. 

eth0, a local subnet. 192.168.0.1
eth1, a ADSL modem. pppoe run this interface and ppp0 already up.
Interface numbered as 10.0.0.1 for access modem, and ppp0 masqueraded
for outgoing connections (with $IPT -A POST.. -o ppp0 -j MASQUERADE)

eth2, connect a FR line with a router and address
195.174.43.34 eth3, connect a DMZ with 212.174.154.128/25

Other hand, we use a /28 block for local subnet. eth2 masquerade packets
from local lan to using iptables ... DNAT. 

ADSL line newly connected, 2048/512 kbps.

Only FR line router defined as default gw. 

This system currently working fine, but don't use ADSL..

I want this reason:

All http request use ADSL line.

OR

Only a machine from DMZ (its a proxy server) use this ADSL line..

I read HOWTO and other sources, and test this commands:

echo 200 http >>/etc/iproute2/rttables (!?)

ip rule add fwmark 10001 table http
ip route add default via 81.215.8.1 table http
ip route flush cache
iptables -t mangle -A PREROUTING -p tcp --dport 80 \
  -j MARK --set-mark 10001

For this state, policy routing don't any effect. ppp0 TX/RX Values same
always.

I try this rule. 

ip rule add from 212.174.154.219 table http

Wow... This machine can't reach internet for this reason :(( No
routing.. 

I try, cut-edit-paste HOWTO lines. Create table john etc.. But same
result :(( 

I'm confused. You can help me ?

Excuse me for poor english :(

Thanks.. 
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
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