How to setup http proxy servers using dd wrt

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
rickybakshi
DD-WRT Novice


Joined: 25 Aug 2011
Posts: 2

PostPosted: Thu Aug 25, 2011 2:37    Post subject: How to setup http proxy servers using dd wrt Reply with quote
Hi All

I have http proxies for different countries and I want to setup in dd wrt, i tried the way of :

http://www.dd-wrt.com/wiki/index.php/Squid_Transparent_Proxy

it not working. Please help.
Sponsor
rickybakshi
DD-WRT Novice


Joined: 25 Aug 2011
Posts: 2

PostPosted: Mon Aug 29, 2011 5:22    Post subject: let me explain better Reply with quote
Hi,

I'm using a squid proxy server and we want to use different IP of countries and to run Wii (device). on DD-wrt admin proxy I saved as firewall:

#!/bin/sh
PROXY_IP=213.x.x.x
PROXY_PORT=xxxx
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
iptables -t nat -I PREROUTING -i br0 -s 192.168.10.1 -j ACCEPT


And was expecting that it will send traffic from port 80 by this set proxy but its not working.

I want to use the exact similar way as we do in manual proxy (Firefox) and if i run google it should show that country by default like if i set UL ip and if i use google.com it should redirect to google.co.uk.

And on top of it we have IP authentication ( where we need to username/pwd) how we can bypass it using dd-wrt?
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC 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 can attach files in this forum
You can download files in this forum