Created
September 11, 2023 11:30
-
-
Save soheilsec/354967ae5894969474bb070205518213 to your computer and use it in GitHub Desktop.
Tunnel Centos to Mikrotik over 6to4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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