Two of my friends are in College/UNI in the UK and can't connect to a lot of services (e.g. teamspeak, most video games) on their internet connection.
I'm trying to setup a VPN from a server I have with OVH.
I've installed Ubuntu 14.10 on a virtual machine on that server and installed openvpn by following this tutorial:
https://jimshaver.net/2014/11/30/setting-up-an-openvpn-server-on-ubuntu-14-10/
My friend can connect and the openvpn client gives no error messages, however when connecting to a website like whatismyip.com she still gets her college IP instead of the IP of the OVH server.
I've tried the following config:
This gives her the IP: 192.168.1.100 from the openvpn client, her external IP is not changed.
mode server
tls-server
local 92.222.150.57
port 80
proto tcp
dev tap0
up "/etc/openvpn/up.sh br0 tap0 1500"
down "/etc/openvpn/down.sh br0 tap0"
persist-key
persist-tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
tls-auth ta.key 0
cipher BF-CBC
comp-lzo
ifconfig-pool-persist ipp.txt
server-bridge 192.168.1.1 255.255.255.0 192.168.1.100 192.168.1.110
route 92.222.150.57 255.255.255.252
push "route 92.222.150.57 255.255.255.252"
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
max-clients 5
user nobody
group nogroup
keepalive 10 120
status openvpn-status.log
verb 3
and I've also tried it with
server-bridge 92.222.150.57 255.255.255.252 92.222.150.59 92.222.150.59
push "route 92.222.150.58 255.255.255.252"
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
This gives her the IP: 92.222.150.59 from the openvpn client, her external IP is not changed.
I prefer to get method one working, where the clients get a private 192.168.1.x IP and externally get the IP: 92.222.150.57 (since I have two friends who'd like to make use of this, and I don't want to waste my IP's on them if not needed) but I don't know if that is possible.