服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. iptables linux redirect
  3. iptables有条件的内部redirect
Intereting Posts
如何通过单个端口处理encryption和未encryption的http连接 如何找出谁删除了文件Windows Server 2012 R2 Ubuntu的服务器10 – 速度慢,无法删除桌面环境 我如何确定哪个虚拟磁盘是在Linux? Windows Server 2012默认的RAM分配策略 Postfix如何将策略服务与代理filter一起使用 如何确定要使用多less个主机和networking来使用哪个IP范围? 思科IronPort WSA – 如何阻止非公司Google邮件页面 如何使用ELB来平衡redis从服务器并使用sec组 在stream浪虚拟机服务没有拿起configuration 在LVM上引导根文件系统 如何在Google Compute Engine实例上需要sudo密码? 在中央服务器上有250个数据目录的用户 – 你将如何设置它? 集团电话与传真和谷歌语音 只允许使用TeamViewer的域名login

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