服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. iptables Linuxnetworking
  3. iptables和多个端口
Intereting Posts
如何使用vagrant运行二进制文件,并保持它在后台运行? FreeBSD上的Apache不响应,但不忙 testing服务器安全性的最佳方法是什么? 设置nginx代理(添加SSL)SMTP与authentication 中断和上下文切换 LDAP密码信息更新失败:访问权限不足(50) 令牌环networking仍在使用吗? 什么产品可用? 防火墙后面的邮件服务器的IP是什么? DNS公共子域parsing MongoDB的辅助程序没有赶上 如何find不能公开访问的EC2实例 在racoon.conf上的IPsec isakmp_natt问题 Kickstart:通过CGI或PHP脚本提供dynamickickstart图像? find输出一个额外的空行 服务器如何跟踪到客户端的路由?

iptables和多个端口

这对我不起作用:

# iptables -A INPUT -p tcp --dports 110,143,993,995 -j ACCEPT iptables v1.4.7: unknown option `--dports' Try `iptables -h' or 'iptables --help' for more information. 

然而,在手册页中,有一个选项 – --dports …任何想法?

  • 在Iptables中debugging规则
  • 如何重置Ubuntu 12.04 iptables默认不locking自己?
  • 白名单允许使用iptables的IP(input/输出)
  • iptables – 目标将数据包路由到特定的接口?
  • 使用IPtables或空路由黑名单约100万个IP地址?

你必须在规则中使用--match multiport来定义更多的端口

 #iptables -A INPUT -p tcp --match multiport --dports 110,143,993,995 -j ACCEPT 

在使用dports选项之前,您需要指定-m multiport模块

  • 添加iptables规则是否足够,无需重新启动?
  • Ubuntu ufw:在每个接口的基础上设置一个规则
  • iptables:如何通过特定的端口只允许一个IP?
  • 我怎样才能阻止Ubuntu中的所有三个端口?
  • 为什么ICMPredirect主机发生?
  • Iptables在巨大的环境中pipe理
  • traceroute使用UDP或ICMP还是两者?
  • 如何将TCPstream量复制到一个或多个远程服务器以进行基准testing?
  • 用其所有规则删除一个iptables链
  • 为什么运行服务器的Docker容器将端口暴露给外部世界,即使所述端口被iptables阻塞?

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy