小编nhe*_*hed的帖子

iptables-save 无法写入文件

我可以运行 iptables-save 并将输出转储到 stdout 但如果我重定向到一个文件 - 该文件为空:

    [root@nhd-vlx2 tmp]# iptables-save  
    # Generated by iptables-save v1.4.7 on Sun Dec 18 15:11:42 2011
    *filter
    :INPUT ACCEPT [0:0]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [90971:17757587]
    -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT 
    -A INPUT -p icmp -j ACCEPT 
    -A INPUT -i lo -j ACCEPT 
    -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT 
    -A INPUT -p tcp -m state --state NEW -m tcp --dport 9090:9999 -j ACCEPT 
    -A …
Run Code Online (Sandbox Code Playgroud)

linux iptables centos6

5
推荐指数
1
解决办法
3599
查看次数

标签 统计

centos6 ×1

iptables ×1

linux ×1