我正在使用 Gnome 网络管理器连接到我的办公室 VPN。它使用 StrongSwan IPSec。
它连接正常,但我所有的互联网流量都是通过办公室路由的。我不想这样,我只想查看我办公室的 IP 地址,而不希望所有互联网流量都经过办公室。另外,如果可能的话,使用办公室 DNS 来解析办公室服务器名称(但这不太重要)。
设置以下设置:
更新:我的ip -r
输出是:
default via 192.168.188.1 dev enp3s0 proto dhcp metric 100
169.254.0.0/16 dev enp3s0 scope link metric 1000
192.168.2.103 dev enp3s0 proto kernel scope link src 192.168.2.103 metric 50
192.168.2.103 dev enp3s0 proto kernel scope link src 192.168.2.103 metric 100
192.168.188.0/24 dev enp3s0 proto kernel scope link src 192.168.188.21 metric 100
Run Code Online (Sandbox Code Playgroud) 我已经设置了一个交叉编译的 docker 实例。简而言之,我开始设置
apt-get update
apt-get install binutils-multiarch
dpkg --add-architecture armhf
# Manually add correct armhf repositories to /etc/apt/sources.list
apt-get update
apt-get install libudev-dev:armhf
Run Code Online (Sandbox Code Playgroud)
在这最后一步中,我收到以下错误:
The following packages have unmet dependencies:
libudev-dev:armhf : Depends: libacl1:armhf (>= 2.2.51-8) but it is not going to be installed
Depends: libblkid1:armhf (>= 2.19.1) but it is not going to be installed
Depends: libc6:armhf (>= 2.17) but it is not going to be installed
Depends: libgcc1:armhf (>= 1:3.5) but it is not going to be …
Run Code Online (Sandbox Code Playgroud) 我想用 iwd 替换 wpa_supplicant 并将其用于我的 wifi 网络。这样我就可以使用 iwd 使用和测试网络管理器。我似乎无法在任何地方找到与 Ubuntu 相关的说明。
如果您阅读19.04 发行说明,它会说:
现在可以启用 IWD 以与网络管理器一起使用。IWD 是 wpa 请求者的新替代方案,正在测试中以供将来考虑。
network-manager wireless networking wpa-supplicant software-installation