Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: "Serdar KÖYLÜ" <skoylu@gizemcafe.net>
To: lartc@vger.kernel.org
Subject: [LARTC] policy routing problem
Date: Mon, 08 Dec 2003 18:21:06 +0000	[thread overview]
Message-ID: <marc-lartc-107090873809237@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104748821401394@msgid-missing>

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@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  parent reply	other threads:[~2003-12-08 18:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-12 16:55 [LARTC] policy routing problem Tomas Bonnedahl
2003-03-12 17:24 ` Tomas Bonnedahl
2003-03-12 18:19 ` Tomas Bonnedahl
2003-03-13  4:15 ` Martin A. Brown
2003-03-13 10:27 ` Tomas Bonnedahl
2003-12-08 18:21 ` Serdar KÖYLÜ [this message]
2003-12-09 13:58 ` Serdar KÖYLÜ

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-107090873809237@msgid-missing \
    --to=skoylu@gizemcafe.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox