Squid and DD-WRT error

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
vinibudd
DD-WRT Novice


Joined: 28 Mar 2019
Posts: 26

PostPosted: Thu May 09, 2019 23:47    Post subject: Squid and DD-WRT error Reply with quote
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
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum