升级2.0以后,新内核默认不支持加载ip6tables_nat模块了,


#1

无法使用ip6tables -t nat命令了。之前的rom的内核都是默认加载的


#2

service dnsmasq restart 这个命令也没用了,只有用 sudo /etc/init.d/dnsmasq restart 了
还有,我测试了,设备重启后,就死了,必须恢复出厂。。。


#3

升级到 了。命令改为systemctl restart dnsmasq了
没有出现设备重启司机的情况。只是ip6tables_nat模块没编译到内核里

+++++++++++++++++++++++++++++++++++++++++++
root@gateway0:~# lsmod | grep ipv6
nf_log_ipv6 5014 2
nf_log_common 3370 1 nf_log_ipv6
nf_conntrack_ipv6 8869 5
nf_defrag_ipv6 23177 1 nf_conntrack_ipv6
nf_nat_ipv6 6443 0
nf_nat 13670 10 nf_nat_pptp,nf_nat_proto_gre,xt_nat,nf_nat_h323,nf_nat_sip,nf_nat_ftp,nf_nat_ipv6,nf_nat_masquerade_ipv4,nf_nat_ipv4,nf_nat_tftp
nf_conntrack 79100 19 nf_nat_pptp,nf_conntrack_sip,nf_nat_h323,nf_conntrack_ipv6,nf_conntrack_ftp,nf_nat_sip,nf_conntrack_ipv4,nf_conntrack_tftp,nf_conntrack_pptp,nf_nat_ftp,nf_conntrack_proto_gre,xt_CT,nf_nat_ipv6,nf_nat_masquerade_ipv4,nf_conntrack_h323,xt_conntrack,nf_nat_ipv4,nf_nat_tftp,nf_nat
ipv6 430225 47 nf_conntrack_ipv6,ip6table_mangle,cvm_ipsec_kame,nf_defrag_ipv6,nf_nat_ipv6
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
root@gateway0:~# modprobe ip6tables_nat
modprobe: FATAL: Module ip6tables_nat not found in directory /lib/modules/4.9.79-UBNT

=======================================
ip6tables -t nat -S
ip6tables v1.4.21: can’t initialize ip6tables table `nat’: Table does not exist (do you need to insmod?)
Perhaps ip6tables or your kernel needs to be upgraded.