Ubuntu 12.04 Transparent proxy gateway
Posted
by
user146536
on Server Fault
See other posts from Server Fault
or by user146536
Published on 2012-11-21T22:23:14Z
Indexed on
2012/11/21
23:01 UTC
Read the original article
Hit count: 209
i have a ubuntu server which i want to use as a transparent proxy, (i have no issue setting up squid, just the iptables. The server only has one network interface. The server sits on the same subnet as the router which is the current gateway to the internet for clients, i want to simply set the gateway on the clients pointing at the transparent proxy which in turn forwards the requests to the router and off to the internet. See me diagram, can anybody offer to help with the iptables configuration to achieve this scenario?
subnet mask /22
Router(10.4.12.1) Transparent Proxy (eth0, 10.4.12.2)
| |
+----+----+---------+----+----+
| | | |
Comp1(10.4.12.6) Comp2(10.4.12.5) Comp3(10.4.12.4) Comp4(10.4.12.3)
Thanks
© Server Fault or respective owner