Connecting to Squid Proxy

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
duceduc
Posts: 5
Joined: Sun Jul 31, 2016 1:27 pm

Connecting to Squid Proxy

Post by duceduc » Sun Jul 31, 2016 1:35 pm

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?

duceduc
Posts: 5
Joined: Sun Jul 31, 2016 1:27 pm

Re: Connecting to Squid Proxy

Post by duceduc » Sat Aug 06, 2016 2:04 am

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

Post Reply