{"id":508,"date":"2022-12-24T11:46:04","date_gmt":"2022-12-24T02:46:04","guid":{"rendered":"http:\/\/blog.gurees.net\/?p=508"},"modified":"2022-12-24T20:18:43","modified_gmt":"2022-12-24T11:18:43","slug":"centos8-stream%e3%81%a7es460%e3%82%92%e3%83%ab%e3%83%bc%e3%82%bf%e3%81%ab%e3%81%99%e3%82%8b%e2%91%a2-vpn%e7%b7%a8","status":"publish","type":"post","link":"https:\/\/blog.gurees.net\/?p=508","title":{"rendered":"CentOS8 Stream\u3067ES460\u3092\u30eb\u30fc\u30bf\u306b\u3059\u308b\u2462 SoftEther VPN\u7de8"},"content":{"rendered":"\n<p>\u4eca\u307e\u3067\u3067\u666e\u6bb5\u4f7f\u3044\u306eLAN\u3068\u30b5\u30fc\u30d0\u5411\u3051LAN\u304c\u5206\u304b\u308c\u3001\u30b5\u30fc\u30d0\u5411\u3051LAN\u3067\u306fDNS\u306b\u3088\u308b\u540d\u79f0\u89e3\u6c7a\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u6b21\u306fSoftEther VPN\u3092\u4f7f\u3044\u3001VPN\u3067\u30b5\u30fc\u30d0\u5411\u3051LAN\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\u4eca\u56de\u306f\u5916\u90e8\u304b\u3089\u30b5\u30fc\u30d0\u5411\u3051LAN\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3044\u3068\u3044\u3046\u3088\u308a\u3001\u30b5\u30fc\u30d0\u30eb\u30fc\u30e0\u306b\u3044\u306a\u304f\u3068\u3082\u30b5\u30fc\u30d0\u306e\u521d\u671f\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3092\u884c\u3063\u3066\u3001\u305d\u308c\u304b\u3089\u642c\u5165\u304c\u3057\u305f\u3044\u3068\u3044\u3046\u76ee\u7684\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b5\u30fc\u30d0\u30eb\u30fc\u30e0\u306f\u4eca\u306e\u6642\u671f\u306f\u5bd2\u3044\u306e\u3067\u3001\u307b\u304b\u306e\u90e8\u5c4b\u3067\u306c\u304f\u306c\u304f\u306e\u3093\u3073\u308a\u3068\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u305f\u3044\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u3001\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u5b9f\u65bd\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br>\u6700\u5c0f\u69cb\u6210\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u306e\u3067\u3001wget\u3084tar\u3082\u306a\u304b\u3063\u305f\u306e\u3067\u5165\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># dnf -y install make gcc\n# dnf -y install wget tar<\/pre>\n\n\n\n<p>\u6b21\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br>https:\/\/www.softether-download.com\/ja.aspx?product=softether\u304b\u3089\u6700\u65b0\u7248\u306e\u30ea\u30f3\u30af\u3092\u8abf\u3079\u3066\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<br><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># wget http:\/\/jp.softether-download.com\/files\/softether\/v4.38-9760-rtm-2021.08.17-tree\/Linux\/SoftEther_VPN_Server\/64bit_-_Intel_x64_or_AMD64\/softether-vpnserver-v4.38-9760-rtm-2021.08.17-linux-x64-64bit.tar.gz\n<\/pre>\n\n\n\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u89e3\u51cd\u3057\u3066\u3001make\u3001\/usr\/local\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3054\u3068\u79fb\u52d5\u3055\u305b\u307e\u3059\u3002\u79fb\u52d5\u5f8c\u3001\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u3082\u5909\u3048\u3066\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># gzip -cd softether-vpnserver-v4.38-9760-rtm-2021.08.17-linux-x64-64bit.tar.gz | tar xvf -\n# cd vpnserver\n# make\n# cd ..\/\n# mv vpnserver \/usr\/local\n# cd \/usr\/local\/vpnserver\n# chmod 600 *\n# chmod 700 vpncmd\n# chmod 700 vpnserver<\/pre>\n\n\n\n<p>\u6b21\u306b\u30b5\u30fc\u30d3\u30b9\u767b\u9332\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># vi \/etc\/systemd\/system\/vpnserver.service\n##\u4ee5\u4e0b\u3092\u8ffd\u8a18\n[Unit]\nDescription=SoftEther VPN Server\nAfter=network.target network-online.target\n\n[Service]\nExecStart=\/usr\/local\/vpnserver\/vpnserver start\nExecStop=\/usr\/local\/vpnserver\/vpnserver stop\nType=forking\nRestartSec=3s\n\n[Install]\nWantedBy=multi-user.target<\/pre>\n\n\n\n<p>\u3053\u308c\u3067\u8d77\u52d5\u3068\u884c\u304d\u305f\u3044\u306e\u3067\u3059\u304c\u3001SELinux\u6709\u52b9\u3060\u3068\u8d77\u52d5\u306b\u5931\u6557\u3057\u307e\u3059\u3002\u306a\u306e\u3067\u3001restorecon\u3067\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u3064\u3051\u3066\u3042\u3052\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># ls -dZ \/usr\/local\/vpnserver\/\nunconfined_u:object_r:default_t:s0 \/usr\/local\/vpnserver\/\n# ls -Z \/usr\/local\/vpnserver\/vpnserver\nunconfined_u:object_r:default_t:s0 \/usr\/local\/vpnserver\/vpnserver\n\n# restorecon -R \/usr\/local\/vpnserver\n\n# ls -dZ \/usr\/local\/vpnserver\/\nunconfined_u:object_r:usr_t:s0 \/usr\/local\/vpnserver\/\n# ls -dZ \/usr\/local\/vpnserver\/vpnserver\nunconfined_u:object_r:usr_t:s0 \/usr\/local\/vpnserver\/vpnserver<\/pre>\n\n\n\n<p>\u3053\u308c\u3067systemd\u304b\u3089\u8d77\u52d5\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u8d77\u52d5\u3068\u81ea\u52d5\u8d77\u52d5\u306e\u6709\u52b9\u5316\u3092\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># systemctl start vpnserver.service\n# systemctl enable vpnserver.service\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/vpnserver.service \u2192 \/etc\/systemd\/system\/vpnserver.service.\n# systemctl status vpnserver.service\n\u25cf vpnserver.service - SoftEther VPN Server\n   Loaded: loaded (\/etc\/systemd\/system\/vpnserver.service; disabled; vendor preset: disabled)\n   Active: active (running) since Fri 2022-12-23 20:56:38 EST; 22s ago\n Main PID: 16185 (vpnserver)\n    Tasks: 33 (limit: 3355442)\n   Memory: 17.3M\n   CGroup: \/system.slice\/vpnserver.service\n           tq16185 \/usr\/local\/vpnserver\/vpnserver execsvc\n           mq16186 \/usr\/local\/vpnserver\/vpnserver execsvc<\/pre>\n\n\n\n<p>\u3053\u308c\u3067VPN\u30b5\u30fc\u30d0\u304c\u8d77\u52d5\u3057\u307e\u3057\u305f\u3002\u6b21\u306bCUI\u304b\u3089\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># .\/vpncmd\nvpncmd command - SoftEther VPN Command Line Management Utility\nSoftEther VPN Command Line Management Utility (vpncmd command)\nVersion 4.38 Build 9760   (English)\nCompiled 2021\/08\/17 22:32:49 by buildsan at crosswin\nCopyright (c) SoftEther VPN Project. All Rights Reserved.\n\nBy using vpncmd program, the following can be achieved.\n\n1. Management of VPN Server or VPN Bridge\n2. Management of VPN Client\n3. Use of VPN Tools (certificate creation and Network Traffic Speed Test Tool)\n\nSelect 1, 2 or 3: 1 \u2190\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u306a\u306e\u30671\u3092\u5165\u529b\n\nSpecify the host name or IP address of the computer that the destination VPN Server or VPN Bridge is operating on.\nBy specifying according to the format 'host name:port number', you can also specify the port number.\n(When the port number is unspecified, 443 is used.)\nIf nothing is input and the Enter key is pressed, the connection will be made to the port number 8888 of localhost (this computer).\nHostname of IP Address of Destination:localhost \u2190 localhost\u3092\u5165\u529b\nIf connecting to the server by Virtual Hub Admin Mode, please input the Virtual Hub name.\nIf connecting by server admin mode, please press Enter without inputting anything.\nSpecify Virtual Hub Name: \u2190\u4f55\u3082\u5165\u529b\u3057\u306a\u3044\nConnection has been established with VPN Server \"localhost\" (port 443).\n\nYou have administrator privileges for the entire VPN Server.\n\nVPN Server><\/pre>\n\n\n\n<p>\u3053\u308c\u3067\u7ba1\u7406\u30c4\u30fc\u30eb\u306b\u5165\u3063\u305f\u72b6\u614b\u306a\u306e\u3067\u3001\u8a2d\u5b9a\u3092\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\nVPN Server> ServerPasswordSet\n#\u30d6\u30ea\u30c3\u30b8\u306e\u4f5c\u6210\nVPN Server> BridgeCreate\nVirtual Hub Name to Create Bridge: DEFAULT \u2190 DEFAULT\u3092\u5165\u529b\nBridge Destination Device Name: enp4s0 \u2190 enp4s0\u3092\u5165\u529b\n# \u4eee\u60f3\u30cf\u30d6\u306e\u8a2d\u5b9a\nVPN Server> Hub DEFAULT\nHub command - Select Virtual Hub to Manage\nThe Virtual Hub \"DEFAULT\" has been selected.\nThe command completed successfully.\n\n# \u30e6\u30fc\u30b6\u4f5c\u6210\nVPN Server\/DEFAULT>UserCreate\nUserCreate command - Create User\nUser Name:  \u2190 \u30e6\u30fc\u30b6\u540d\u3092\u5165\u529b\nAssigned Group Name: \u2190\u4f55\u3082\u5165\u529b\u3057\u306a\u3044\nUser Full Name: \u2190\u4f55\u3082\u5165\u529b\u3057\u306a\u3044\nUser Description: \u2190\u4f55\u3082\u5165\u529b\u3057\u306a\u3044\nThe command completed successfully.\n\n# \u30e6\u30fc\u30b6\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\nVPN Server\/DEFAULT> UserPasswordSet \u30e6\u30fc\u30b6\u30fc\u540d\n\n# \u8a2d\u5b9a\u7d42\u4e86\nVPN Server\/DEFAULT> <\/pre>\n\n\n\n<p>\u3053\u308c\u3067VPN\u306b\u63a5\u7d9a\u3059\u308b\u3068192.168.8.0\/22\u306eIP\u30a2\u30c9\u30ec\u30b9\u304c\u3082\u3089\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u307e\u3067\u3067\u666e\u6bb5\u4f7f\u3044\u306eLAN\u3068\u30b5\u30fc\u30d0\u5411\u3051LAN\u304c\u5206\u304b\u308c\u3001\u30b5\u30fc\u30d0\u5411\u3051LAN\u3067\u306fDNS\u306b\u3088\u308b\u540d\u79f0\u89e3\u6c7a\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u6b21\u306fSoftEther VPN\u3092\u4f7f\u3044\u3001VPN\u3067\u30b5\u30fc\u30d0\u5411\u3051LAN\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,24],"tags":[],"class_list":["post-508","post","type-post","status-publish","format-standard","hentry","category-linux","category-network"],"_links":{"self":[{"href":"https:\/\/blog.gurees.net\/index.php?rest_route=\/wp\/v2\/posts\/508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.gurees.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.gurees.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.gurees.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.gurees.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=508"}],"version-history":[{"count":4,"href":"https:\/\/blog.gurees.net\/index.php?rest_route=\/wp\/v2\/posts\/508\/revisions"}],"predecessor-version":[{"id":517,"href":"https:\/\/blog.gurees.net\/index.php?rest_route=\/wp\/v2\/posts\/508\/revisions\/517"}],"wp:attachment":[{"href":"https:\/\/blog.gurees.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gurees.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gurees.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}