簡單解決 iptables 條件和 nmap 衝突出錯

man iptables
man ip6tables

http://www.frozentux.net/documents/iptables-tutorial/

man nmap

 

 

我設定好了 iptables 條件,但使用 nmap 會有衝突出錯

sendto in send_ip_packet_sd: sendto(4, packet, 44, 0, 12.345.67.89, 16) => Operation not permitted
Offending packet: TCP 192.168.1.叉刹诧:47447 > 12.345.67.89:139 S ttl=55 id=63753 iplen=44 seq=3974890284 win=1024 <mss1460>
.....

必需在 iptables OUTPUT 鏈加

iptables -A OUTPUT -m state --state NEW,ESTABLISHED,REALATED,INVALID -j ACCEPT

INPUT 鏈加(這我原本就有)

iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

 

 

转载于:https://my.oschina.net/chuangpoyao/blog/61176

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值