-
-
Save matsuu/1085108 to your computer and use it in GitHub Desktop.
gentoo 6rd setting for sakura VPS (/etc/conf.d/net)
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
config_eth0="aaa.bbb.ccc.ddd/23" | |
routes_eth0="default via aaa.bbb.ccc.1" | |
dns_servers_eth0="210.224.163.4 210.224.163.3" | |
iptunnel_6rd="mode sit local aaa.bbb.ccc.ddd ttl 64" | |
config_6rd="2001:e41:xxxx:xxxx::1/32" # printf "2001:e41:%02x%02x:%02x%02x::1\n" aaa bbb ccc ddd | |
routes_6rd="::/0 via ::61.211.224.125 dev 6rd" | |
mtu_6rd="1280" | |
postup() { | |
local retval=0 | |
if [ "${IFACE}" = "6rd" ] ; then | |
ip tunnel 6rd dev 6rd 6rd-prefix 2001:e41::/32 | |
retval=$? | |
fi | |
return $retval | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment