About System

Enjoy Mac, Linux, Server

Force Local User Use Proxy

| Comments

Setup local squid.conf with http_port 45678 transparent

ssh to your DD-WRT router and run

1
iptables -I FORWARD -p tcp -d 192.168.1.2 –dport 45678 -j ACCEPT

After accept local server forward make a script like ensquid.sh

1
2
#!/bin/sh
iptables -t nat -I PREROUTING -p tcp -s $1 –dport 80 -j DNAT –to 192.168.1.2:45678

add exec privilege and run

1
2
chmod u+x ensquid.sh
./ensquid.sh 192.168.1.x

Why I do that:

  • Sucker game console not support use proxy everywhere, like WiiU cannot use proxy on Nico App
  • I have two layer proxy setup for JP website. And ad deny feature on my proxy. Why not using it!

Comments