Skip to content

Instantly share code, notes, and snippets.

@soheilsec
Created September 28, 2023 07:20
Show Gist options
  • Save soheilsec/f8904749ce07108336c9dbfe9e250000 to your computer and use it in GitHub Desktop.
Save soheilsec/f8904749ce07108336c9dbfe9e250000 to your computer and use it in GitHub Desktop.
2001:4860:4860::8888
2001:4860:4860::8844
ifconfig sit0 up
ifconfig sit0 inet6 tunnel ::216.66.86.114
ifconfig sit1 up
ifconfig sit1 inet6 add 2001:470:6c:1e::2/64
route -A inet6 add ::/0 dev sit1
Gre6
#IRAN
# confige tunnele GRE6 ya IPIPv6 IR
ip -6 tunnel add GRE6Tun_IR mode ip6gre remote 2001:470:6c:6e7::2 local 2001:470:6c:1e::2
ip addr add 172.16.1.1/30 dev GRE6Tun_IR
ip link set GRE6Tun_IR mtu 1436
ip link set GRE6Tun_IR up
ifconfig sit0 up
ifconfig sit0 inet6 tunnel ::216.66.86.114
ifconfig sit1 up
ifconfig sit1 inet6 add 2001:470:6c:6e7::2/64
route -A inet6 add ::/0 dev sit1
#KHAREJ
# confige tunnele GRE6 KH using 6to4
ip -6 tunnel add GRE6Tun_KH mode ip6gre remote 2001:470:6c:1e::2 local 2001:470:6c:6e7::2
ip addr add 172.16.1.2/30 dev GRE6Tun_KH
ip link set GRE6Tun_KH mtu 1436
ip link set GRE6Tun_KH up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment