现在使用宝塔面板的人越来越多了,各种BUG和使用经验也是积累了很多,今天笔记君记录一条使用宝塔面板时的错误提示的解决办法。使用CentOS 6安装宝塔面板的过程中出现错误提示如下:
iptables: Invalid argument. Run `dmesg' for more information.iptables: Saving firewall rules to /etc/sysconfig/iptables: [ OK ]iptables: Setting chains to policy ACCEPT: security raw nat[ OK ]filteriptables: Flushing firewall rules: [ OK ]iptables: Unloading modules: [ OK ]iptables: Applying firewall rules: [ OK ]iptables: Loading additional modules: ip_conntrack_netbios_ns ip_conntrack_ftp ip_nat_ftp [FAILED]
其实问题出在/etc/sysconfig/iptables-config,打开它:
vi /etc/sysconfig/iptables-config
注释掉:IPTABLES_MODULES="ip_conntrack_netbios_ns ip_conntrack_ftp ip_nat_ftp":
# Load additional iptables modules (nat helpers)# Default: -none-# Space separated list of nat helpers (e.g. 'ip_nat_ftp ip_nat_irc'), which# are loaded after the firewall rules are applied. Options for the helpers are# stored in /etc/modprobe.conf.#IPTABLES_MODULES="ip_conntrack_netbios_ns ip_conntrack_ftp ip_nat_ftp" //就是这一行,注释掉# Unload modules on restart and stop# Value: yes|no, default: yes# This option has to be 'yes' to get to a sane state for a firewall# restart or stop. Only set to 'no' if there are problems unloading netfilter# modules.IPTABLES_MODULES_UNLOAD="yes"# Save current firewall rules on stop.# Value: yes|no, default: no# Saves all firewall rules to /etc/sysconfig/iptables if firewall gets stopped# (e.g. on system shutdown).IPTABLES_SAVE_ON_STOP="no"...
好像是配置netbios穿越NAT用的,一般用不到的。 ip_conntrack_netbios_ns 这个模块在make menuconfig 中是IP_NF_NETBIOS_NS。
[root@li1583-161 ~]# /etc/init.d/iptables restart iptables: Setting chains to policy ACCEPT: security raw nat[ OK ]filteriptables: Flushing firewall rules: [ OK ]iptables: Unloading modules: [ OK ]iptables: Applying firewall rules: [ OK ]
是不是改定了呢?^-^
还有一种解决办法,就是直接使用使用CentOS 7系统安装宝塔,就不会出现上述问题,记录于此,以备所需。
引自:http://www.vpsbj.com/1040.html
本文链接:https://www.kinber.cn/post/1163.html 转载需授权!
推荐本站淘宝优惠价购买喜欢的宝贝: