daimaosix
V2EX  ›  问与答

SSH 有什么办法可以限制指定 IP 范围访问吗?

  •  
  •   daimaosix · Feb 13, 2023 · 731 views
    This topic created in 1185 days ago, the information mentioned may be changed or developed.
    比如指定:192.168.0.1 - 192.168.0.20 允许访问 SSH ,想用 UFW 去做,发现不能这么配置 IP 范围,大佬们还有其他方法吗?
    GeekSuPro
        1
    GeekSuPro  
       Feb 13, 2023
    把 192.168.0.1 - 192.168.0.20 的 IP 全部录进去 (doge
    julyclyde
        3
    julyclyde  
       Feb 14, 2023
    @retanoj 后期版本的操作系统一般不给 sshd 带 tcp_wrappers 功能了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3175 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 14:50 · PVG 22:50 · LAX 07:50 · JFK 10:50
    ♥ Do have faith in what you're doing.