vinibudd DD-WRT Novice
Joined: 28 Mar 2019 Posts: 26
|
Posted: Thu May 09, 2019 23:47 Post subject: Squid and DD-WRT error |
|
Hi, I have a Tp Link WR940N v6 router, build r39715 std (05/03/19) router ip 192.168.1.4. I have a local server running Ubuntu Server 18.04 with fixed ip 192.168.1.150
A problem that I am breaking my head for several hours, I installed Squid Cache on my 192.168.1.150 server and now wanted to on the 192.168.1.4 router follow the steps of the wiki, I saw the forums, but it does not work when I add transparent
https://imgur.com/a/LJQQlv3
I put the ip and transparent of this error conetion refused
https://imgur.com/a/cNXaUJo
Code: | #!/bin/sh
PROXY_IP=192.168.1.10
PROXY_PORT=3128
LAN_IP=`nvram get lan_ipaddr`
LAN_NET=$LAN_IP/`nvram get lan_netmask`
iptables -t nat -A PREROUTING -i br0 -s $LAN_NET -d $LAN_NET -p tcp --dport 80 -j ACCEPT
iptables -t nat -A PREROUTING -i br0 -s ! $PROXY_IP -p tcp --dport 80 -j DNAT --to $PROXY_IP:$PROXY_PORT
iptables -t nat -I POSTROUTING -o br0 -s $LAN_NET -d $PROXY_IP -p tcp -j SNAT --to $LAN_IP
iptables -I FORWARD -i br0 -o br0 -s $LAN_NET -d $PROXY_IP -p tcp --dport $PROXY_PORT -j ACCEPT |
help me please |
|