help disabling redirect-gateway

This forum is for admins who are looking to build or expand their OpenVPN setup.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
cTurtle98
OpenVpn Newbie
Posts: 1
Joined: Tue Sep 12, 2017 11:52 pm

help disabling redirect-gateway

Post by cTurtle98 » Wed Sep 13, 2017 12:00 am

Code: Select all

port 1194
proto udp
dev tun
sndbuf 0
rcvbuf 0
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-auth ta.key 0
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
cipher AES-256-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem
Thats my config,

I want to disable redirect-gateway because im trying to setup the server so I have remote access to my computers not so that I can forward my connection

i have tried commenting out the push redirect-gateway line (with a #) and restarting my server then reconnecting my client but then nothing works on the client and chrome tells me that a dns server could not be found

ps i used this tutorial to install my server:
https://www.cyberciti.biz/faq/how-to-install-and-configure-an-openvpn-server-on-debian-9-in-5-minutes/

Post Reply