In another linux host, you can use nmap command
,such as
I open port 1111 on 1.1.1.2
-A INPUT -p tcp -m state --state NEW -m tcp --dport 1111 -j ACCEPT
Executed on 1.1.1.1
Can be found
Reproduced in: https: //www.cnblogs.com/xiaoliu66007/p/11083622.html