sudo su
sudo echo '1' > /proc/sys/net/ipv4/ip_forward
Enable iptables forwarding rule
# IPPSEC Sharp Video explained
# Forward traffic from kali to host where state exists
echo 1 > /proc/sys/net/ipv4/ip_forward
sudo iptables -A FORWARD -i tun0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
# Forward from host to kali
sudo iptables -A FORWARD -i eth0 -o tun0 -j ACCEPT
# Setup Nat from eth0 address
sudo iptables -t nat -A POSTROUTING -s 192.168.218.0/24 -o tun0 -j MASQUERADE
Add route on windows host
# HTB network is routed through VM eth0 addr
route add 10.129.11.0 mask 255.255.255.0 192.168.218.129