IPTABLES: routing VPN users through transparent Squid
I'm hoping someone can help me out - I've been tearing my hair out over this!
I have pptpd and squid set up. I want give these users access to the internet, but would like to send http traffic through a squid proxy.
Hopefully this rough diagram will give you an idea of what I'm trying to achieve:
Now, I was hoping another simple rule would redirect all http traffic through squid:
Can anyone suggest how to get this working?
I don't really know much about this stuff I'm afraid :( I would also love some recommendations for ways in which I can debug the system, e.g. which log files to look at, tcpdump commands etc. I find the iptables documentation extremely bewildering!
Your rule looks correct except for "-i ppp+" - input interface.
You can type - "ifconfig -a" to see all interfaces and put one belongs to TUN.
I thing the problem is there.
|All times are GMT -5. The time now is 08:55 PM.|