小编hel*_*y77的帖子

VPN:错误:Linux 路由添加命令失败

我已经配置了 VPN 服务器

local 192.168.0.250
dev tun
proto udp
port 1194
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server-vpn.crt
key /etc/openvpn/easy-rsa/keys/server-vpn.key
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig 10.8.0.1 10.8.0.2
push "route 10.8.0.1 255.255.255.255"
push "route 10.8.0.0 255.255.255.0"
push "route 192.168.0.250 255.255.255.0"
push "dhcp-option DNS 8.8.8.8"
push "redirect-gateway def1"
client-to-client
duplicate-cn
keepalive 10 120
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
cipher AES-128-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log 20
log /var/log/openvpn.log
verb 1
Run Code Online (Sandbox Code Playgroud)

使用以下命令从 linux 终端连接 openvpn 客户端时:

openvpn --config /home/user/myfile.ovpn
Run Code Online (Sandbox Code Playgroud)

我有这个错误:

OpenVPN 2.3.2 x86_64-pc-linux-gnu …
Run Code Online (Sandbox Code Playgroud)

vpn openvpn

19
推荐指数
1
解决办法
11万
查看次数

使用密码挂载 NFS 的 fstab 条目

我需要使用 NFS 在启动磁盘时挂载,从控制台手动挂载我输入:

mount //192.168.0.1/NASShare -o username=administrator,password=pass /mnt/NAS
Run Code Online (Sandbox Code Playgroud)

/etc/fstab我加入这一行:

192.168.0.1:/NASShare  /mnt/NAS  nfs user=administrator,password=pass  0 0
Run Code Online (Sandbox Code Playgroud)

但是在重新启动时磁盘未安装,错误在哪里?

nfs mount fstab

12
推荐指数
2
解决办法
11万
查看次数

目前没有 icinga 实例写入 IDO

嗨,我有来自官方文档的安装程序 icinga2 和 icingaweb2:

icinga2:http ://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/getting-started#!/icinga2/latest/doc/module/icinga2/chapter/getting-started#setting-up- 冰加2

和 icingaweb2:https : //github.com/Icinga/icingaweb2/blob/master/doc/installation.md

在设置过程中,在“监控 IDO 资源”页面中设置监控模块时,我插入了数据库的凭据,出现此错误:

There is currently no icinga instance writing to the IDO. Make sure that a icinga instance is configured and able to write to the IDO.

有任何想法吗?

monitoring icinga

8
推荐指数
1
解决办法
2万
查看次数

ec2-user 的身份验证失败太多

我有一个 AMI linux,注销后,在下次登录时出现此错误:

The server has disconnected with an error.  Server message reads:
A protocol error occurred. Too many authentication failures for ec2-user
Run Code Online (Sandbox Code Playgroud)

我使用 SecureCRT,但我也尝试使用终端:

ssh -vvv -o IdentitiesOnly=yes -i auth/key.pem ec2-user@xxx.xxx.xxx.xxx
Run Code Online (Sandbox Code Playgroud)

这是输出:

OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g  1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "xxx.xxx.xxx.xxx" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to xxx.xxx.xxx.xxx [xxx.xxx.xxx.xxx] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: …
Run Code Online (Sandbox Code Playgroud)

ssh

7
推荐指数
1
解决办法
5267
查看次数

使用 STARTTLS 的 Postfix 中继 - 需要 TLS,但主机未提供

我需要通过外部 SMTP 发送电子邮件,使用 STARTTLS,我的 postconf -n 是:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 0.0.0.0/0
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relayhost = xx.xx.xx.xx:2525
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = …
Run Code Online (Sandbox Code Playgroud)

postfix

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

fstab ×1

icinga ×1

monitoring ×1

mount ×1

nfs ×1

openvpn ×1

postfix ×1

ssh ×1

vpn ×1