Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
ipip_tunnel [2021/04/24 15:18]
cubebuilder
ipip_tunnel [2022/02/27 04:58] (current)
onekopaka change the tunnel endpoints to unfiltered IP
Line 50: Line 50:
 echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf
 sysctl -p sysctl -p
-iptunnel add ipip1 mode ipip local YOUR_FILTERED_IP remote DESTINATION_SERVER_IP ttl 255+iptunnel add ipip1 mode ipip local YOUR_UNFILTERED_IP remote DESTINATION_SERVER_IP ttl 255
 ip addr add 192.168.168.1/30 dev ipip1 ip addr add 192.168.168.1/30 dev ipip1
 ip link set ipip1 up ip link set ipip1 up
Line 58: Line 58:
  
 <code> <code>
-iptunnel add ipip1 mode ipip local DESTINATION_SERVER_IP remote YOUR_FILTERED_IP ttl 255+iptunnel add ipip1 mode ipip local DESTINATION_SERVER_IP remote YOUR_UNFILTERED_IP ttl 255
 ip addr add 192.168.168.2/30 dev ipip1 ip addr add 192.168.168.2/30 dev ipip1
 ip link set ipip1 up ip link set ipip1 up