A
A
AkZwork2017-07-10 01:10:21
linux
AkZwork, 2017-07-10 01:10:21

How to protect data when OpenVPN breaks?

Good afternoon.
There is Ubuntu. If the OpenVPN connection breaks, then all traffic goes directly.
How to make it so that nothing works when it breaks, including DNS?
That is, only OpenVPN connection and 8.8.8.8 dns are allowed.
Please write more detailed answers. I have been trying to solve the issue for a long time.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
chupasaurus, 2017-07-10
@AkZwork

Remove the default route from the interface with the Internet after raising the tunnel.
Script:

#!/bin/sh
ip route del default dev dev_name

H
Host-Eiweb, 2017-07-10
@Host-Eiweb

What's stopping you from configuring the "gufw" firewall?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question