asifshaon / tunnelblick

Automatically exported from code.google.com/p/tunnelblick
0 stars 0 forks source link

After disconnecting from the host server, internet is not working #214

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
NOTE: We suggest that you post on the Tunnelblick Discussion Group before
submitting an "Issue". (http://groups.google.com/group/tunnelblick-discuss)

What steps will reproduce the problem?
1. Connect to a VPN server (my university server for access to academic 
journals)
2.Disconnect from the server
3. Internet not working

What is the expected output?

What do you see instead?
I have noticed the DNS servers from the service used are grayed out in 
network---> advanced ---> DNS
so I can not remove them

What version of Tunnelblick are you using? On what version of OS X?
Tunnelblick 3.2.8 (build 2891.3099) --- Lion 10.7.4 (it was the same with all 
Lion versions)

Please provide any additional information below. Please include your
configuration file and the contents of the OpenVPN Log window (including
the first few lines with version information), but remember to remove any
sensitive information such as IP addresses.
---------

client

# Use the same setting as you are using on
# the server.
# On most systems, the VPN will not function
# unless you partially or fully disable
# the firewall for the TUN/TAP interface.
;dev tap
dev tun0

# Windows needs the TAP-Win32 adapter name
# from the Network Connections panel
# if you have more than one.  On XP SP2,
# you may need to disable the firewall
# for the TAP adapter.
;dev-node MyTap

# Are we connecting to a TCP or
# UDP server?  Use the same setting as
# on the server.
;proto tcp
proto udp

# The hostname/IP and port of the server.
# You can have multiple remote entries
# to load balance between the servers.
remote vpn.xxxx.xxx xxxx
;remote my-server-2 xxxx

# Choose a random host from the remote
# list for load-balancing.  Otherwise
# try hosts in the order specified.
;remote-random

# Keep trying indefinitely to resolve the
# host name of the OpenVPN server.  Very useful
# on machines which are not permanently connected
# to the internet such as laptops.
resolv-retry infinite

# Most clients don't need to bind to
# a specific local port number.
nobind

# Downgrade privileges after initialization (non-Windows only)
user nobody
group nobody

# Try to preserve some state across restarts.
persist-key
persist-tun

# If you are connecting through an
# HTTP proxy to reach the actual OpenVPN
# server, put the proxy server/IP and
# port number here.  See the man page
# if your proxy server requires
# authentication.
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]

# Wireless networks often produce a lot
# of duplicate packets.  Set this flag
# to silence duplicate packet warnings.
;mute-replay-warnings

# SSL/TLS parms.
# See the server config file for more
# description.  It's best to use
# a separate .crt/.key file pair
# for each client.  A single ca
# file can be used for all clients.
ca "/Users/xxxxx/Library/Application 
Support/Tunnelblick/Configurations/xxxxx.keys/ca.crt"
;cert client.crt
;key client.key

# Verify server certificate by checking
# that the certicate has the nsCertType
# field set to "server".  This is an
# important precaution to protect against
# a potential attack discussed here:
#  http://openvpn.net/howto.html#mitm
#
# To use this feature, you will need to generate
# your server certificates with the nsCertType
# field set to "server".  The build-key-server
# script in the easy-rsa folder will do this.
ns-cert-type server

# If a tls-auth key is used on the server
# then every client must also have the key.
tls-auth "/Users/xxxx/Library/Application 
Support/Tunnelblick/Configurations/xxxx.keys/xxx.key" 1

# Select a cryptographic cipher.
# If the cipher option is used on the server
# then you must also specify it here.
;cipher x

# Enable compression on the VPN link.
# Don't enable this unless it is also
# enabled in the server config file.
comp-lzo

# Set log file verbosity.
verb 3

# Silence repeating messages
;mute 20
explicit-exit-notify 2
auth-user-pass

Original issue reported on code.google.com by minmatso...@gmail.com on 10 Sep 2012 at 9:22

GoogleCodeExporter commented 9 years ago
Same issue for me, although toggling wireless on and off appeared to jump start 
the underlying Internet connection. I am hoping to deploy this to several 
employees, so resolution would be appreciated.

Original comment by rccsv...@gmail.com on 28 Nov 2012 at 3:45

GoogleCodeExporter commented 9 years ago
The problem for the original poster is probably the "user nobody" and "group 
nobody" options in the configuration file. They can interfere with restoring 
the network configuration after disconnecting.

But there are many causes for this symptom. That's why it should be posted on 
the Tunnelblick Discussion Group; more eyes will see it there.

Original comment by jkbull...@gmail.com on 28 Nov 2012 at 4:22

GoogleCodeExporter commented 9 years ago

Original comment by jkbull...@gmail.com on 13 Jan 2013 at 7:16

GoogleCodeExporter commented 9 years ago
jkbull's comment about the user and group nobody settings seems correct, 
removing that solved this for me.

Original comment by jm.ro...@gmail.com on 29 Aug 2013 at 1:55

GoogleCodeExporter commented 9 years ago
It's a very late answer, but I had the same problem and placing one checkbox 
fixed it.
It's under VPN Details / Configuration / Advanced /
translated in english it's something like "set back the primary interface after 
disconnecting the connection".

Original comment by c.se...@gmail.com on 27 May 2015 at 10:11