被监禁的用户无法访问网络

被监禁的用户无法访问网络

我有一台运行 ISPConfig 的 Debian 10 服务器。截至今天,被监禁的用户无法访问任何网络(127.0.0.1/localhost 除外)。Ping 根本不起作用。

周五下午,我运行git push没有任何问题。今天早上,我尝试推送另一次提交,结果如下:

fatal: unable to access 'https://github.com/user/repo/': Could not resolve host: github.com

一些可能有用的命令的输出:

$ ping google.com
ping: socket: Operation not permitted

$ wget google.com
--2020-03-01 14:28:13--  http://google.com/
Resolving google.com (google.com)... failed: Temporary failure in name resolution.
wget: unable to resolve host address 'google.com'

$ wget 8.8.8.8
--2020-03-01 14:29:27--  http://8.8.8.8/
Connecting to 8.8.8.8:80... failed: Connection timed out.
Retrying.

(它又尝试了几次,但输出完全相同。)

我已经在 Google 上搜索了大约三个小时,但网上似乎没有太多关于 jailkit 的文档。

谢谢你!

(超级用户上甚至没有 jailkit 的标签!如果有的话,我会添加标签jailkitispconfig。)

答案1

答案其实很简单,而且对我来说非常具体。我最近更换了路由器。新路由器的网关 IP 为 192.168.1.1,但旧路由器的网关 IP 为 192.168.1.254。原来是因为 jail/etc/resolv.conf尚未更新,所以它仍在尝试使用旧网关。更新后,一切正常。

相关内容