渗透测试中如何科学地使用V*P*N

时间:2023-12-16 22:04:26
环境说明
  1. Windows7 虚拟机,作为VPN网关,负责拨VPN。VPN可以直接OPENVPN,也可以使用*+SSTap。
  2. Kali 虚拟机, 渗透测试工作机
配置步骤
  1. Windows7 正常创建VPN连接

  2. 设置VPN连接共享,允许本地连接2共享:

    渗透测试中如何科学地使用V*P*N

  3. 配置本地连接2,设置ip为192.168.137.1,掩码255.255.255.0

    渗透测试中如何科学地使用V*P*N

  4. Kali首先设置虚拟机网络为Host-only, 在VM-Setting-Network Adapter-Host-only.

  5. Kali配置静态ip, 网关为Windows7 IP地址

root@HLKali:/etc/network# cat interfaces

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback iface eth0 inet static
address 192.168.137.5
netmask 255.255.255.0
gateway 192.168.137.1
  1. 如此这般,不会有流量漏了