Forums

Scumbag
Scumbag
Offline
Resolved
0 votes
Hi all

I have a ClearOS 6.9 server/internet gateway located in Sydney (about 3 metres from me at present). When I'm travelling overseas I'd like to access Australian catch-up TV, which is geoblocked. This question is past the limits of my networking expertise, so don't actually know if this is best achieved using the proxy server or a VPN, and if it's a VPN then which of the available options should I consider?

Thanks in advance
Monday, October 23 2017, 03:50 AM
Share this post:

Accepted Answer

Monday, October 23 2017, 11:26 AM - #Permalink
Resolved
0 votes
If you have the bandwidth, it is easiest achieved through OpenVPN to your own server then onto the internet, but you need to make your client redirect all its traffic through the OpenVPN server.

The simplest way to do this is to add the following line to /etc/openvpn/clients.conf:
push "redirect-gateway def1"
Then restart OpenVPN.

There are alternative ways:
1 - If your client is Android, use this client where there is an option to redirect all traffic through the VPN. You then don't need to do anything special in ClearOS.
2 - If you want to leave the default clients.conf in place, clone it to a new file, change the port and the line which points to ipp.txt, and add the 'push "redirect-gateway def1"' line. Restart openVPN. Then open the new incoming port. In the .ovpn file you download, change port and import the new profile into what ever machine you want. Android and iOS both allow you to rename the profile once imported.
The reply is currently minimized Show
Responses (2)
  • Accepted Answer

    Scumbag
    Scumbag
    Offline
    Tuesday, October 24 2017, 09:41 PM - #Permalink
    Resolved
    0 votes
    Brilliant! I'm moving next week to a 100/35Mbps cable connection so the speed shouldn't be an issue. I will give this a try.

    Edit : I just set this up and it looks like it's working. I set up the OpenVPN server and client, connected to the internet using my phone and managed to get the VPN to work. I streamed a bit of the catch-up TV and watched the bandwidth monitor on the server - the usage went through the roof and settled back to normal when I stopped streaming, so I reckon I have it. The next step is to try it from a different country, which won't happen till January.

    Thanks!
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, October 25 2017, 09:07 AM - #Permalink
    Resolved
    0 votes
    ... and I've thought of a way in Windoze where you don't have to change anything in ClearOS and it should work with any client.

    You can copy the .ovpn to something else. In it add the line:
    redirect-gateway def1
    Then use the original .ovpn profile if you just want to access your server and LAN, and use the new modified profile if you want to redirect all traffic.

    Lots of different ways of skinning a cat.

    One way you can test if it is working is to go to any site which gives you your WAN IP or just google "what is my ip". It should give you your ClearOS WAN IP if all traffic is going through the VPN.
    The reply is currently minimized Show
Your Reply