VPN over SSH
Manual creation and destruction of interfaces
On the pivot machine
sudo ip tuntap add dev tun0 mode tun
sudo ip addr add 10.43.43.1/30 peer 10.43.43.2 dev tun0
sudo ip link set tun0 up
sudo sysctl net.ipv4.conf.default.forwarding=1On the attacker machine
sudo ip tuntap add dev tun0 mode tun
sudo ip addr add 10.43.43.2/30 peer 10.43.43.1 dev tun0
sudo ip link set tun0 up
ssh user1@$PIVOT -w 0:0Setup NAT on the pivot machine
sudo iptables -t nat -A POSTROUTING -s 10.43.43.2 -o eth1 -j MASQUERADESetup route on the attacker machine
Use ARP proxy instead of NAT
Last updated