{"title":"Raspberry Pi 3\u304c\u81ea\u5b85\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5185\u306e\u4ed6\u30c7\u30d0\u30a4\u30b9\u3068\u901a\u4fe1\u51fa\u6765\u306a\u3044\u3088\u3046\u306biptable\u3092\u8a2d\u5b9a","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoripiyo.hatenablog.com%2Fentry%2F2017%2F05%2F06%2F214437\" title=\"Raspberry Pi 3\u304c\u81ea\u5b85\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5185\u306e\u4ed6\u30c7\u30d0\u30a4\u30b9\u3068\u901a\u4fe1\u51fa\u6765\u306a\u3044\u3088\u3046\u306biptable\u3092\u8a2d\u5b9a - TORIPIYO DIARY\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","width":"100%","height":"190","published":"2017-05-06 21:44:37","image_url":null,"blog_url":"https://toripiyo.hatenablog.com/","type":"rich","url":"https://toripiyo.hatenablog.com/entry/2017/05/06/214437","author_name":"ha107chan","categories":["iptables","raspberry pi 3"],"provider_name":"Hatena Blog","blog_title":"TORIPIYO DIARY","author_url":"https://blog.hatena.ne.jp/ha107chan/","version":"1.0","description":"\u5916\u90e8\u306b\u516c\u958b\u3057\u3066\u3044\u308braspberry pi\u3092\u8e0f\u307f\u53f0\u306b\u3057\u3066\u3001\u81ea\u5b85\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5185\u306e\u30c7\u30d0\u30a4\u30b9\u304c\u653b\u6483\u3092\u53d7\u3051\u306a\u3044\u3088\u3046\u306b\u3001iptables\u306b\u4ee5\u4e0b\u8a2d\u5b9a\u3092\u3044\u308c\u307e\u3057\u305f\u3002\u5b9f\u884c\u9806\u5e8f\uff08\u3082\u3061\u308d\u3093\u3001root\u30e6\u30fc\u30b6\u3067\uff09 1. iptables\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\uff08\u3082\u3057\u304b\u3057\u305f\u3089\u3001\u3053\u306e\u524d\u306biptables\u95a2\u9023\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u3060\u3063\u305f\u304b\u3082\u3002\u3002\u3002\uff09 # \u81ea\u5b85\u306e\u30db\u30fc\u30e0\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306eIP localnetwork='192.168.0.0/24' router='192.168.0.1' pi='192.168.0.12' # raspberry pi \u3068\u30eb\u30fc\u30bf\u30fc\u306f\u901a\u4fe1\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b /sbin/iptables -A OUTP\u2026"}