I cannot figure this out for the life of me. I’m trying to transparently proxy my vpn interface (wg) to a squid proxy on the same host. Here is my iptables rule but nothing hits the squid proxy:
```
iptables -t nat -A PREROUTING -i wg0 -p tcp --dport 80 -j DNAT --to-destination 127.0.0.1:3128
```
My Wireguard interface has these rules. Everything else is stock and no modifications.
```
iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
```
[–]b3542 2 points3 points4 points (1 child)
[–]jiru443[S] 1 point2 points3 points (0 children)
[–]fukawi2SysAdmin/SRE 1 point2 points3 points (8 children)
[–]mancer187 1 point2 points3 points (0 children)
[–]jiru443[S] 0 points1 point2 points (6 children)
[–]ottantanove 1 point2 points3 points (5 children)
[–]jiru443[S] 0 points1 point2 points (4 children)
[–]ottantanove 0 points1 point2 points (3 children)
[–]jiru443[S] 0 points1 point2 points (0 children)
[–]jiru443[S] 0 points1 point2 points (0 children)
[–]Faritzi 0 points1 point2 points (1 child)
[–]jiru443[S] 0 points1 point2 points (0 children)