Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion

Using OpenVPN and Squid - Static Route Help
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Using OpenVPN and Squid - Static Route Help

eKoeKo Member

Hello,

Im trying to get this up and running: http://www.empirion.co.uk/linux/linux-privateinternetaccess-using-openvpn-squid-proxy-part-4/

But I get stucked on the part 4 : 4. Configure Static Routes Back to Your Internal Networks

Im trying with a Digitalocean VPS, but as soon I do a routing and restart openvpn, I get locked out of the vps.

How should the route command looks like for a network like this?

http://i.imgur.com/IrCdAnn.png

All the suggestions are welcome.

Thank you!

Comments

  • Hi eKo,

    What is the subnet 10.19.0.0 on eth0, is that PIA? In your screenshot, I'm assuming you haven't started OpenVPN yet?

    In general, if you want the default route to go through PIA, you need to make sure you have some other way of reaching the Squid server; e.g., via your OpenVPN. So get that working first, without messing with the default route. Bringing OpenVPN up should add a routing rule for OpenVPN's subnet, over OpenVPN's tun0 interface.

    I'm not too familiar with PIA, but I assume it's just a paid VPN. It seems to me that a better solution than changing the default route for the entire server is just setting the outgoing interface for squid in its config: tcp_outgoing_address, perhaps?

    Best,

Sign In or Register to comment.