有没有办法从 VPN 服务器本身找到我 VPN 路由器上连接的设备?

有没有办法从 VPN 服务器本身找到我 VPN 路由器上连接的设备?

我已经使用 EC2 实例在 AWS 上设置了自己的 OpenVpn 服务器,并且有一个配置了 OpenWRT 的路由器来连接到 VPN 服务器。

现在,我想让一些 EC2 在我的 VPN 网络和所有连接到它的设备上运行 NMAP 等网络扫描。唯一的问题是,每当我运行任何扫描工具时,唯一显示的就是路由器。

是否有可能/有办法在 VPN 服务器上查看通过 VPN 路由器连接的所有设备(或通过连接到同一 VPN 服务器上的设备)?或者我正在寻找的想法是否牵强且不可能

如果我的措辞有任何错误或者令人困惑的话,请原谅!

谢谢

编辑:

服务器配置

port 1194 proto udp dev tun ca ca.crt cert xxxx.crt key xxxx.key dh dh2048.pem server 10.8.0.0 255.255.255.0 ifconfig-pool-persist ipp.txt push \"redirect-gateway def1 bypass-dhcp\" push \"dhcp-option DNS 208.67.222.222\" push \"dhcp-option DNS 208.67.220.220\" keepalive 10 120 tls-auth xxxx.key 0 key-direction 0 ncp-ciphers \"AES-128-CBC\" cipher AES-128-CBC auth SHA256 user nobody group nogroup persist-key persist-tun status openvpn-status.log verb 3 explicit-exit-notify 1

客户端配置

client dev tun proto udp remote XXX 1194 resolv-retry infinite nobind user nobody group nogroup persist-key persist-tun remote-cert-tls server cipher AES-128-CBC auth SHA256 key-direction 1 verb 3

答案1

您可以在 OpenVPN 框上运行此命令:

netstat -anp | grep ESTABLISHED | grep -v 127.0.0.1

您将看到与您的服务器的连接列表。第 5 列的 IP 地址是您的对等点。

相关内容