服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. iptables linux redirect
  3. iptables有条件的内部redirect
Intereting Posts
Opscode厨师Ohai插件 – 如何让自定义插件自动运行? 将电子邮件发送到Exchange Server 2007中的多个收件人 删除进程(和subprocess)访问文件系统? 调整3ware raid configurationNginx从虚拟机到本地机器 tcpdump显示stream量,直到我使用filter 在XP上奇怪的networking行为 打开LDAP身份validation – 如何validationuserpassword而不绑定? 如何将wwwredirect到Route53中的非www? 使用TLS / SSL进行安全 为什么远程IPredirect到本地服务器? 如何取消删除意外删除的分区? 如何设置一个Web服务器/域名服务器来为同一个IP提供多个域名? 厨师部署新服务器的最自动化方式是什么? 在Windows Server上禁用pipe理员的密码使用期限策略

iptables有条件的内部redirect

我想让iptables从内部从一个端口redirect到另一个,只有当一个服务正在监听那个端口。 可能吗?

  • iptables + iptables_netflow:iptables阻止netflow导出?
  • DoS攻击请求服务器上的单个文件,最好的办法来克服?
  • 不能设置FTPS的iptables规则(pure-ftpd with TLS)
  • 使用iptables根据模式匹配(–string)redirect
  • 将iptables规则转移到另一台服务器(几乎)实时

AFAIK IPtables没有足够的信息来做到这一点。 您可能需要编写一个脚本,使用netcat或netstat中的数据来确定端口是否正在侦听,如果是,则redirect。 从cron运行该脚本。

当然,你可以做到这一点:

iptables -t nat -A PREROUTING -i ethx -p tcp –dport $ srcPort -j REDIRECT – 到端口$ dstPort

  • 如何优化munin fw_conntrack脚本
  • iptables:转发数据包不起作用
  • 使用iptablesredirect两个端口之间的stream量
  • 为Samba提供安全的iptablesconfiguration
  • httpsstream量被路由到端口21
  • iptables – 复合filter
  • CentOS 6 iptables
  • 与iptables最近模块的CentOS错误
  • 用于活动UDP连接的iptables端口转发
  • 在iptables中正确使用白名单cloudflare IP

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