conn net-net1 leftupdown="/var/lib/strongswan/ipsec-vti.sh 0 169.254.232.77/32 169.254.232.78/32" # 这里是p2p通道的GCP侧IP和本端IP left=10.0.8.4 # In case of NAT set to internal IP, e.x. 10.164.0.6 leftid=10.0.8.4 leftsubnet=0.0.0.0/0 leftauth=psk right={GCP平台的公网IP} rightid=%any rightsubnet=0.0.0.0/0 rightauth=psk type=tunnel # auto=add - means strongSwan won't try to initiate it # auto=start - means strongSwan will try to establish connection as well # Note that Google Cloud will also try to initiate the connection auto=start # dpdaction=restart - means strongSwan will try to reconnect if Dead Peer Detection spots # a problem. Change to 'clear' if needed dpdaction=restart mark=%unique # mark=1001 # reqid=1001
conn net-net2 leftupdown="/var/lib/strongswan/ipsec-vti.sh 1 169.254.155.53/32 169.254.155.54/32" # 同上 left=10.0.8.4 # In case of NAT set to internal IP, e.x. 10.164.0.6 leftid=10.0.8.4 leftsubnet=0.0.0.0/0 leftauth=psk right={GCP平台的公网IP} rightid=%any rightsubnet=0.0.0.0/0 rightauth=psk type=tunnel # auto=add - means strongSwan won't try to initiate it # auto=start - means strongSwan will try to establish connection as well # Note that Google Cloud will also try to initiate the connection auto=start # dpdaction=restart - means strongSwan will try to reconnect if Dead Peer Detection spots # a problem. Change to 'clear' if needed dpdaction=restart mark=%unique # mark=1002 # reqid=1002
LOCAL_IF="${PLUTO_INTERFACE}" VTI_IF="vti${VTI_TUNNEL_ID}" # GCP's MTU is 1460, so it's hardcoded GCP_MTU="1460" # ipsec overhead is 73 bytes, we need to compute new mtu. VTI_MTU=$((GCP_MTU-73))
case"${PLUTO_VERB}"in up-client) ${IP}link add ${VTI_IF}type vti local${PLUTO_ME} remote ${PLUTO_PEER} okey ${PLUTO_MARK_OUT_ARR[0]} ikey ${PLUTO_MARK_IN_ARR[0]} ${IP} addr add ${VTI_LOCAL} remote ${VTI_REMOTE} dev "${VTI_IF}" ${IP}linkset${VTI_IF} up mtu ${VTI_MTU}
# If you would like to use VTI for policy-based you should take care of routing by yourselv, e.x. #if [[ "${PLUTO_PEER_CLIENT}" != "0.0.0.0/0" ]]; then # ${IP} r add "${PLUTO_PEER_CLIENT}" dev "${VTI_IF}" #fi ;; down-client) ${IP} tunnel del "${VTI_IF}" ;; esac
... 10.0.1.0/24 via 169.254.232.77 dev vti0 proto bird metric 32 ... 169.254.232.77 dev vti0 proto kernel scope link src 169.254.232.78 169.254.232.77 dev vti0 proto bird scope link metric 32 ...
Feb 12 17:23:37 VM-0-16-ubuntu gitea_compose_giteadb_1[3927]: 2024-02-12 9:23:37 3103704 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'histogram' at position 10 to have type longblob, found type varbinary(255). Feb 12 17:23:37 VM-0-16-ubuntu gitea_compose_giteadb_1[3927]: 2024-02-12 9:23:37 3103704 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'hist_type' at position 9 to have type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB','JSON_HB'), found type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB')
sudo podman create network test sudo podman network ls
报错提示
1
WARN[0000] Error validating CNI config file /etc/cni/net.d/test.conflist: [plugin bridge does not support config version "1.0.0" plugin portmap does not support config version "1.0.0" plugin firewall does not support config version "1.0.0" plugin tuning does not support config version "1.0.0"]