lqph3387 于 2010-12-20 14:05(13 年以前) 发表:
为什么我执行完后会是这样呢:
[root@ns ns]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
error: "Operation not permitted" setting key "net.ipv4.conf.tun0.mc_forwarding"
net.ipv4.conf.tun0.forwarding = 1
error: "Operation not permitted" setting key "net.ipv4.conf.eth0.mc_forwarding"
net.ipv4.conf.eth0.forwarding = 1
error: "Operation not permitted" setting key "net.ipv4.conf.lo.mc_forwarding"
net.ipv4.conf.lo.forwarding = 1
error: "Operation not permitted" setting key "net.ipv4.conf.default.mc_forwarding"
net.ipv4.conf.default.forwarding = 1
error: "Operation not permitted" setting key "net.ipv4.conf.all.mc_forwarding"
net.ipv4.conf.all.forwarding = 1
net.ipv4.ip_forward = 1