如何通过启用 tproxy 重新编译内核 iptables

如何通过启用 tproxy 重新编译内核 iptables

我是内核 iptables/netfilter 的新手。我使用的是 Red Hat Linux,Linux 内核为 2.6.37-rc1,iptables 为 1.4.10,squid 为 3.1。但我的 iptables 没有配置 tproxy 表。现在,我想单独重新编译 netfilter/iptables 模块以启用 tproxy。有人能帮我一步一步地在我的系统中启用 tproxy 吗?

答案1

如果您只想将 squid 设置为透明代理,则可以使用默认的 DNAT 和 REDIRECT 目标。无需重新编译。

相关内容