{"id":101,"date":"2020-09-08T10:30:17","date_gmt":"2020-09-08T01:30:17","guid":{"rendered":"http:\/\/charon.s1005.xrea.com\/?p=101"},"modified":"2020-09-08T10:31:53","modified_gmt":"2020-09-08T01:31:53","slug":"%e3%82%b9%e3%83%9e%e3%83%9b%e3%81%a8%e3%83%a9%e3%82%ba%e3%83%91%e3%82%a4%e3%81%a8wifi%e3%83%ab%e3%83%bc%e3%82%bf","status":"publish","type":"post","link":"https:\/\/linux-walker.net\/?p=101","title":{"rendered":"\u30b9\u30de\u30db\u3068\u30e9\u30ba\u30d1\u30a4\u3068WiFi\u30eb\u30fc\u30bf"},"content":{"rendered":"\n<p>\u307e\u305f\u9593\u304c\u3042\u3044\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>ADSL\u3092\u89e3\u7d04\u3057\u3066\u304b\u3089\u3001\u30e2\u30d0\u30a4\u30eb\u30eb\u30fc\u30bf\u3092\u5bb6\u306e\u4e2d\u3067\u3082\u4f7f\u3063\u3066\u3044\u305f\u306e\u3060\u3051\u3069\u3001\u3084\u306f\u308a\u9045\u3044\u3057\u3001\u3069\u3046\u306b\u3082\u4f7f\u3044\u306b\u304f\u3044\u3002\u3042\u304d\u3089\u3081\u3066\u5149\u306b\u3057\u305f\u3051\u3069\u3001\u4eca\u306f\u6df7\u3093\u3067\u308b\u6642\u671f\u306a\u306e\u304b\u3001\u5de5\u4e8b\u306f\u968f\u5206\u5148\u306b\u3002\u305d\u3053\u3067\u3053\u308c\u307e\u3067\u306e\u5bb6\u306e\u4e2d\u306eWiFi\u74b0\u5883\u3092\u305d\u306e\u307e\u307e\u306b\u3001ADSL\u30e2\u30c7\u30e0\u306e\u304b\u308f\u308a\u306b\u30b9\u30de\u30db\u3092\u3064\u306a\u3050\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u3053\u308c\u3067\u4ed6\u306e\u6a5f\u5668\u306f\u4f55\u3082\u5909\u66f4\u306a\u3057\u3067\u3044\u3044\u306e\u3067\u3002\u69cb\u6210\u306f<br><br>\u30b9\u30de\u30db&#8212;-(USB\u63a5\u7d9a)&#8212;-Raspberry Pi3&#8212;-(Ethernet\u63a5\u7d9a)&#8212;-Buffalo WiFi\u30eb\u30fc\u30bf<br><br>\u3068\u3044\u3046\u611f\u3058\u3067\u3059\u3002\u3082\u3061\u308d\u3093\u30b9\u30de\u30db\u3067USB\u30c6\u30b6\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3059\u306a\u304a\u306b\u30b9\u30de\u30db\u304cusb0\u3068\u3057\u3066\u8a8d\u8b58\u3055\u308c\u3066\u3044\u308c\u3070\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u3055\u308c\u3066\u306a\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u3092\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br><br>$ sudo ifconfig usb0 up<br><strong>$<\/strong> sudo dhcpcd usb0<br><br>\u305d\u308c\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306bIP\u304c\u632f\u3089\u308c\u3066\u3044\u3066\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u63a5\u7d9a\u3067\u304d\u308c\u3070OK\u3002<br><br><strong>$<\/strong> ifconfig usb0<br>usb0: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt; &nbsp;mtu 1500<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inet 192.168.42.116 &nbsp;netmask 255.255.255.0 &nbsp;broadcast 192.168.42.255<\/p>\n\n\n\n<p>\u6b21\u306b\u30eb\u30fc\u30bf\u306b\u3064\u306a\u3050eth0\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u304c\u3001\u3081\u3093\u3069\u304f\u3055\u3044\u306e\u3067\u56fa\u5b9aIP\u306b\u3057\u307e\u3059\u3002\/etc\/dhcpcd.conf\u3000\u3067\u3053\u3093\u306a\u611f\u3058\u306b\u3002<br><br>interface eth0<br>static ip_address=192.168.0.10\/24<br>static domain_name_servers=127.0.0.1<\/p>\n\n\n\n<p>\u4e00\u65b9Buffalo\u306eWiFi\u30eb\u30fc\u30bf\u306e\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u5074\u306e\u8a2d\u5b9a\u3082\u56fa\u5b9aIP\u306b\u3057\u3066\u3001<br><br>IP\u30a2\u30c9\u30ec\u30b9 192.168.0.2<br>\u30c7\u30d5\u30a9\u30eb\u30c8\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4 192.168.0.10<br>DNS(\u30d7\u30e9\u30a4\u30de\u30ea\u30fc) 192.168.0.10<br><br>\u306a\u3069\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3042\u3068\u306fforward\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u304a\u3057\u307e\u3044\u3002<br><br>\u52d5\u7684\u306b\u306f sysctl -w net.ipv4.ip_forward=1 \u3067\u3001\u30d1\u30fc\u30de\u30cd\u30f3\u30c8\u306b\u306f<br>\/etc\/sysctl.conf \u3067<br>net.ipv4.ip_forward=1<br>\u306b\u3057\u307e\u3059\u3002\u305d\u3057\u3066iptables\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3002<br><br>sudo iptables -t nat -A POSTROUTING -o usb0 -j MASQUERADE<br>sudo iptables -A FORWARD -m conntrack &#8211;ctstate RELATED,ESTABLISHED -j ACCEPT<br>sudo iptables -A FORWARD -i eth0 -o usb0 -j ACCEPT<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u53c2\u8003\u306b\u3057\u305f\u306e\u306f\u4ee5\u4e0b\u3067\u3059\u3002<br><br><a href=\"https:\/\/superuser.com\/questions\/1505796\/4g-lte-device-usb-tethering-raspberry-pi-ethernet-router-is-this-poss\">https:\/\/superuser.com\/questions\/1505796\/4g-lte-device-usb-tethering-raspberry-pi-ethernet-router-is-this-poss<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u307e\u305f\u9593\u304c\u3042\u3044\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002 ADSL\u3092\u89e3\u7d04\u3057\u3066\u304b\u3089\u3001\u30e2\u30d0\u30a4\u30eb\u30eb\u30fc\u30bf\u3092\u5bb6\u306e\u4e2d\u3067\u3082\u4f7f\u3063\u3066\u3044\u305f\u306e\u3060\u3051\u3069\u3001\u3084\u306f\u308a\u9045\u3044\u3057\u3001\u3069\u3046\u306b\u3082\u4f7f\u3044\u306b\u304f\u3044\u3002\u3042\u304d\u3089\u3081\u3066\u5149\u306b\u3057\u305f\u3051\u3069\u3001\u4eca\u306f\u6df7\u3093\u3067\u308b\u6642\u671f\u306a\u306e\u304b\u3001\u5de5\u4e8b\u306f\u968f\u5206\u5148\u306b\u3002\u305d\u3053\u3067\u3053\u308c\u307e\u3067\u306e\u5bb6\u306e\u4e2d&hellip; <a class=\"more-link\" href=\"https:\/\/linux-walker.net\/?p=101\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u30b9\u30de\u30db\u3068\u30e9\u30ba\u30d1\u30a4\u3068WiFi\u30eb\u30fc\u30bf<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,13],"tags":[],"class_list":["post-101","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi","category-13","entry"],"_links":{"self":[{"href":"https:\/\/linux-walker.net\/index.php?rest_route=\/wp\/v2\/posts\/101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-walker.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-walker.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-walker.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-walker.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=101"}],"version-history":[{"count":5,"href":"https:\/\/linux-walker.net\/index.php?rest_route=\/wp\/v2\/posts\/101\/revisions"}],"predecessor-version":[{"id":161,"href":"https:\/\/linux-walker.net\/index.php?rest_route=\/wp\/v2\/posts\/101\/revisions\/161"}],"wp:attachment":[{"href":"https:\/\/linux-walker.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-walker.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-walker.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}