How to Install and Configure SoftEther VPN on Ubuntu (operavps.com)
% X4 `. }4 S! k) P有客户有需求,以前都是老版本 / x8 j( |6 F) ]# j& w
- o+ ^# r$ r. _* n, X3 F: u[size=14.9625px]apt[size=14.9625px]-[size=14.9625px]get[size=14.9625px] [size=14.9625px]update[size=14.9625px] –y
" t+ z; l) h ^4 k$ o[size=14.9625px]
( j3 O; z; G- m- m+ E0 f+ L
3 _: q2 _$ f' o3 x- i[size=14.9625px]apt-[size=14.9625px]get[size=14.9625px] install build-essential gnupg2 gcc [size=14.9625px]make[size=14.9625px] –[size=14.9625px]y 不然GCC报错
! l$ C) u6 e: f& Z
+ C7 |; _/ B' H: v2 Uwget https://www.softether-download.c ... ux-x64-64bit.tar.gz
, r9 t5 \8 ~+ M, @! _3 p4 H8 ], H- m3 a+ k9 I+ \
/ O8 r2 ]! c' M* j& W+ P3 {
9 n0 D8 | x6 `: J% q4 x# w# dtar -xvf softether-vpnserver-v4.43-9799-beta-2023.08.31-linux-x64-64bit.tar.gz# \9 ^+ h% D5 S }+ J; p
; ^( t Y2 h2 W0 j( i
0 q# l, M" g4 Q) C[size=14.9625px]cd[size=14.9625px] vpnserver/
t# {7 @: I. N' M+ Y[size=14.9625px]4 [! `% S, \* l# Q% |1 o
+ g) h. c0 p7 W: \5 S) K7 z, g: H[size=14.9625px]sudo apt install gcc binutils gzip libreadline[size=14.9625px]-dev[size=14.9625px] libssl[size=14.9625px]-dev[size=14.9625px] libncurses5[size=14.9625px]-dev[size=14.9625px] libncursesw5[size=14.9625px]-dev[size=14.9625px] libpth[size=14.9625px]read-stubs0[size=14.9625px]-dev
- ?! k& V9 }3 C. c3 @[size=14.9625px]3 |5 F' z0 W9 W) V6 E) w0 g
/ F- w# I, B# U3 w- \ T
[size=14.9625px]make$ g$ C$ C4 T+ A7 N! c
[size=14.9625px]
4 `5 ?+ }+ l% ^# Y2 E/ s: P" N5 l' K1 c& b j
[size=14.9625px]cd ..sudo mv vpnserver /opt/softether
4 r9 s4 P V$ }3 g[size=14.9625px]5 H1 p0 U; W8 D a
) l- b6 }' r2 r, [7 j+ d
[size=14.9625px]sudo /opt/softether/vpnserver start- t+ ?* f" r( U" a
[size=14.9625px], E' ]/ L2 Y# w6 e: N
J7 ?( F* A F [0 {8 [4 p' f
[size=14.9625px]sudo /opt/softether/vpnserver stop6 Y4 Z) H7 p$ ~5 p' W+ ?$ a
[size=14.9625px]
) s0 G0 t# k$ W2 U' u
- }4 Q8 v9 l* Y- @# ^[size=14.9625px]sudo nano /etc/systemd/system/softether-vpnserver.service+ w$ u4 v5 F! Q) X i8 J! U; w
[size=14.9625px]" `7 I# s4 v/ Z2 L8 P& @2 J0 h
/ k' b$ D/ N4 e. R4 @[size=14.9625px][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
3 d0 I7 f; x, }0 e+ O& e! b[size=14.9625px] T' ~5 i7 q5 h7 V r
8 i3 U8 K' l- F( i y! N/ U5 _[size=14.9625px]sudo systemctl start softether-vpnserver
r/ J b! U: C$ L9 |) M[size=14.9625px]
1 o" [" g$ S1 _5 l% b1 g2 x0 s1 Q! Y' S7 M
[size=14.9625px]sudo systemctl enable softether-vpnserver
/ a) P B; A9 G0 m[size=14.9625px]
+ q2 e& A S G+ c. B* R: ?0 R4 W7 ^2 \
[size=14.9625px]systemctl status softether-vpnserver& x+ g2 b( S5 `9 B; [5 y
[size=14.9625px]' M* v- l. k5 @" I' G# f
0 p$ g' a6 }. ~) ^6 z[size=14.9625px]
/ c5 w C! d" R' p; K, }# [' W6 X8 {9 y0 `8 ~2 r- b2 I$ a- d" C
|