Connected but no internet traffic. Only LAN traffic.

Post Reply
paul14
OpenVpn Newbie
Posts: 1
Joined: Wed Mar 15, 2017 1:07 am

Connected but no internet traffic. Only LAN traffic.

Post by paul14 » Fri Mar 17, 2017 2:53 am

I have a new install of TurnKey Linux OpenVPN configured as a gateway. I can connect successfully from Android (official) OpenVPN client and Arne Sschwabe client. I have LAN traffic but no internet traffic.

Server config:

Code: Select all

port 1194                                                                                                                                     
proto tcp                                                                                                                                     
dev tun                                                                                                                                       
                                                                                                                                              
comp-lzo                                                                                                                                      
keepalive 10 120                                                                                                                              
                                                                                                                                              
persist-key                                                                                                                                   
persist-tun                                                                                                                                   
user nobody                                                                                                                                   
group nogroup                                                                                                                                                                                                                                                              
chroot /etc/openvpn/easy-rsa/keys/crl.jail                                                                                                    
crl-verify crl.pem                                                                                                                            
                                                                                                                                              
ca /etc/openvpn/easy-rsa/keys/ca.crt                                                                                                          
dh /etc/openvpn/easy-rsa/keys/dh2048.pem                                                                                                      
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0                                                                                                  
key /etc/openvpn/easy-rsa/keys/server.key                                                                                                     
cert /etc/openvpn/easy-rsa/keys/server.crt                                                                                                    
                                                                                                                                              
ifconfig-pool-persist /var/lib/openvpn/server.ipp                                                                                             
client-config-dir /etc/openvpn/server.ccd                                                                                                     
status /var/log/openvpn/server.log                                                                                                            
verb 4                                                                                                                                        
                                                                                                                                              
# virtual subnet unique for openvpn to draw client addresses from                                                                             
# the server will be configured with x.x.x.1                                                                                                  
# important: must not be used on your network                                                                                                 
server 10.36.110.0 255.255.255.0                                                                                                              
                                                                                                                                              
# configure clients to route all their traffic through the vpn                                                                                
push "redirect-gateway def1 bypass-dhcp" 

sillypants
OpenVpn Newbie
Posts: 1
Joined: Sun Apr 02, 2017 5:33 pm

Re: Connected but no internet traffic. Only LAN traffic.

Post by sillypants » Sun Apr 02, 2017 5:40 pm

Not sure what the rest of your environment is, but I was having the exact same problem... Turnkey OpenVPN configured as gateway, able to connect and see other connected devices but not reach the internet. The serverfault link below worked for me. You'll want to replace 10.8.0.0 with 10.36.110.0 and 1.2.3.4 with your server's public IP address.

https://serverfault.com/questions/30705 ... masquerade

Hope that helps. I get the feeling a lot of people are gonna be installing turnkey openvpn in the coming days.

ronaldinho
OpenVPN User
Posts: 15
Joined: Mon Apr 03, 2017 8:44 am

Re: Connected but no internet traffic. Only LAN traffic.

Post by ronaldinho » Tue Apr 04, 2017 10:17 am

I will be getting turnkey openvpn this week, thanks for sharing

Post Reply