RRAS 路由恶作剧

RRAS 路由恶作剧

我在 AWS VPC(10.145/24 网络)上运行一个 RRAS 服务器,地址为 10.145.0.77。

我在单独的 Microsoft 环回适配器上设置了一个 DHCP 服务器/作用域(10.250/16 网络),以便为我的 VPN 客户端提供 DHCP 选项集(RRAS 服务器分配了 10.250.0.5 - 客户端的 DHCP 为 10.250.0.10 到 250)。

还有另一个站点通过 AWS 硬件 VPN(192.168.168/24 网络)连接。

一切都运行正常,除了一种情况 - VPN 客户端无法 ping 192.168.168/24 网络上的任何内容(即使 RRAS 服务器可以)。它们能够毫无问题地访问 10.145/16 网络。

我通过 ping 10.145/16 和 192.168.168/24 网络上的测试主机复制了此问题,并使用以下命令指定源地址/适配器:

工作 - 从 VPN 客户端网络到 10.145/16

PS I:\> ping -S 10.250.0.5 10.145.11.100

Pinging 10.145.11.100 from 10.250.0.5 with 32 bytes of data:
Reply from 10.145.11.100: bytes=32 time=1ms TTL=127
Reply from 10.145.11.100: bytes=32 time=1ms TTL=127

工作 - 从 VPC 网络到 192.168.168/24

PS I:\> ping -S 10.145.0.77 192.168.168.3

Pinging 192.168.168.3 from 10.145.0.77 with 32 bytes of data:
Reply from 192.168.168.3: bytes=32 time=38ms TTL=127
Reply from 192.168.168.3: bytes=32 time=39ms TTL=127

失败 - 从 VPN 客户端网络到 192.168.168/24

PS I:\> ping -S 10.250.0.5 192.168.168.3

Pinging 192.168.168.3 from 10.250.0.5 with 32 bytes of data:
Request timed out.
Request timed out.

下面是一个跟踪路由,演示了数据包被正确路由到 RRAS 服务器:

从 VPN 客户端到 192.168.168/24 的跟踪路由

PS C:\Windows\system32> tracert 192.168.168.3

Tracing route to [redacted] [192.168.168.3]
over a maximum of 30 hops:

  1    49 ms     *       54 ms  [redacted] [10.250.0.14]
  2     *        *        *     Request timed out.

这是来自 RRAS 服务器的路由表:

PS I:\> route print
===========================================================================
Interface List
 31...........................RAS (Dial In) Interface
 16...02 00 4c 4f 4f 50 ......Microsoft KM-TEST Loopback Adapter
 12...0a 40 10 6c 77 87 ......AWS PV Network Device #0
  1...........................Software Loopback Interface 1
 14...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
 17...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
 18...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0       10.145.0.1      10.145.0.77    266
       10.145.0.0    255.255.255.0         On-link       10.145.0.77    266
      10.145.0.77  255.255.255.255         On-link       10.145.0.77    266
     10.145.0.255  255.255.255.255         On-link       10.145.0.77    266
       10.250.0.0    255.255.255.0         On-link        10.250.0.5    266
       10.250.0.5  255.255.255.255         On-link        10.250.0.5    266
      10.250.0.13  255.255.255.255      10.250.0.13      10.250.0.14     31
      10.250.0.14  255.255.255.255         On-link       10.250.0.14    286
     10.250.0.255  255.255.255.255         On-link        10.250.0.5    266
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  169.254.169.250  255.255.255.255       10.145.0.1      10.145.0.77     10
  169.254.169.251  255.255.255.255       10.145.0.1      10.145.0.77     10
  169.254.169.254  255.255.255.255       10.145.0.1      10.145.0.77     10
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link        10.250.0.5    266
        224.0.0.0        240.0.0.0         On-link       10.145.0.77    266
        224.0.0.0        240.0.0.0         On-link       10.250.0.14    286
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255         On-link        10.250.0.5    266
  255.255.255.255  255.255.255.255         On-link       10.145.0.77    266
  255.255.255.255  255.255.255.255         On-link       10.250.0.14    286
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
          0.0.0.0          0.0.0.0       10.145.0.1  Default
===========================================================================

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
  1    306 ::1/128                  On-link
 16    266 fe80::/64                On-link
 12    266 fe80::/64                On-link
 16    266 fe80::adb9:e96f:8722:b496/128
                                    On-link
 12    266 fe80::c4b0:bebf:ed1b:fecf/128
                                    On-link
  1    306 ff00::/8                 On-link
 16    266 ff00::/8                 On-link
 12    266 ff00::/8                 On-link
===========================================================================
Persistent Routes:
  None

相关内容