Created
February 17, 2024 02:55
-
-
Save ndunks/76af780eb594c96142c2f1745ef2515a to your computer and use it in GitHub Desktop.
kali-notes.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#in Kali VM with NAT network | |
sudo openvpn ./Desktop/universal.ovpn & | |
# allow IP forward | |
# /etc/sysctl.conf | |
# net.ipv4.ip_forward=1 | |
sudo sysctl -p | |
# NAT | |
sudo iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE | |
#Add route via Kali VM (VPN Connected) | |
sudo route add -net 192.168.236.0/24 dev virbr1 gw 192.168.222.139 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment