首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >OpenVPN看到网络上的其他用户

OpenVPN看到网络上的其他用户
EN

Server Fault用户
提问于 2013-10-04 13:54:19
回答 1查看 165关注 0票数 0

我有两台机器连接到一个OpenVPN网络上,但我似乎不能将平或RDP插入彼此。

编辑:

尝试添加客户端到客户端,重新启动服务器和客户端,无法对它们进行ping或访问。

Server.conf:

代码语言:javascript
复制
dev tun
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
reneg-sec 0
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
plugin /etc/openvpn/openvpn-auth-pam.so /etc/pam.d/login
#plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so /etc/pam.d/login #- Comment this line if you are using FreeRADIUS
#plugin /etc/openvpn/radiusplugin.so /etc/openvpn/radiusplugin.cnf #- Uncomment this line if you are using FreeRADIUS
client-cert-not-required
username-as-common-name
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 5 30
comp-lzo
persist-key
persist-tun
status 119
4.log
verb 3

网络信息(笔记本电脑):

代码语言:javascript
复制
Ethernet adapter OPENVPN CONNECTION:

   Connection-specific DNS Suffix  . : 
   Link-local IPv6 Address . . . . . : CLEANED
   IPv4 Address. . . . . . . . . . . : 10.8.0.6
   Subnet Mask . . . . . . . . . . . : 255.255.255.252
   Default Gateway . . . . . . . . . : 

Wireless LAN adapter Wireless Network Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : 

Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . : local.domain
   Link-local IPv6 Address . . . . . : CLEANED
   IPv4 Address. . . . . . . . . . . : 10.35.52.167
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . : 10.35.0.1

Tunnel adapter isatap.local.domain:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : local.domain

其他机器:

代码语言:javascript
复制
Ethernet adapter Local Area Connection 2:

   Connection-specific DNS Suffix  . : 
   Link-local IPv6 Address . . . . . : CLEANED
   IPv4 Address. . . . . . . . . . . : 10.8.0.10
   Subnet Mask . . . . . . . . . . . : 255.255.255.252
   Default Gateway . . . . . . . . . : 

Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . : 
   Link-local IPv6 Address . . . . . : CLEANED
   IPv4 Address. . . . . . . . . . . : 192.168.2.39
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.2.254

客户端的OpenVPN子网是错误的,对吗?

EN

回答 1

Server Fault用户

回答已采纳

发布于 2013-10-04 14:41:17

尝试将client-to-client添加到server.conf中:

代码语言:javascript
复制
# Uncomment this directive to allow different
# clients to be able to "see" each other.
# By default, clients will only see the server.
# To force clients to only see the server, you
# will also need to appropriately firewall the
# server's TUN/TAP interface.
;client-to-client

http://openvpn.net/index.php/open-source/documentation/howto.html#server

票数 2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/543822

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档