使用 raspberry pi 访问外部 VPN 服务器

Accessing external VPN server using raspberry pi

我需要使用 raspberry pi 访问大学 VPN 服务器。我提供了大学VPN的客户端配置文件。我已经在互联网上冲浪以访问 VPN,但失败了。我已经看到很多例子,其中通过在 raspberry pi 上使用 openvpn 可以轻松地将它变成一个 VPN 服务器,但我想做的是访问一个据我所知不在同一个网络中的 VPN , 我是 raspberry pi 业主是客户。 对此有什么建议吗? 下面的代码是我的配置文件

n:version:4
s:network-host:vpngw.fh-kempten.de
n:network-ike-port:500
s:client-auto-mode:pull
s:client-iface:virtual
n:network-mtu-size:1380
n:client-addr-auto:1
s:network-natt-mode:enable
n:network-natt-port:4500
n:network-natt-rate:15
s:network-frag-mode:enable
n:network-frag-size:540
n:network-dpd-enable:1
n:network-notify-enable:0
n:client-banner-enable:1
n:client-dns-used:1
n:client-dns-auto:1
n:client-dns-suffix-auto:1
s:auth-method:mutual-psk-xauth
s:ident-client-type:fqdn
s:ident-client-data:.vpnserver.rz.fh-kempten.de
s:ident-server-type:address
b:auth-mutual-psk:cmVjaGVuemVudHJ1bQ==
s:phase1-exchange:aggressive
n:phase1-dhgroup:2
s:phase1-cipher:3des
n:phase1-keylen:0
s:phase1-hash:md5
n:phase1-life-secs:28800
n:phase1-life-kbytes:0
n:vendor-chkpt-enable:0
s:phase2-transform:esp-3des
n:phase2-keylen:0
s:phase2-hmac:md5
n:phase2-pfsgroup:0
n:phase2-life-secs:28800
n:phase2-life-kbytes:0
s:ipcomp-transform:disabled
s:policy-level:auto
n:policy-nailed:0
n:policy-list-auto:1

在同一网络上连接到 VPN 没有意义。 如果您需要连接到远程 VPN 服务器,您需要在 Raspberry Pi 上安装 VPN 客户端(例如 OpenVPN)。 在他们的网页上有分步手册,介绍如何安装和配置 VPN 客户端。 https://openvpn.net/community-resources/how-to/