Jam*_*mes 4 server firewall kernel 16.04 apf
我有一个由 OVH 托管的专用服务器。
安装服务器时,我必须保留默认的内核选择,即使用稳定/经过测试的 OVH 内核,而不是发行版的本机内核。
我最近改用 APF 防火墙而不是 UFW,在使用我的所有规则设置 APF 并启动它后,apf -s
我得到如下所示的输出:
apf(11291): {glob} flushing & zeroing chain policies apf(11291):
{glob} firewall offline apf(11328): {glob} activating firewall
libkmod: ERROR ../libkmod/libkmod-module.c:1655
kmod_module_new_from_loaded: could not open /proc/modules: No such
file or directory Error: could not get list of modules: No such file
or directory apf(11368): {glob} kernel version not equal to 2.4.x or
2.6.x, aborting. apf(11328): {glob} firewall initalized
Run Code Online (Sandbox Code Playgroud)
MONOKERN
在找到论坛帖子解释由于某些主机使用的内核而需要此设置后,我更改了 APF 中的一个设置,该设置被描述为“支持整体内核构建[无 LKM]”。
重新启动 APFapf -r
然后产生以下输出:
apf(22524): {glob} flushing & zeroing chain policies apf(22524):
{glob} firewall offline apf(22599): {glob} activating firewall
libkmod: ERROR ../libkmod/libkmod-module.c:1655
kmod_module_new_from_loaded: could not open /proc/modules: No such
file or directory Error: could not get list of modules: No such file
or directory apf(22703): {glob} determined (IFACE_UNTRUSTED) eth0 has
address 158.69.123.46 apf(22703): {glob} loading preroute.rules
//carries on printing out the firewall rules it is setting up...
apf(22599): {glob} firewall initalized
Run Code Online (Sandbox Code Playgroud)
OVH 说过我可以在重新安装期间随时更改内核,但我真的不想这样做。
我在我的服务器上托管了一款颇受欢迎的游戏,在任何给定时间都有大约 100 名用户在线。让服务器离线几个小时来重新安装发行版并重新设置所有内容确实不切实际。
是否可以在不重新安装的情况下切换回Ubuntu 16.04的本机发行版内核?如果可以,如何切换?
# cd /etc/grub.d
# mv 06_OVHkernel 96_OVHkernel
# update-grub
Run Code Online (Sandbox Code Playgroud)
它将列出内核,最后列出 OVH。您应该首先拥有一个发行版内核,但如果没有,请按照上面的 @James 回答。
# reboot
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
8440 次 |
最近记录: |