服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. iptables linux redirect
  3. iptables有条件的内部redirect
Intereting Posts
DNS:千万个查询意味着什么 我们可以pipe理星号上的来电号码吗? 将15,000多个图像从共享主机移动到VPS 我能否知道我的DNS提供商是否遵守我的TTL设置? 每小时停止并启动batch file jenkinsUbuntu错误的版本? 您的服务器在Web开发过程中是如何组织的? 2008年DC GPO – “高级审计策略configuration”缺失? 从WDS WIM捕获中删除本地用户帐户 使用第三方工具pipe理MS SQL Server 2005/8 为什么我的域有两个IP地址的Alogging,当我只有一台服务器有一个静态IP? 开发Cloudformation和用户数据脚本的工作stream程 在cron作业中运行bash_profile Bash脚本:比较path问题 Apache2无法启动

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