All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stanislav Nedelchev <stanislav.nedelchev@gmail.com>
To: lartc@vger.kernel.org
Subject: [LARTC] routing between 2 lines problem , after starting squid
Date: Thu, 30 Jun 2005 15:35:45 +0000	[thread overview]
Message-ID: <48581776050630083558054672@mail.gmail.com> (raw)

i'm using one line on eth2 only for web traffic 
eth1 is my internal line and eth0 is my main line to internet .
i'm marking packets like this 

i have default route on eth0

iptables -t mangle -A PREROUTING  -i eth1 -p tcp --dport 80 -j MARK
--set-mark 66
iptables -t mangle -A PREROUTING  -i eth1 -p tcp --sport 80 -j MARK
--set-mark 66
iptables -t mangle -A PREROUTING  -i eth1 -p tcp --dport 3128 -j MARK
--set-mark 66
iptables -t mangle -A PREROUTING  -i eth1 -p tcp --sport 3128 -j MARK
--set-mark 66

iptables -t mangle -A FORWARD  -p tcp --sport 80 -j MARK --set-mark 66
iptables -t mangle -A FORWARD  -p tcp --dport 80 -j MARK --set-mark 66
iptables -t mangle -A FORWARD  -p tcp --sport  3128 -j MARK --set-mark 66
iptables -t mangle -A FORWARD  -p tcp --dport  3128 -j MARK --set-mark 66


iptables -t nat -A POSTROUTING -o eth2 -p tcp --dport 80 -s
192.168.0.0/24 -d ! 192.168.0.0/16 -j MASQUERADE
iptables -t nat -A POSTROUTING -o eth2 -p tcp --dport 3128 -s
192.168.0.0/24 -d ! 192.168.0.0/16 -j MASQUERADE

i have also 
/sbin/ip route add 192.168.0.0/24 dev eth1 table natips
/sbin/ip route add 127.0.0.0/8 dev lo  scope link table natips
/sbin/ip route add default via 217.10.248.1 dev eth2 table natips
/sbin/ip route flush cache
/sbin/ip rule add fwmark 66 table natips


squid is running 
on 192.168.0.1:3128

without squid it's working i'm using second line for web traffic
with squid it's not working 

can anybody help me 

Thanks in advance.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

             reply	other threads:[~2005-06-30 15:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-30 15:35 Stanislav Nedelchev [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-07-01  8:22 [LARTC] routing between 2 lines problem , after starting squid lartc

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=48581776050630083558054672@mail.gmail.com \
    --to=stanislav.nedelchev@gmail.com \
    --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 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.