Problem with traffic control, squid and iptables
Hello everybody,
I would like to limit the bandwith of OpenVPN user to 128 kbit up/down and redirect every http redirect to local squid. I use the following tc settings: Code:
tun0: Code:
iptables -t mangle -A POSTROUTING -d 10.8.0.6 -j MARK --set-mark 4 Code:
iptables -t nat -s 10.8.0.6 -A FORWARD -i tun0 -p tcp --dport 80 -j REDIRECT --to-port 3128 |
After a lot of research in the squid and iptable man I solved it. Thank you all.
|
Code:
iptables -t nat -s 10.8.0.6 -A FORWARD -i tun0 -p tcp --dport 80 -j REDIRECT --to-port 3128 Do you mind sharing whatever you did to fix the problem, in case someone stumbles onto this thread with a similar issue? |
All times are GMT -5. The time now is 07:03 PM. |