文書の過去の版を表示しています。
NanoPi R2SでSoftEther VPNの拠点間L2-VPN中継器を作る
知り合いの会社では、遠隔地という名の役員の自宅にデータバックアップサーバーを置いてある。昨今の電気代高騰と猛暑により、バックアップ開始時に自動的にサーバーの電源が入り、終わったら自動的に電源が切れるようにできないか、という相談を受けた。
サーバーはBMC/IPMIが載ってるので、リモートで電源ON/OFFをするのは造作ない。問題は現状BMCのネットワークが物理的に繋がっておらず、仮に繋いだとしてもルータ越しなのでアクセスできないってこと。技術的にはポートフォワードなりしてやれば行けるけど、さすがにBMCをインターネッツに解き放つのはね…
バックアップサーバー自体はOS側のSoftEther VPN Clientで社内に繋がっている。であるならば、BMC側もSoftEtherで社内に繋がってくれれば都合がよい。かと言って、BMCで動くSoftEtherなんてものは当然存在しないので、NanoPi R2SでSoftEther VPN Bridgeを動かし、BMCを社内LANにVPN接続してしまおうという魂胆で表題となる。
試した環境
FriendlyWRTインストール
システム>スタートアップ firewall 停止、無効 dnsmasq odhcpd
ネットワーク>インターフェース br-lan 削除 ネットワーク>インターフェース br-lan 設定解除
softethervpn-bridge 4.38-9760-2
Installing softethervpn-bridge (4.38-9760-2) to root… The SoftEther VPN Bridge service has been started.
Let's get started by accessing to the following URL from your PC:
or
Note: IP address may vary. Specify your server's IP address. A TLS certificate warning will appear because the server uses self signed certificate by default. That is natural. Continue with ignoring the TLS warning.
Downloading https://mirrors.ustc.edu.cn/openwrt/releases/23.05.3/packages/aarch64_generic/packages/softethervpn-bridge_4.38-9760-2_aarch64_generic.ipk Installing softethervpn-base (4.38-9760-2) to root… Downloading https://mirrors.ustc.edu.cn/openwrt/releases/23.05.3/packages/aarch64_generic/packages/softethervpn-base_4.38-9760-2_aarch64_generic.ipk Configuring softethervpn-base. Configuring softethervpn-bridge.