Squid transparent proxy - client ip

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Advanced Networking
Author Message
kurdovic
DD-WRT Novice


Joined: 11 Oct 2007
Posts: 10

PostPosted: Thu Dec 12, 2013 21:15    Post subject: Squid transparent proxy - client ip Reply with quote
Hi,i have a E1000 router with DD-WRT v24-sp2 (05/03/11) mini and a PC with squidnt proxy, i configured the transparent proxy using the alternative solution( http://www.dd-wrt.com/wiki/index.php/Squid_Transparent_Proxy ) because i need the client ip to be capture to make the ip filtering ACL´s work.
When i put the script and save it the router reboots then nobody has internet.
if i use the first script clients can navigate but the ACL´s dont work because the packet only have router ip.


the alternative solution as it´s shown is complete or i have to add it to the first script?
there is too few documentation about it.

how can i resolve this?

thanks
Sponsor
kurdovic
DD-WRT Novice


Joined: 11 Oct 2007
Posts: 10

PostPosted: Fri Dec 13, 2013 12:55    Post subject: Reply with quote
eibgrad wrote:
It may be that the mark modules are not present in the kernel and you need to add them manually:

insmod ipt_mark
insmod xt_mark


Yeeah! added the two lines and works like a charm.

Thanks a million
kurdovic
DD-WRT Novice


Joined: 11 Oct 2007
Posts: 10

PostPosted: Fri Dec 13, 2013 13:28    Post subject: Reply with quote
My mistake eibgrad i had the proxy settings configured in mozilla, once a select "no proxy" i can´t navigate.

i use this script:
#!/bin/sh
PROXY_IP=10.10.10.2

insmod ipt_mark
insmod xt_mark

iptables -t mangle -A PREROUTING -p tcp --dport 80 -s $PROXY_IP -j ACCEPT
iptables -t mangle -A PREROUTING -p tcp --dport 80 -j MARK --set-mark 3
ip rule add fwmark 3 table 2
ip route add default via $PROXY_IP dev br0 table 2

is this correct?
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Advanced Networking 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