How to Install and Configure SoftEther VPN on Ubuntu (operavps.com)
' r- v2 R G0 x3 d3 ]: O有客户有需求,以前都是老版本 0 s* k4 t7 M. {4 G+ {1 \
- [; l; {1 N$ v6 e) b, [4 Z5 ]: g3 `
apt-get update –y
! J: _5 a- P& T/ o% K# h2 Y" D: S2 T. C
( S) B& {8 a# F9 |. _1 V U: r/ fapt-get install build-essential gnupg2 gcc make –y 不然GCC报错! E L6 q2 s: m, d+ V% X! [
( Z4 D3 Y8 o! b; G5 f; z
wget https://www.softether-download.c ... ux-x64-64bit.tar.gz2 ~$ b8 F8 m0 I2 h# I% G* G
: k+ H9 {, o5 X1 j
; K* x) I. v+ C5 p* z4 X3 x5 _# B/ c' {/ p0 V+ Q* h4 _
tar -xvf softether-vpnserver-v4.43-9799-beta-2023.08.31-linux-x64-64bit.tar.gz
9 s( F+ ~/ V8 q0 l6 l. M, u
e* Z3 |2 s; z9 a* ~
8 ?7 I3 e/ X5 m& {- Y/ _; o# Ncd vpnserver/+ ^/ }2 y l6 q/ ^
& {6 k, X# M: e* g" S/ {' e
% d( l) h! Q3 d$ M/ \sudo apt install gcc binutils gzip libreadline-dev libssl-dev libncurses5-dev libncursesw5-dev libpthread-stubs0-dev
: ~8 r) v0 C4 L+ }8 t$ m8 X$ r- o4 |' Y; O9 w
6 i* P4 b/ D- q! z" U& Y% Lmake
) \( ?/ {: u2 Z
* ~. q; t5 j5 f6 J/ D
' E/ u$ O9 U0 W4 Acd ..sudo mv vpnserver /opt/softether4 ^, M& n$ Q; ~7 z/ C0 n
( s( B9 `" E3 L" a' {3 C; }& N+ B' Q5 k9 w
sudo /opt/softether/vpnserver start7 ^ M1 k. z& u* v
* {" s; b" ~2 R. L. q0 a2 s. _8 P( [2 e
7 i N) _& F. z- S3 K/ \, B0 _. `sudo /opt/softether/vpnserver stop
& b0 H" O+ ^$ x2 Y% B
4 ~" s2 V' k$ o; k% S- z) {* p
1 H2 x5 r) N9 B" q& g: B. _sudo nano /etc/systemd/system/softether-vpnserver.service* p' t z: G8 y
: v3 B9 q; F% d7 S8 Z9 A
! \9 e" m, \9 t& Q; @+ S[Unit]Description=SoftEther VPN serverAfter=network-online.targetAfter=dbus.service[Service]Type=forkingExecStart=/opt/softether/vpnserver startExecReload=/bin/kill -HUP $MAINPID[Install]WantedBy=multi-user.target! h, `( {9 M6 N. `% F
9 a9 B- Q+ ~9 J2 M
1 {, J* | {7 V, M: `
sudo systemctl start softether-vpnserver2 X# y' r/ |+ ~
/ I( D" |( i. q, K9 _4 N! m3 K/ r- n+ s8 b! `! W; c
sudo systemctl enable softether-vpnserver
8 u \. L/ m( V" P8 T+ `6 f7 y, Z& i A. J1 V+ Q/ ]
# f! g: u4 Y L( t& x
systemctl status softether-vpnserver$ A9 j2 Y. |4 z1 H
( W7 S( S/ [; d. m
+ V" [. W) @, O8 E- ^5 M
) D9 U3 i1 G# a6 Z- M+ ]
& ^* @3 C; V* _' l+ j |