Transparent proxy: The client does not need to manually set the proxy in the browser, reduce the client's work, directly use the proxy server specified by the nat server in the firewall rule to access the Internet
Setting the hardware,
Nat server 2 network card, eth0 is connected to the internal network, eth1 is connected to adsl dialing, after dialing is ppp0 interface
single squid proxy server ip 192.168.0.200
1:iptables
echo 1>/proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUEADE
Note: The configuration below is configured to select One of the configurations
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128 (nat and squid belong to the same machine)
Iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to-dest 192.168.0.200:3128 (This configuration is squid is another machine, separated from nat)
2: Squid proxy configuration
httpd_port 3128 transparent (key row)
Other configurations skip
This transparent proxy with linux is ok.
As a Linux enthusiast, after several determinations, he gave up the dual system and installed Linux
Computer Store News: first Linux systems for flat panel launch For those who have tired of the N
If you are a Linux user, you may have heard that you dont need to defrag your Linux files system. Yo
We all know how to query the installation time of win7 system? In fact, it is very simple, you can f
Unexpected administrator Linux management integration security
In-depth study on Lvs scheduling strategy
Daren Hall: teach you to easily restore Linux password
Talking about the learning direction and method of Linux system
Detailed explanation of RPM command parameters in Linux
How to make win2003 automatically log in after the launch of
Linux Security - Set up to block the blaster
Ubuntu 11.04 and 11.10 comprehensive comparison
How to remove windows.old win10 delete windows.old method
How to use win8 speech recognition
How Win8 uses software to make memory virtual hard disk
Shift wonderful use how much Windows 7 Shift + left button combination
Win2003 Server disk mirror volume management articles
Jinshan Office Software Launches Secure Cloud Storage System