木偶无法通过openvpn工作:无法从远程服务器检索目录

我们有一个networking10.10.0.0/24,其中一个主机(server0,10.10.0.123)安装了puppetmaster。 其他人连接到它,一切似乎都很好。

另一个主机(server1)在另一个networking上,并且与puppetmaster主机有openvpn连接,openvpnnetworking是192.168.124.0/24(192.168.124.1 – server0,192.168.124.6 – server1)。

一切前一段时间都工作,但现在当我试图在server1上运行puppet它失败,没有消息:

/usr/sbin/puppetd --no-daemonize --debug -o --server server0.fqdn <...> debug: Loaded state in 0.00 seconds debug: Using cached certificate for ca debug: Using cached certificate for server1 debug: Using cached certificate_revocation_list for ca debug: catalog supports formats: b64_zlib_yaml marshal pson raw yaml; using pson err: Could not retrieve catalog from remote server: info: Not using expired catalog for server1 from cache; expired at Fri May 27 15:56:15 +0300 2011 notice: Using cached catalog err: Could not retrieve catalog; skipping run 

不明白我错过了什么。 Telnet到木偶端口工作正常,以及http。 我试图连接到192.168.124.X和10.10.0.X ips。

这是到server1的路由表:

 Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.124.1 192.168.124.5 255.255.255.255 UGH 0 0 0 tun0 192.168.124.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 10.10.0.0 192.168.124.5 255.255.255.0 UG 0 0 0 tun0 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.10.X 0.0.0.0 UG 0 0 0 eth0 

tcpdump的连接尝试:

 15:44:17.556745 IP 192.168.124.6.59261 > 192.168.124.1.8140: S 3630206975:3630206975(0) win 5840 <mss 1460,sackOK,timestamp 333953908 0,nop,wscale 7> 15:44:17.938407 IP 192.168.124.1.8140 > 192.168.124.6.59261: S 3687729362:3687729362(0) ack 3630206976 win 5792 <mss 1366,sackOK,timestamp 3325304835 333953908,nop,wscale 7> 15:44:17.938417 IP 192.168.124.6.59261 > 192.168.124.1.8140: . ack 1 win 46 <nop,nop,timestamp 333954290 3325304835> 15:44:17.939187 IP 192.168.124.6.59261 > 192.168.124.1.8140: P 1:106(105) ack 1 win 46 <nop,nop,timestamp 333954291 3325304835> 15:44:18.274663 IP 192.168.124.1.8140 > 192.168.124.6.59261: F 1:1(0) ack 1 win 46 <nop,nop,timestamp 3325305329 333954290> 15:44:18.274893 IP 192.168.124.6.59261 > 192.168.124.1.8140: F 106:106(0) ack 2 win 46 <nop,nop,timestamp 333954626 3325305329> 15:44:18.533685 IP 192.168.124.1.8140 > 192.168.124.6.59261: R 3687729363:3687729363(0) win 0 15:44:18.753026 IP 192.168.124.1.8140 > 192.168.124.6.59261: R 3687729364:3687729364(0) win 0 

为什么重置连接?

在puppetmaster日志中没有任何东西,即使使用-d开关运行。

有任何想法吗? 谢谢。

你把192.168.124.0/24networking放在fileserver.conf里面了吗? 另外,您确定客户端和服务器上的date和时间是否合理同步?

哦,我只是注意到服务器是natted! 你说server0的IP是10.10.0.123,但是根据转储连接是192.168.124.1。 这可能会导致服务器证书被拒绝。

如果我是你,我将确保连接到非NAT的IP,并确保puppet服务器的名称与其非IP地址匹配, 并且 IP的反向名称与IP地址相反。

为OpenVPN IP使用不同的名称。