Articles of centos

绑定通知DNS视图

我已经configuration了两个基于Cent OS的DNS服务器,一个用于主机,另一个用于从机,具有域的内部和外部视图。 问题是我得到通知和自动区域更新时,我只对内部视图,而不是外部执行重新加载。 任何帮助? 我错过了什么? 谢谢 主控选项文件: options { directory "/var/named"; listen-on port 53 { 127.0.0.1; master; }; version "None of your business"; server-id "None of your business"; hostname "None of your business"; blackhole {badips;}; auth-nxdomain no; transfers-in 3; transfers-per-ns 3; transfers-out 9; recursion yes; allow-recursion {127.0.0.1; internals;}; allow-query {any;}; allow-transfer {127.0.0.1; slave;}; max-transfer-time-in 60; […]

通过额外的公共IP访问访客虚拟机

我有一个CentOS专用服务器(Hetzner): IP:aa.bb.cc. 16 网关:aa.bb.cc.1 networking掩码:255.255.255.255 和额外的IP(安装了Debian的guest虚拟机(libvirt)): IP:aa.bb.cc. 61 网关:aa.bb.cc.1 networking掩码:255.255.255.192 我使用Hetzner文档( https://wiki.hetzner.de/index.php/Netzkonfiguration_CentOS/en#Routed_.28brouter.29 )设置了路由configuration。 主机configuration: cat /etc/sysctl.conf net.ipv4.conf.all.rp_filter=1 net.ipv4.icmp_echo_ignore_broadcasts=1 net.ipv4.ip_forward=1 net.ipv6.conf.all.forwarding=1 net.ipv4.conf.default.proxy_arp=1 net.ipv4.conf.all.send_redirects=0 net.ipv4.conf.eth0.send_redirects=0 net.ipv4.conf.br0.send_redirects=0 net.ipv4.conf.default.send_redirects=0 net.bridge.bridge-nf-call-ip6tables = 0 net.bridge.bridge-nf-call-iptables = 0 net.bridge.bridge-nf-call-arptables = 0 cat / etc / sysconfig / network-scripts / ifcfg-eth0 DEVICE=eth0 ONBOOT=yes HWADDR=XX:XX:XX:XX:XX:XX BOOTPROTO=none IPADDR=aa.bb.cc.16 NETMASK=255.255.255.255 SCOPE="peer aa.bb.cc.1" IPV6INIT=yes IPV6ADDR=2a01:4f8:yyy:yyyy::2/128 IPV6_DEFAULTGW=fe80::1 IPV6_DEFAULTDEV=eth0 […]

如何绕过这个事务检查错误

我有这个错误,当我使用yum update Transaction check error: file /usr/lib/node_modules/npm/node_modules/node-gyp from install of npm-1:3.1 0.3-107.el7.x86_64 conflicts with file from package nodejs-1:4.5.0-1nodesource.e l7.centos.x86_64 file /usr/lib/node_modules/npm/doc from install of npm-1:3.10.3-107.el7.x86_64 conflicts with file from package nodejs-1:4.5.0-1nodesource.el7.centos.x86_64 file /usr/lib/node_modules/npm/html from install of npm-1:3.10.3-107.el7.x86_6 4 conflicts with file from package nodejs-1:4.5.0-1nodesource.el7.centos.x86_64 file /usr/lib/node_modules/npm/man from install of npm-1:3.10.3-107.el7.x86_64 conflicts with file from package […]

系统日志完整的APCI消息

我有一个Centos 7.2桌面,它将垃圾邮件发送到系统日志服务器,并用常量消息填充它的/ var / log分区: 内核:ACPI:_SB_.PWRB:ACPI_NOTIFY_DEVICE_WAKE事件 我可以禁用ACPI消息/事件,还是只需要在syslogconfiguration中过滤这些消息?

CentOS 7 SSH和2FA(ESET安全authentication)

我坚持要在CentOS 7中获得两个因素authentication; 特别是通过SSH和OTP进行身份validation。 如果有人能帮助我,我将非常感激。 🙂 编辑:据我所知,从下面的日志,pam模块要求RADIUS服务器进行身份validation,服务器响应与代码11,以便pam模块质询用户的OTP,而是模块只是说“身份validation失败” 。 所以客户应该是这个问题吧? 这里是一个通过SSH帐号“[email protected]”login的日志: sshd[3652]: pam_radius_auth: Got user name [email protected] sshd[3652]: pam_radius_auth: ignore last_pass, force_prompt set sshd[3652]: pam_radius_auth: Sending RADIUS request code 1 sshd[3652]: pam_radius_auth: DEBUG: getservbyname(radius, udp) returned 0x7fa56490e1c0. sshd[3652]: pam_radius_auth: Got RADIUS response code 11 sshd[3652]: pam_radius_auth: authentication failed sshd[3652]: pam_sepermit(sshd:auth): Parsing config file: /etc/security/sepermit.conf sshd[3652]: pam_sepermit(sshd:auth): Enforcing […]

是否有可能限制以前的用户在login屏幕上的centos?

我想在Centos上自定义login屏幕来限制显示的用户数量。 我知道如何通过削减dconf gdm db来禁用用户列表,但我不知道是否可以设置限制值… 提前致谢,

Saltstack rpm软件包安装失败

所以我得到这些错误,同时运行盐-G'os:centos'state.apply ———- ID: filebeat Function: pkg.installed Result: False Comment: An exception occurred in this state: Traceback (most recent call la st): File "/usr/lib/python2.6/site-packages/salt/state.py", line 1744, in call **cdata['kwargs']) File "/usr/lib/python2.6/site-packages/salt/loader.py", line 1702 , in wrapper return f(*args, **kwargs) File "/usr/lib/python2.6/site-packages/salt/states/pkg.py", line 1442, in installed **kwargs) File "/usr/lib/python2.6/site-packages/salt/modules/yumpkg.py", l ine 1111, in install rpm_info = __salt__['lowpkg.bin_pkg_info'](pkg_source) […]

