Displaying 2 results from an estimated 2 matches for "squid_box".
2005 Feb 09
2
load balancing between two dsl links
...table 1
ip route add 2.2.2.208/30 dev eth0 table 2
ip route add 10.59.2.0/24 dev eth1 table 2
ip route add 127.0.0.0/8 dev lo table 2
ip route add default scope global nexthop via 2.2.2.209 dev eth0 weight
1 nexthop via 3.3.3.117 dev eth2 weight 1
Below is my iptables: -
lanif="eth1"
squid_box="10.59.2.3"
lan_net="10.59.2.0/24"
$ECHO 1 > /proc/sys/net/ipv4/ip_forward
$IPTABLES -t nat -A PREROUTING -i $lanif -s ! $squid_box -p tcp --dport
80 -j DNAT --to $squid_box:3128
$IPTABLES -t nat -A POSTROUTING -o $lanif -s $lan_net -d $squid_box -j
SNAT --to $lan_ip
$IPT...
2003 Dec 03
0
transparent proxy running in the local network
got it running, really easy !!!
I am running shorewall 1.2.12 on a debian stable !
and have a squid as transparent proxy on another machine (debian
testing)
tried to get this work the hole day:
I found this iptables:
------
iptables -t nat -A PREROUTING -i eth0 -s ! $squid_box -p tcp
--dport 80 -j DNAT --to $squid_box:3128
iptables -t nat -A POSTROUTING -o eth0 -s $local_network -d $squid_box
-j SNAT --to $iptables_box
iptables -A FORWARD -s $local_network -d $squid_box -i eth0 -o eth0 -p
tcp --...