All traffic not going through VPN
Posted: Wed Jun 19, 2013 4:01 pm
I added these two lines to my server config
And these two lines to my client config
Everything else in the config files are the default settings. Except I added Local a.b.c.d to the server since it has a static ip to my router. The section in the HowTo manual related to this subject mentions nothing about editing the client config. I only did it because several other threads concerning this subject said to add the pull compliment. After connecting to the server, I used whatismyip.com to see if my IP address had changed. It did not. There were some commented out lines in the default server config that I think my be relevant to my problem. They are here: If you would like to see my full config files, I'll post them. Any help is greatly appreciated! I'm new to OpenVPN.
Code: Select all
push "redirect-gateway def1"
push "dhcp-option DNS 10.8.0.1"
Code: Select all
push "redirect-gateway def1"
push "dhcp-option DNS 10.8.0.1"
Code: Select all
# Push routes to the client to allow it
# to reach other private subnets behind
# the server. Remember that these
# private subnets will also need
# to know to route the OpenVPN client
# address pool (10.8.0.0/255.255.255.0)
# back to the OpenVPN server.
;push "route 192.168.10.0 255.255.255.0"
;push "route 192.168.20.0 255.255.255.0"
# If enabled, this directive will configure
# all clients to redirect their default
# network gateway through the VPN, causing
# all IP traffic such as web browsing and
# and DNS lookups to go through the VPN
# (The OpenVPN server machine may need to NAT
# or bridge the TUN/TAP interface to the internet
# in order for this to work properly).
;push "redirect-gateway def1 bypass-dhcp"