replace tee with sysctl

This commit is contained in:
genofire 2019-11-20 11:59:34 +01:00
parent 63a8eb2e60
commit a8873016c8
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
1 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,8 @@ jool_setup() {
route_ipv6 () { route_ipv6 () {
echo "${color_default}> routing ipv6 to namespace${color_log}" echo "${color_default}> routing ipv6 to namespace${color_log}"
echo 1 > /proc/sys/net/ipv6/conf/$ifname_ex/proxy_ndp echo 1 > /proc/sys/net/ipv6/conf/$ifname_ex/proxy_ndp
echo 1 tee /proc/sys/net/ipv6/conf/*/forwarding sysctl -w net.ipv6.conf.all.forwarding=1
#echo 1 tee /proc/sys/net/ipv6/conf/*/forwarding
ip -6 neigh add proxy $v6_address_clat dev $ifname_ex ip -6 neigh add proxy $v6_address_clat dev $ifname_ex
ip -6 route add $v6_address_clat/128 via $internal_ll dev clat ip -6 route add $v6_address_clat/128 via $internal_ll dev clat
} }