{"id":3815,"date":"2016-09-29T21:03:42","date_gmt":"2016-09-29T12:03:42","guid":{"rendered":"http:\/\/www.nkozawa.com\/blog\/?p=3815"},"modified":"2016-09-29T21:03:42","modified_gmt":"2016-09-29T12:03:42","slug":"%e5%b0%8f%e7%b1%b3%e3%83%ab%e3%83%bc%e3%82%bf%e3%83%bc%e9%9d%92%e6%98%a5%e7%89%88-openwrt%e3%81%absoftether-vpn%e3%82%92%e5%b0%8e%e5%85%a5%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"http:\/\/www.nkozawa.com\/blog\/archives\/3815","title":{"rendered":"\u5c0f\u7c73\u30eb\u30fc\u30bf\u30fc\u9752\u6625\u7248 + OpenWrt\u306bSoftether VPN\u3092\u5c0e\u5165\u3059\u308b"},"content":{"rendered":"<p>GitHub\u306bOpenWrt\u7528\u306eSoftether\u30d0\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u3084\u308a\u65b9\u304c\u5206\u304b\u3063\u3066\u3057\u307e\u3048\u3070\u96e3\u3057\u304f\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5b9f\u969b\u306e\u624b\u9806\u3092\u8a18\u8ff0\u3057\u305f\u30b5\u30a4\u30c8\u3082\u6ca2\u5c71\u898b\u3064\u304b\u308a\u307e\u3059\u3002\u305d\u308c\u3067\u3082\u6700\u521d\u306f\u8272\u3005\u3068\u5206\u304b\u3089\u306a\u3044\u3053\u3068\u3082\u3042\u308a\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002\u4f55\u304b\u306e\u53c2\u8003\u306e\u305f\u3081\u306b\u73fe\u6642\u70b9\u3067\u306e\u6709\u52b9\u306a\u624b\u9806\u3092\u8a18\u8ff0\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u53c2\u8003web\u30b5\u30a4\u30c8:<br \/>\n<a href=\"https:\/\/wordpress.tirlins.com\/2015\/03\/setting-up-softether-vpn-on-openwrt\/\">Techie blog &#8211; Setting up Softether VPN on OpenWRT<\/a>\u00a0: \u4f7f\u308f\u308c\u3066\u3044\u308bSDK\u304c\u53e4\u3044\u3053\u3068\u3092\u9664\u3051\u3070\u5b8c\u74a7\u306a\u624b\u9806\u66f8\u3067\u3059\u3002<br \/>\n<a href=\"https:\/\/wiki.openwrt.org\/doc\/howto\/buildroot.exigence\">OpenWrt build system \u2013 Installation<\/a>\u00a0: OpenWrt\u306e\u516c\u5f0f\u30ac\u30a4\u30c9\u3001\u3053\u3053\u306e\u624b\u9806\u306b\u5f93\u3063\u3066\u6700\u65b0\u306eSDK\u3092\u5c0e\u5165\u3057\u307e\u3057\u305f\u3002<br \/>\n<a href=\"https:\/\/github.com\/el1n\/OpenWRT-package-softether\">el1n\/OpenWRT-package-softether<\/a>\u00a0: GitHub\u306eOpenWrt Softether\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3059\u3002<\/p>\n<p>\u6700\u521d\u3001Techi blog &#8211; Setting ip Software VPN on OpenWRT\u306e\u624b\u9806\u306b\u5fe0\u5b9f\u306b\u5f93\u3063\u3066Softether\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u307e\u3067\u5b8c\u4e86\u3057\u307e\u3057\u305f\u304c\u3001\u6b8b\u5ff5\u306a\u304c\u3089\u3053\u306e\u30da\u30fc\u30b8\u3067\u4f7f\u7528\u3057\u3066\u3044\u308bSDK\u30d0\u30fc\u30b8\u30e7\u30f3&#8221;barrier_breaker&#8221;\u306b\u306f\u5c0f\u7c73\u30eb\u30fc\u30bf\u30fc\u3067\u4f7f\u7528\u3059\u308btarget\u304c\u5165\u3063\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u540c\u3058mips\u306eCPU\u306f\u542b\u307e\u308c\u3066\u3044\u308b\u306e\u3067\u5b9f\u969b\u306e\u30d0\u30a4\u30ca\u30ea\u30fc\u306f\u4f7f\u7528\u3067\u304d\u308b\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u304c\u4f5c\u6210\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u5c0e\u5165\u304c\u51fa\u6765\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3053\u3053\u306f\u6700\u65b0\u306eSDK\u3092\u4f7f\u3046\u3079\u304d\u3067\u3057\u3087\u3046\u3002\u307e\u305fGitHub\u306eOpenWRT-softether\u306e\u30da\u30fc\u30b8\u3084\u305d\u306e\u4ed6\u306e\u624b\u9806\u66f8\u306b\u306fsvn\u3067SDK\u3092\u69cb\u7bc9\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u73fe\u5728OpenWrt\u306e\u30b5\u30a4\u30c8\u306esvn\u30b5\u30fc\u30d3\u30b9\u306f\u505c\u6b62\u3057\u3066\u3044\u307e\u3059\u3002\u516c\u5f0f\u624b\u9806\u306b\u3042\u308b\u3088\u3046\u306bgit\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><strong>[ SDK\u306e\u5c0e\u5165 ]<\/strong><br \/>\n\u30c6\u30b9\u30c8\u3067\u306fubuntu\u3082\u4f7f\u7528\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u306fParallels\u4e0b\u306eCnetOS 7\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u516c\u5f0f\u30ac\u30a4\u30c9OpenWrt build system\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u305d\u306e\u307e\u307e\u5b9f\u884c\u3059\u308b\u3060\u3051\u3067\u3059\u3002\u4e00\u5fdc\u3001\u6295\u5165\u3057\u305f\u30b3\u30de\u30f3\u30c9\u3092\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><code>$ sudo yum update<br \/>\n$ sudo yum install subversion binutils bzip2 gcc gcc-c++ gawk gettext flex ncurses-devel zlib-devel zlib-static make patch unzip perl-ExtUtils-MakeMaker glibc glibc-devel glibc-static quilt ncurses-libs sed sdcc intltool sharutils bison wget git-core openssl-devel xz<br \/>\n$ git clone https:\/\/github.com\/openwrt\/openwrt.git<br \/>\n$ cd openwrt<\/code><\/p>\n<p>\u3053\u308c\u3067\u6700\u65b0\u306estbale\u30d0\u30fc\u30b8\u30e7\u30f3(\u308f\u305f\u3057\u306e\u5834\u5408\u306f&#8217;\u591a\u5206&#8217;Chaos Calmer 15.05.1)\u304c\u5c0e\u5165\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><strong>[ softether\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f5c\u6210 ]<\/strong><br \/>\nPC\u4e0a\u3067\u30af\u30ed\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u884c\u3044\u30eb\u30fc\u30bf\u30fc\u4e0a\u3067\u52d5\u304b\u3059\u305f\u3081\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u306e\u4ed5\u7d44\u307f\u306f\u5168\u3066SDK\u306b\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3057\u3001softether\u306e\u30b3\u30fc\u30c9\u3092\u5b8c\u74a7\u306bSDK\u306b\u4e00\u4f53\u5316\u3059\u308b\u305f\u3081\u306e\u624b\u9806\u304c\u51fa\u6765\u4e0a\u304c\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u3053\u308c\u3082\u624b\u9806\u901a\u308a\u306b\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3061\u8fbc\u3080\u3060\u3051\u3067\u5927\u4e08\u592b\u3067\u3059\u3002<\/p>\n<p><code>$ sudo yum install readline-devel<\/code><br \/>\n\u624b\u9806\u66f8\u306b\u306f\u51fa\u3066\u304d\u307e\u305b\u3093\u304csoftether\u306e\u30d3\u30eb\u30c9\u4e2d\u306breadline\u304c\u7121\u304f\u3066\u30a8\u30e9\u30fc\u3057\u307e\u3057\u305f\u306e\u3067\u3001\u4e88\u3081\u5165\u308c\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3059\u3002<\/p>\n<p><code>$ echo \"src-git softethervpn https:\/\/github.com\/el1n\/OpenWRT-package-softether.git\" &gt;&gt; feeds.conf.default<br \/>\n$ .\/scripts\/feeds update<br \/>\n$ .\/scripts\/feeds install softethervpn<\/code><\/p>\n<p>\u4ee5\u4e0a\u3067\u6e96\u5099\u5b8c\u4e86\u3002\u69cb\u6210\u306b\u5165\u308a\u307e\u3059\u3002<\/p>\n<p><code>$ make defconfig<br \/>\n$ make menuconfig<\/code><\/p>\n<p>\u307e\u305a\u306fTarget System\u3092\u9078\u629e\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3053\u308c\u304c\u306a\u304b\u306a\u304b\u96e3\u3057\u3044\u306e\u3067\u3059\u304c\u3001\u5c0f\u7c73\u30eb\u30fc\u30bf\u30fc\u9752\u6625\u7248\u3067\u306e\u7b54\u3048\u3092\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/menuconfig.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3821\" src=\"http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/menuconfig.jpg\" alt=\"menuconfig\" width=\"350\" height=\"260\" srcset=\"http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/menuconfig.jpg 731w, http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/menuconfig-300x222.jpg 300w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/a><br \/>\nTarget System\u3067&#8221;Ralink RT288x\/RT3xxx&#8221;\u3092\u9078\u629e\u3001Subtarget\u3067&#8221;MT7628 based boards&#8221;\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u4e0a\u306e\u30ad\u30e3\u30d7\u30c1\u30e3\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306bNetwork\/VPN\/softethervpn\u3092\u9078\u629e\u3059\u308c\u3070\u69cb\u6210\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p><code>$ make prepare V=s<\/code><\/p>\n<p>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u74b0\u5883\u306a\u3069\u4e0d\u5b89\u304c\u3042\u308b\u306e\u3067\u8a73\u3057\u3044\u7d4c\u904e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306bV=s\u3092\u6307\u5b9a\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u306f\u79c1\u306e\u74b0\u5883\u30672\u6642\u9593\u5f31\u306e\u6642\u9593\u3092\u8981\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><code>$ make package\/softethervpn\/compile V=s<\/code><\/p>\n<p>\u3053\u308c\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f5c\u6210\u304c\u5b8c\u4e86\u3067\u3059\u3002\u308f\u305f\u3057\u306e\u5834\u5408&#8221;.\/bin\/ramips\/packages\/softethervpn\/softethervpn_4.19-9605_ramips.ipk&#8221;\u304c\u51fa\u6765\u4e0a\u304c\u3063\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3059\u3002\u3053\u308c\u3092scp\u7b49\u3067\u30eb\u30fc\u30bf\u30fc\u306e\/tmp\/\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n<p><code>$ scp .\/bin\/ramips\/packages\/softethervpn\/softethervpn_4.19-9605_ramips.ipk root@192.168.1.1:\/tmp\/<\/code><\/p>\n<p><strong>[ \u30eb\u30fc\u30bf\u30fc\u3067\u306e\u5c0e\u5165\u4f5c\u696d ]<\/strong><br \/>\n\u30eb\u30fc\u30bf\u30fc\u306broot\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002<\/p>\n<p><code># opkg update<br \/>\n# opkg install zlib libpthread librt libreadline libncurses libiconv-full kmod-tun libopenssl<br \/>\n# opkg install \/tmp\/softethervpn_4.19-9605_ramips.ipk<\/code><\/p>\n<p>\u3053\u308c\u3067vpnserver, vpnbridge, vpnclient\u304c\u8d70\u308a\u51fa\u3057\u307e\u3057\u305f\u3002\u308f\u305f\u3057\u306fvpnbridge\u3060\u3051\u3092\u4f7f\u7528\u3059\u308b\u306e\u3067LuCI\u306eSystem\/Startup\u304b\u3089vpnserver\u3068vpnclient\u3092\u505c\u6b62\u3057\u3001\u307e\u305f\u81ea\u52d5\u8d77\u52d5\u3092Disable\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u9762\u767d\u3044\u306e\u306f\u30d0\u30a4\u30ca\u30ea\u30fc\u306f\u4e00\u3064\u3060\u3051\u3067vpncmd\u307e\u3067\u5171\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3069\u3046\u3084\u3063\u3066\u5b9f\u73fe\u3057\u3066\u3044\u308b\u306e\u304b\u6642\u9593\u304c\u3042\u308c\u3070\u8abf\u3079\u3066\u307f\u305f\u3044\u3067\u3059\u3002\u307e\u305f\u901a\u5e38\u3067\u3059\u3068\u65e5\u3005\u6ca2\u5c71\u306e\u30ed\u30b0\u3092\u5410\u304d\u51fa\u3059\u306e\u3067\u5bb9\u91cf\u306e\u5c0f\u3055\u306a\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u30ed\u30b0\u7ba1\u7406\u3092\u3069\u3046\u3057\u3088\u3046\u304b\u3068\u601d\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u307e\u3063\u305f\u304f\u30ed\u30b0\u3092\u5410\u304b\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p><strong>[ softether\u306e\u8a2d\u5b9a ]<\/strong><br \/>\n\u7d30\u304b\u3044\u3053\u3068\u306f\u66f8\u304d\u307e\u305b\u3093\u304c\u3001\u3068\u308a\u3042\u3048\u305asoftether\u306e\u8a2d\u5b9a\u306b\u3066\u4eee\u60f3\u30cf\u30d6\u3092\u3059\u3067\u306b\u5b58\u5728\u3059\u308b\u30d6\u30ea\u30c3\u30b8br-lan\u306b\u63a5\u7d9a\u3057\u3001LuCI\u304b\u3089\u30eb\u30fc\u30bf\u30fc\u306eLAN\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308bIP Address\u3092\u8abf\u6574\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u30d1\u30b1\u30c3\u30c8\u304c\u6d41\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GitHub\u306bOpenWrt\u7528\u306eSoftether\u30d0\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u3084\u308a\u65b9\u304c\u5206\u304b\u3063\u3066\u3057\u307e\u3048\u3070\u96e3\u3057\u304f\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5b9f\u969b\u306e\u624b\u9806\u3092\u8a18\u8ff0\u3057\u305f\u30b5\u30a4\u30c8\u3082\u6ca2\u5c71\u898b\u3064\u304b\u308a\u307e\u3059\u3002\u305d\u308c\u3067\u3082\u6700\u521d\u306f\u8272\u3005\u3068\u5206\u304b\u3089\u306a\u3044\u3053\u3068\u3082\u3042\u308a\u6642\u9593\u304c\u304b\u304b\u308a\u307e [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[43,42],"tags":[],"class_list":["post-3815","post","type-post","status-publish","format-standard","hentry","category-wifi","category-42"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts\/3815","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/comments?post=3815"}],"version-history":[{"count":13,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts\/3815\/revisions"}],"predecessor-version":[{"id":3835,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts\/3815\/revisions\/3835"}],"wp:attachment":[{"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/media?parent=3815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/categories?post=3815"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/tags?post=3815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}