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

iptables 劫持对外访问

  •  
  •   vloony · Aug 22, 2022 · 2360 views
    This topic created in 1549 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
    hostname
    Aug 22, 2022
    1
    iptables -t nat -AOUTPUT -p tcp -d 1.1.1.1 --dport 443 -j DNAT --to-destination 2.2.2.2:7443
    vloony
    vloony
    OP
    Aug 23, 2022
    2
    @hostname 问题解决了 谢谢大佬
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2706 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 10:34 · PVG 18:34 · LAX 02:34 · JFK 05:34
    ♥ Do have faith in what you're doing.