خرید بک لینک

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
squid iptables so far

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
If I set the proxy manually I can get on the Inteet fine if I use port 80 or 3128, however what would be the best way to do this transparently?
Thank you for your time, I'm still quite new to iptables

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 12 ارديبهشت 1395 ساعت: 13:06

صفحه بندی