From charlesreid1

(Created page with "Set up OpenVPN as described on the Kali/OpenVPN page. Next, we will tell anyone on the VPN network we just created to use the gateway/host machine as the DNS server. This...")
 
No edit summary
Line 1: Line 1:
==Steps==
Set up OpenVPN as described on the [[Kali/OpenVPN]] page.
Set up OpenVPN as described on the [[Kali/OpenVPN]] page.


Line 24: Line 26:
sudo systemctl restart openvpn
sudo systemctl restart openvpn
</pre>
</pre>
==Flags==
{{KaliFlag}}
{{OpenVPNFlag}}
{{NetworkingFlag}}

Revision as of 01:41, 2 December 2019

Steps

Set up OpenVPN as described on the Kali/OpenVPN page.

Next, we will tell anyone on the VPN network we just created to use the gateway/host machine as the DNS server. This ensures DNS queries are passed through the gateway/host machine.

On the gateway machine, edit /etc/openvpn/server/server.conf

Make the gateway machine the DNS resolver by adding the line

push "dhcp-option DNS <IP-ADDR-OF-TUN0-INTERFACE>"

For me,

push "dhcp-option DNS 10.8.0.1"

Also comment out any other push "dhcp-option DNS lines.

Now restart the OpenVPN server on the gateway machine:

sudo systemctl restart openvpn

Flags