Page 1 of 1

Connecting to Squid Proxy

Posted: Sun Jul 31, 2016 1:35 pm
by duceduc
I've managed to setup the vpn server on a Raspberry pi with success. Now, I would like to connect to my squid proxy when connected to the vpn from the client side. I am using an iphone to connect, but not having any success. In the proxy setting on iphone, I type in the server ip and port, but it fails to connect to the Internet.
Do I need an iptables rule on the server? Anyone knows what I need input?

Re: Connecting to Squid Proxy

Posted: Sat Aug 06, 2016 2:04 am
by duceduc
In answering to my own question. I needed an iptables rules to pass traffic to squid(31280)

iptables -t nat -A POSTROUTING -s $VPN_SUBNET -o $NET_INTERFACE -j MASQUERADE
iptables -t nat -A PREROUTING -i tap0 -p tcp --dport 80 -j REDIRECT --to-port 3128