Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
baijuyi
V2EX  ›  Linux

iptables 限制某个端口流量得问题

  •  
  •   baijuyi · Apr 21, 2023 · 1925 views
    This topic created in 1122 days ago, the information mentioned may be changed or developed.

    首先说下使用场景,比如买了一个 nat 和其他人共用,然后通过 iptables 实现对不同端口进行流量使用限制。 如题,按照 chatgpt 给出的限制方案,但实际测试过程中限制并未生效。大佬们如何使用 iptables 实现对某个转发端口进行流量限制得。

    2 replies    2023-04-21 20:00:53 +08:00
    tomychen
        1
    tomychen  
       Apr 21, 2023
    in(out)put 管不了 nat 。

    https://www.v2ex.com/t/933558#reply18
    这有个现成的例子,做 tcp QoS 的
    baijuyi
        2
    baijuyi  
    OP
       Apr 21, 2023
    @tomychen 感谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2955 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 15:22 · PVG 23:22 · LAX 08:22 · JFK 11:22
    ♥ Do have faith in what you're doing.