Skip to contentSkip to conversation

forwarding proxy traffic to another gateway

DISCUSSION Davide Giunchi 1 participant 1 message Mar 31, 2003

lore
Share & tools
lore
#0 lore raw

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.

Signature · 1 line
Davide Giunchi