All of lore.kernel.org
 help / color / mirror / Atom feed
From: Esteban Ribicic <eribicic@UolSinectis.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] ip rule and transparent proxy.
Date: Wed, 05 Mar 2003 13:47:32 +0000	[thread overview]
Message-ID: <marc-lartc-104687213925369@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104687131224590@msgid-missing>

you should try marking squid packets (output chain for example) and then
add a rule (ip rule ls)..
in lartc.org http://www.lartc.org/lartc.pdf have plenty of examples.

tips: when marking packets on iptables, use hexa not decimal notting.
try patching the kernel if does not work (http://www.ssi.bg/~ja/) cause
kernel default source may not work...

and its probably that squid use as source adrres of ip header the ip on
the default route, so you might have to nat that src to the other
interface (so packets leave the interface you want and come back in that
interface and not the other -if they come..- )

greets and good speed.

On Wed, 2003-03-05 at 10:27, Alessandro Ren wrote:
> 
> 	Hello,
> 
> 	I have a linux box with 2 internet links where I am dividing the
> traffic among both links. I have one link for VPN and the other one for
> internet access in general.
> 	The main routing table has its default gateway and it's used for VPN
> access and the other routing table is used to deviate all the other traffic.
> If a set transparent proxy, all tha traffic goes out through the main
> routing table, but I'd like it do go out in the second default gateway.
> 	I've tried to mark packets but it did't work for transparent proxy.
> Any sugestions here?
> 	I have in the second routing table routes for the VPNs LAN pointing
> to the defalut route of the main routing table and rest gets out in the
> second link.
> 
> 	Thanks a lot.


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  reply	other threads:[~2003-03-05 13:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-05 13:27 [LARTC] ip rule and transparent proxy Alessandro Ren
2003-03-05 13:47 ` Esteban Ribicic [this message]
2003-03-05 15:40 ` Stephane Ouellette
2003-03-05 15:59 ` Esteban Ribicic
2003-03-06 14:18 ` Alessandro Ren
2003-03-06 15:11 ` Esteban Ribicic
2003-03-21 14:07 ` Alessandro Ren

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-104687213925369@msgid-missing \
    --to=eribicic@uolsinectis.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.