09/09/15 21:04:18 A92myaqf
iptablesに関して教えてください
外部からはSSHのみ可能で、内部からはウェブサイトの閲覧だけ出来るように
iptablesを設定したつもりですが、この書式だと外部からSSHできませんでした。
iptables -L は以下のようになっています。
何がおかしいかご教示いただけると幸いです。
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy DROP)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:http