Kali/OpenVPN/DNS
From charlesreid1
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
hostapd, openvpn, and PIA setting up hostapd, openvpn, and PIA on kali linux
Kali/OpenVPN/Hotspot · Kali/OpenVPN/DNS · Kali/OpenVPN/PIA
|
OpenVPN a tool for creating and connecting to virtual private networks.
Creating a Static Key VPN: OpenVPN/Static Key Configuring Your DNS: DNS
|
Networking pages and notes about computer networks.
Man in the Middle attack vectors on wired networks: Man in the Middle/Wired Packet analysis with Wireshark: Packet Analysis Linux networking: Linux/Networking
Using Aircrack: Aircrack Many Ways to Crack a Wifi: Cracking Wifi
Linux/Networking · Linux/SSH · Linux/File Server
Notes on OpenVPN: OpenVPN Setting Up a Static Key VPN: OpenVPN/Static Key
Domain Name Servers: DNS · Linux/DNS IP Version 6: IPv6
Wireshark · SSH · Stunnel · Tor · Ettercap · Aircrack · Tcpdump
Tunnels · HTTP and HTTPS · SSH Tunnels · Linux/SSH
|