forwarding proxy traffic to another gateway

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

 



   LAN 192.168.1.x
 ____|___
| LNX        |              _________  192.168.10.x
|________|----------| ROUTER  |
     |                        |_________|  FLAT
 __|______
|                  |  PUBLIC IP
| ROUTER |  
|_________|

I've a Linux server that act as a firewall/proxy from an internal lan to 
internet. It runs a Squid proxy in the port 3128.

I want the server to listen to it's pubblic address and reply to the 
"question" from this ip via the public router, so i've set the default 
gateway to the "public ip router".
But i want that all the traffic from the internal lan that pass throught the 
PROXY to use another gateway, say 192.168.10.254, how can i do this?

I've tryied various combination of route and iptables but i haven't found the 
solution.

Regards.

-- 
Davide Giunchi


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux