Disable IPv6 when connected to server

Scripts to manage certificates or generate config files
Post Reply
daymian kieron
OpenVpn Newbie
Posts: 1
Joined: Thu Aug 22, 2019 10:54 pm

Disable IPv6 when connected to server

Post by daymian kieron » Thu Aug 22, 2019 10:59 pm

Sorry if this is the wrong place. I am connecting to CyberGhost with the OpenVPN client because the CyberGhost client is lacking features I need. I left everything at default but I added the following lines to make my DNS quieries go through my VPN tunnel.

Code: Select all

dhcp-option DNS
My question is however is there something I can put in the config to disable IPv6 when the tunnel is active? I would like to have IPv6 enabled unless OpenVPN is currently connected to a server. Is there anyway I would be able to do this?

Post Reply