This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Source route work, but how with proxy?

Hy everybody!
I have found an interesting HOWTO: Linux Advanced Routing & Traffic Control Howto, based on iproute2 used by ASL.
Here it is where you can find it: http://lartc.org/#download

With it I was been able to configure my ASL sò that I can decide, using only one external Nic and two internet provider, which pc of my internal LAN can use one link and which one can use the other. 

I wrote in  /sbin/init.d/ the file routes.local with this commands:
# My pc 192.168.100.223 must use rule set on table 200:
ip rule add from 192.168.100.223 table 200
# Now I set the default gw for table 200 that is my second provider (no the default one for eth1).
ip route add default via 192.168.101.2 dev eth1 table 200
ip route flush cache

Sò I tried traceroute from my pc and...Wow!!!! it worked!

But there is still a little problem....
We use http proxy server for user authentication.
And when I use the the proxy it will work only on the first internet provider!!!   
I tried with and without NAT...

Anyone have a good idea?
Thanks guys!
Anty. 
    


This thread was automatically locked due to age.
Parents Reply Children
  • Thanks cyclops.
    using tcp_outgoing_address how can I have two tcp_outoing_address for different source ip?
    I have read the acl section,I can make somthing similar to:
    acl firstconnection src 192.168.0.51/255.255.255.255
    acl secondconnection src 192.168.0.52/255.255.255.255
    And now?
    Something similar to:
    tcp_outgoing_address 192.168.0.1 allow firstconnection
    tcp_outgoing_address 192.168.0.2 allow secondconnection
    ???
    Best regards,
    Anty.