Skip to content

Instantly share code, notes, and snippets.

@soheilsec
Created September 11, 2023 11:30
Show Gist options
  • Save soheilsec/354967ae5894969474bb070205518213 to your computer and use it in GitHub Desktop.
Save soheilsec/354967ae5894969474bb070205518213 to your computer and use it in GitHub Desktop.
Tunnel Centos to Mikrotik over 6to4
ip tunnel add 6to4tun_IR mode sit remote 109.104.154.58 local 109.104.154.29
ip -6 addr add 2001:470:1f10:e1f::1/64 dev 6to4tun_IR
ip link set 6to4tun_IR mtu 1480
ip link set 6to4tun_IR up
ip -6 tunnel add GRE6Tun_IR mode ip6gre remote 2001:470:1f10:e1f::2 local 2001:470:1f10:e1f::1
ip addr add 172.16.1.2/30 dev GRE6Tun_IR
ip link set GRE6Tun_IR mtu 1436
ip link set GRE6Tun_IR up
ip route add default via 172.16.1.2 table 120
ip rule add from 172.16.24.0/24 table 120
ping -c 4 172.16.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment