VPN Tunnel with independent Internet

All comments and questions related to the functionality of the OpenVPN web pages and forum should go here.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
shutta
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:

local 10.0.0.46
port 1194
proto udp
topology subnet
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp2.txt
push "route 10.0.0.0 255.255.255.0"
client-to-client
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
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
Traffic
OpenVPN Protagonist
Posts: 4066
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