问题描述
我在 Proxmox 中连接到虚拟机 (KVM) 内的 VPN 客户端时遇到问题。连接已建立,但一旦连接(VPN IP)就无法工作,也无法ping通。
我认为问题出在我的网络配置的这一部分。 post-up ip route 是否会导致这样的问题?
post-up ip route add IPBLOCK/27 dev vmbr0
post-up echo 1 >/proc/sys/net/ipv4/ip_forward
这是整个配置文件,它是一个 OVH 服务器(双 NIC),但是它是他们新系列的一部分,如果没有上述部分,它似乎无法工作。 DHCP 也失败。
auto lo
iface lo inet loopback
auto enp193s0f0
iface enp193s0f0 inet manual
auto enp133s0f0
iface enp133s0f0 inet manual
auto enp133s0f1
iface enp133s0f1 inet manual
auto enp193s0f1
iface enp193s0f1 inet manual
iface enp9s0f3u2u2c2 inet manual
auto bond0
iface bond0 inet manual
bond-slaves enp193s0f0 enp193s0f1
bond-miimon 100
bond-mode 802.3ad
bond-xmit-hash-policy layer2+3
#VLAN
auto bond1
iface bond1 inet static
address 192.168.0.120/16
bond-slaves enp133s0f0 enp133s0f1
bond-miimon 100
bond-mode 802.3ad
bond-xmit-hash-policy layer2+3
#PUBLIC NODE IP
auto vmbr0
iface vmbr0 inet static
address IPV4/32
gateway 51.195.234.254
bridge-ports bond0
bridge-stp off
bridge-fd 0
post-up ip route add IPBLOCK/27 dev vmbr0
post-up echo 1 >/proc/sys/net/ipv4/ip_forward
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)