如何防止 openvpn 客户端更改系统时钟?

如何防止 openvpn 客户端更改系统时钟?

我使用基于状态的路由,使用 iptables,共享计算机上的单个用户有时会使用 VPN 来获取我们物理位置无法获得的资源。然而,这非常烦人,因为即使只有一个用户在使用 VPN,它仍然会更改整个机器的系统时钟,这使得 APT 无法正常工作,以及其他奇怪的情况。

Reading package lists... Done                                                                      
E: Release file for http://us.archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease is not valid yet (invalid for another 3h 41min 34s). Updates for this repository will not be applied.
E: Release file for http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease is not valid yet (invalid for another 5h 44min 0s). Updates for this repository will not be applied.
W: https://apt.sonarr.tv/ubuntu/dists/focal/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
E: Release file for http://us.archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease is not valid yet (invalid for another 1h 24min 36s). Updates for this repository will not be applied.

从共享机器运行的日期:

Tue Jun 20 12:31:34 PM MDT 2023

从具有正确时间的机器运行的日期:

Tue Jun 20 06:32:06 PM MDT 2023

我是否需要向我的 openvpn 客户端添加一个参数以不更改我的系统时钟?

相关内容