Ωme*_*ega 4 linux ip firewall iptables ip-address
使用命令
iptables -L
Run Code Online (Sandbox Code Playgroud)
我列出了所有链中的规则,但此工具列出了保存规则的主机名而不是IP地址.这是一种难以阅读的,因为我想在列表中快速找到一些IP地址,这是不可能的.
有没有办法,命令开关或任何简单易用的东西,这会让我列出我的iptables规则与IP地址而不是主机名?
使用以下内容:
iptables -L -n
Run Code Online (Sandbox Code Playgroud)
从手册页:
-n, --numeric
Numeric output. IP addresses and port numbers will be printed in numeric format.
By default, the program will try to display them as host names, network names,
or services (whenever applicable).
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4210 次 |
| 最近记录: |