AWS EC2 – CentOS 7内核恐慌 – 不同步:VFS:无法在未知块(0,0)上挂载根fs

我有一个CentOS 7的EC2实例,在重新启动和停止 – 启动后,实例不能再运行了。 我得到了这个错误,是什么原因造成的以及如何修复它,谢谢: [ 1.601892] List of all partitions: [ 1.604458] No filesystem could mount root, tried: [ 1.608147] Kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 1.609140] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.10.0-514.16.1.el7.x86_64 #1 [ 1.609140] Hardware name: Xen HVM domU, BIOS 4.2.amazon […]

让Kickstart在安装时自动生成一个root密码

我目前正在为我的公司开发多个Kickstartconfiguration,以便于部署VM。 我找不到任何文档显示如何使用Kickstart生成root密码。 可能吗? 如果没有,我可以pipe输出python或喜欢到rootpw选项?

为sshlogin强制密码

我有两个CentOS6和CentOS7的服务器。 他们都有SSH访问权限。 我的客户端电脑有Ubuntu 16.04。 对于CentOS6我可以用命令login ssh -i ~/.ssh/serv1 root@serv1 但命令 ssh root@serv1 提示密码。 对我来说没问题。 对于CentOS7我可以用命令login ssh -i ~/.ssh/serv2 root@serv2 但命令 ssh root@serv2 不要提示密码。 我也可以成功login。 当我从另外一台计算机上执行“ssh root @ serv2”时,ssh会提示密码,这是可以的。 问题是:为什么我可以不用密码login到serv2,也没有用ssh键命令 ssh -i ~/.ssh/serv2 root@serv2 ? 我找不到对它负责的选项,找不到这是CentOS7的标准行为。 告诉我是否需要额外的信息。