{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsnit.hatenadiary.jp%2Fentry%2F2012%2F04%2F04%2F014226\" title=\"iptables\u8a2d\u5b9a - snit21\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"iptables\u8a2d\u5b9a","width":"100%","provider_url":"https://hatena.blog","published":"2012-04-04 01:42:26","type":"rich","blog_title":"snit21\u306e\u65e5\u8a18","blog_url":"https://snit.hatenadiary.jp/","height":"190","provider_name":"Hatena Blog","description":"ipatables\u8a2d\u5b9a $ vi ~/iptables #!/bin/bash # \u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u540d\u5b9a\u7fa9 LAN=eth0 # \u5185\u90e8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u3057\u3066\u8a31\u53ef\u3059\u308b\u7bc4\u56f2 LOCALNET=192.168.1.1/16 # iptables\u306e\u30d1\u30b9 IPTABLES=/sbin/iptables # \u521d\u671f\u5316 $IPTABLES -F # \u30c7\u30d5\u30a9\u30eb\u30c8\u30eb\u30fc\u30eb(\u4ee5\u964d\u306e\u30eb\u30fc\u30eb\u306b\u30de\u30c3\u30c1\u3057\u306a\u304b\u3063\u305f\u5834\u5408\u306b\u9069\u7528\u3059\u308b\u30eb\u30fc\u30eb)\u8a2d\u5b9a $IPTABLES -P INPUT DROP # \u53d7\u4fe1\u306f\u3059\u3079\u3066\u7834\u68c4 $IPTABLES -P OUTPUT ACCEPT # \u9001\u4fe1\u306f\u3059\u3079\u3066\u8a31\u53ef $IPTABLES -P FORWARD DRO\u2026","author_url":"https://blog.hatena.ne.jp/snit21/","author_name":"snit21","version":"1.0","image_url":null,"categories":[],"url":"https://snit.hatenadiary.jp/entry/2012/04/04/014226"}