Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------VPS----------
- cat ./ipv6
- #!/bin/sh
- modprobe ipv6
- ip tunnel add he-ipv6 mode sit remote **** local ****
- ip link set he-ipv6 up
- ip link set he-ipv6 mtu 1420
- ip addr add 2001:470:****:****::2/64 dev he-ipv6
- ip -6 route add default dev he-ipv6
- cat /etc/wireguard/wg.conf
- [Interface]
- Address = 172.27.1.1/32, 2001:470:****::1/128
- ListenPort = *****
- PrivateKey = ********
- [Peer]
- Publickey = ********
- AllowedIPs = 172.16.0.0/12, 2001:470:****::2/128, 2001:470:****:1100::/56
- ----start wireguard daemon
- systemctl start wg-quick@wg
- ----------OpenWrt-------
- /etc/config/network
- config interface 'lan'
- option ifname 'eth0.1'
- option proto 'static'
- option ipaddr '172.30.1.1'
- option netmask '255.255.255.0'
- option ip6addr '2001:470:****:1100::1/56'
- config interface 'wg'
- option proto 'wireguard'
- option private_key '********'
- list addresses '172.27.1.2/32'
- list addresses '2001:470:****::2/128'
- config wireguard_wg
- option public_key '********'
- option endpoint_port '****'
- option endpoint_host '****'
- list allowed_ips '0.0.0.0/0'
- list allowed_ips '::/0'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement