Windows 7 computer connects to OpenVPN but no internet

Need help configuring your VPN? Just post here and you'll get that help.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
dwilley
OpenVpn Newbie
Posts: 2
Joined: Mon Jun 29, 2020 12:53 pm

Windows 7 computer connects to OpenVPN but no internet

Post by dwilley » Mon Jun 29, 2020 1:03 pm

Hello, I have setup an OpenVPN server on my Linksys router. I had some issues with getting it to work on my Android phone but finally got the config file to allow internet on the phone. If i check my IP with my phone it will tell me my home's IP address away from home while i'm connected. Using the same config file on my laptop i don't get the same results. I feel like I have something configured wrong but not sure why it works on my phone and not my laptop. I am using the OpenVPN Connect app on my phone and the OpenVPN Connect program on my computer. Any help would be appreciated. The config file that I am using for my phone and laptop is posted below.

Client config
client
dev tun
proto tcp
remote xx.xxx.x.xxx xxxx
tun-mtu 6000
# fragment 0 can be used to improve performance in some instances but
# breaks compatibility with some Android apps
# fragment 0
mssfix 0
resolv-retry infinite
nobind
persist-key
persist-tun
ns-cert-type server
auth-user-pass
verb 3
redirect-gateway def1
<ca>
Last edited by Pippin on Mon Jun 29, 2020 6:30 pm, edited 1 time in total.
Reason: Formatting

dwilley
OpenVpn Newbie
Posts: 2
Joined: Mon Jun 29, 2020 12:53 pm

Re: Windows 7 computer connects to OpenVPN but no internet

Post by dwilley » Mon Jun 29, 2020 7:16 pm

I have followed the troubleshooting flow chart that is sticky on the forum. It seems that i needed to add push to the beginning of the redirect-gateway line. I now have internet access and I can access connected devices on my LAN at home. Problem is that my public IP does not show as my VPN server's IP. According to the flow chart my VPN is not routing correctly. How would I go about routing the internet access through the VPN tunnel and not from the wifi network i'm connected to?

Post Reply