Hello,
I need some assistance with setting up squid to work transparently
My setup is
Router: 192.168.1.1
Squid: 192.168.1.30
Workstation: 192.68.1.5
DHCP leases are handed out by the router and by default everything is allowed on the Inteet.
on the router I have created a static route to my workstation ip
Code:
route add 192.168.1.5 gw 192.168.1.30
Code:
iptables -t nat -S -P PREROUTING ACCEPT -P INPUT ACCEPT -P OUTPUT ACCEPT -P POSTROUTING ACCEPT -A PREROUTING -s 192.168.1.5/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.1.30:3128 root@squid:/var/log# iptables -S -P INPUT DROP -P FORWARD DROP -P OUTPUT ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -s 192.168.1.5/32 -p tcp -m tcp --dport 3128 -j ACCEPT
برچسب:
نویسنده: استخدام کار