Force local user use proxy

Kiyor | Created: 01-19-13 04:27:38



Setup local squid.conf with http_port 45678 transparent

ssh to your DD-WRT router and run

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

#!/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

chmod u+x ensquid.sh
./ensquid.sh 192.168.1.x
  • 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!


Category: none

Tags: Server Linux