• 请不要在回答技术问题时复制粘贴 AI 生成的内容
vloony
V2EX  ›  程序员

iptables 劫持对外访问

  •  
  •   vloony · Aug 22, 2022 · 1971 views
    This topic created in 1369 days ago, the information mentioned may be changed or developed.
    iptables 如何将本机对外访问 1.1.1.1:443 的请求劫持到 2.2.2.2:7443
    2 replies    2022-08-23 00:51:32 +08:00
    hostname
        1
    hostname  
       Aug 22, 2022
    iptables -t nat -AOUTPUT -p tcp -d 1.1.1.1 --dport 443 -j DNAT --to-destination 2.2.2.2:7443
    vloony
        2
    vloony  
    OP
       Aug 23, 2022
    @hostname 问题解决了 谢谢大佬
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2793 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 00:19 · PVG 08:19 · LAX 17:19 · JFK 20:19
    ♥ Do have faith in what you're doing.