VPN Tunnel with independent Internet

All comments and questions related to the functionality of the OpenVPN web pages and forum should go here.
Post Reply
OpenVpn Newbie
Posts: 1
Joined: Thu May 28, 2015 8:25 pm

VPN Tunnel with independent Internet

Post by shutta » Thu May 28, 2015 8:42 pm

Hi friends, I have a VPN Tunnel with other PC, but I have a problem with a tunnel. I want clients to see each other, and I also want my internet traffic use my normal network gateway, not the VPN gateway.

If I add push "redirect-gateway def1" clients can see each other, but Internet traffic goes through the tunnel gateway

My server configuration is this:

port 1194
proto udp
topology subnet
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
ifconfig-pool-persist ipp2.txt
push "route"
keepalive 10 120
user nobody
group nogroup
status openvpn-status2.log
log openvpn2.log
log-append openvpn2.log
verb 3

How I can make that clients can see each other and that Internet traffic does not go through the VPN gateway?
Best Regards

User avatar
OpenVPN Protagonist
Posts: 4081
Joined: Sat Aug 09, 2014 11:24 am

Re: VPN Tunnel with independent Internet

Post by Traffic » Fri May 29, 2015 8:34 am

With the server config you have posted your clients can see each other .. you do not require redirect-gateway for that to work and you do not want to redirect-gateways if you do not want all the client traffic routed over the VPN.

Post Reply