How to Install and Configure SoftEther VPN on Ubuntu (operavps.com)0 q3 \: [5 a- H& h1 B' O3 j
有客户有需求,以前都是老版本
/ L1 [- V f& w1 @: ?" T9 j) D p7 t, J
apt-get update –y
# l6 U3 }0 ?! j& ?0 t5 Z! C
1 y; H/ R. x, H2 v8 d' }& v$ v* P' A+ v7 Y5 W4 [8 y0 s, P1 f
apt-get install build-essential gnupg2 gcc make –y 不然GCC报错# E* L1 v7 S8 I$ ^6 x
, B N+ o$ |* C
wget https://www.softether-download.c ... ux-x64-64bit.tar.gz. w- G. G8 Q9 q1 a8 a
) f4 c9 Q- a5 t/ _7 D
& q* A- v O% g2 K) c1 x" N; c E( S' Q4 b) a3 F- W
tar -xvf softether-vpnserver-v4.43-9799-beta-2023.08.31-linux-x64-64bit.tar.gz, V. P" x( m# L) E
- b7 ~2 ?# p1 u( r( h0 }; m
! f, n1 V+ H% Z: ?9 \1 p" dcd vpnserver/
0 q- T; r# k" I) a; Z. k/ R- [ }3 R, ]; N6 u& z" ?6 l
* ~: U* i6 b- m0 m$ m# X3 esudo apt install gcc binutils gzip libreadline-dev libssl-dev libncurses5-dev libncursesw5-dev libpthread-stubs0-dev1 `) y% A/ L9 m5 J: w0 R: m
( G& n* _6 j/ ^* k6 u9 a, @
& Y, U' {* z# J& l, {1 ?make7 x: ]$ w1 h0 h/ v; X
6 a2 @) u! E( M" x0 h
( L E, @* [; o* B/ e
cd ..sudo mv vpnserver /opt/softether
$ }5 l/ u' `( l3 @& R
: W+ x/ ^# ^9 {1 s5 P3 r
; q, Z- x* p5 A- rsudo /opt/softether/vpnserver start8 B( r# E. H" m2 j: u3 P& p
0 {3 N& L7 U. t' L( c7 J/ H: V' U- V1 B u, K3 K; b8 v
sudo /opt/softether/vpnserver stop
( s& a! O3 g% ^# }0 [& e2 E1 N6 C3 x) |! u9 Q& U& N. s
' T7 F* t7 V% ~1 f* P4 C
sudo nano /etc/systemd/system/softether-vpnserver.service
/ B# S5 e/ Q; X9 Y" h* D5 {
$ c/ N7 d9 E' D4 o, `; v# X
; ^: H, R( K# o# w$ ]! M# I m5 _; f[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, A5 _: b6 J$ {" f5 i7 N; x
( z# F9 W3 a2 {
, ^# P2 v. v$ \- i: c' [# D/ Isudo systemctl start softether-vpnserver
! F- N6 r, A" M- Y. `- m) f3 a) U. _! ]$ C* p/ o, H
' I# p5 e+ v z+ ], Vsudo systemctl enable softether-vpnserver
( ?/ ?( n" H- ?4 R" }" @+ d1 Q0 G% ^7 f6 V+ E. Y0 @
( Z/ w) @ w4 q# E% P( n/ D
systemctl status softether-vpnserver( d e# A, w, {* G+ c# X3 `' m
* @* J. W* [+ F0 U3 U# h5 S4 `
" W& |7 z4 M$ W$ L) y. C% |
- T# `6 K: V) V2 y, R
" w+ N) j, q1 m, p9 p! K
|