小编Bog*_*dan的帖子

iptables 问题

我试图放弃对 8180 (TCP) 端口的所有访问,除了一个 IP。

掉落:

iptables -A INPUT -p tcp --dport 8180 -j DROP
Run Code Online (Sandbox Code Playgroud)

例外:

iptables -A INPUT -s 1.2.3.4 -p tcp --dport 8180 -j ACCEPT
Run Code Online (Sandbox Code Playgroud)

其中 1.2.3.4 是允许访问特定端口的 IP。

怎么了?

linux iptables

2
推荐指数
1
解决办法
135
查看次数

标签 统计

iptables ×1

linux ×1