【ubuntu】21ポートを開ける
% sudo iptables -A INPUT -p tcp --dport 21 -j ACCEPT ★ペルプを表示する % sudo iptables --help ★空いているポートを確認する % sudo iptables -L ACCEPT tcp -- anywhere anywhere tcp dpt:ssh ACCEPT tcp -- anywhere anywhere tcp dpt:www ACCEPT tcp -- anywhere anywhere tcp dpt:webmin ACCEPT icmp -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT tcp -- anywhere anywhere tcp dpt:smtp ACCEPT tcp -- anywhere anywhere tcp dpt:ftp