# Route to Virtual Private Gateway?

**URL:** <https://awshq.com/t/route-to-virtual-private-gateway/17770>\
**Category:** AWS Networking\
**Tags:** ec2, vpn, vpc\
**Created:** [January 8, 2024, 2:20am UTC](https://awshq.com/t/route-to-virtual-private-gateway/17770 "2024-01-08T02:20:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![orion3311](https://awshq.com/letter_avatar_proxy/v4/letter/o/71c47a/32.png) [@orion3311](https://awshq.com/u/orion3311)\
**Post date:** [January 8, 2024, 2:20am UTC](https://awshq.com/t/route-to-virtual-private-gateway/17770/1 "2024-01-08T02:20:26Z")

</div>

Working on setting up an RRAS VPN gateway on an EC2 instance. I now have it working ok but stuck on an item. In addition to the RRAS, I also have a site-to-site vpn to AWS (using AWS virtual private gateway), let’s say the remote site is [192.168.1.0/24](https://192.168.1.0/24), and my AWS VPC is [192.168.20.0/24](https://192.168.20.0/24). My RRAS box is using [192.168.30.0/24](https://192.168.30.0/24) for its static IP pool.

I added a route to the VPC so that .30.0 gets to the internal NIC of the RRAS box. Thats all fine and works great, my RRAS client, let’s say [192.168.30.10](https://192.168.30.10) can talk to 192.168.20.5. However, if I try to reach out to the other site via the site-to-site vpn, I can’t get anywhere. I ran wireshark on a box there and can’t even see pings.

I even tried pinging the default gateway of the VPC ([192.168.20.1](https://192.168.20.1)) and it doesn’t ping, while it does internally.

Source/destination check has been disabled on RRAS box.

Is there a source-destination check set on the VPC router as well? Any ideas on how to get my RRAS client to talk to resources on the remote site? (I can ping and communicate fine from the native VPC subnets).

* * *

**Related discussions:**

- [AT GateWay inside VPC with CIDR smaller subnet ?](https://awshq.com/t/at-gateway-inside-vpc-with-cidr-smaller-subnet/18550)
- [SSL Termination strategy with ALB + ECS Fargate](https://awshq.com/t/ssl-termination-strategy-with-alb-ecs-fargate/19815)
- [VPC Peering Connections: What happens when traffic arrives at a VPC with multiple route tables for the same destination?](https://awshq.com/t/vpc-peering-connections-what-happens-when-traffic-arrives-at-a-vpc-with-multiple-route-tables-for-the-same-destination/21024)
- [Do you get billed if you use AWS free-tier as your VPN server?](https://awshq.com/t/do-you-get-billed-if-you-use-aws-free-tier-as-your-vpn-server/1583)
- [Bedrock plus an external llm router for a year, the audit trail gap we ran into](https://awshq.com/t/bedrock-plus-an-external-llm-router-for-a-year-the-audit-trail-gap-we-ran-into/21361)

---

<div class="post-metadata">

**Author:** ![eggwhiteontoast](https://awshq.com/letter_avatar_proxy/v4/letter/e/edb3f5/32.png) [@eggwhiteontoast](https://awshq.com/u/eggwhiteontoast)\
**Post date:** [January 8, 2024, 3:45am UTC](https://awshq.com/t/route-to-virtual-private-gateway/17770/2 "2024-01-08T03:45:27Z")

</div>

Do you have a route on your VPC route table destined to your remote site via VPC Gateway?

---

<div class="post-metadata">

**Author:** ![orion3311](https://awshq.com/letter_avatar_proxy/v4/letter/o/71c47a/32.png) [@orion3311](https://awshq.com/u/orion3311)\
**Post date:** [January 8, 2024, 3:47am UTC](https://awshq.com/t/route-to-virtual-private-gateway/17770/3 "2024-01-08T03:47:20Z")

</div>

> [@eggwhiteontoast](#):
>
> Do you have a route on your VPC route table destined to your remote site via VPC Gateway?

Yes…can access the AWS VPC from the remote site and vice versa, just not from the RRAS client.

---

<div class="post-metadata">

**Author:** ![eggwhiteontoast](https://awshq.com/letter_avatar_proxy/v4/letter/e/edb3f5/32.png) [@eggwhiteontoast](https://awshq.com/u/eggwhiteontoast)\
**Post date:** [January 8, 2024, 3:51am UTC](https://awshq.com/t/route-to-virtual-private-gateway/17770/4 "2024-01-08T03:51:28Z")

</div>

> [@orion3311](#):
>
> Yes…can access the AWS VPC from the remote site and vice versa, just not from the RRAS client.

You can enable VPC flow logs to see what us happening to your RRAS client traffic. Hope you’ve allowed the necessary ports on the security groups of the RRAS server.

---

<div class="post-metadata">

**Author:** ![orion3311](https://awshq.com/letter_avatar_proxy/v4/letter/o/71c47a/32.png) [@orion3311](https://awshq.com/u/orion3311)\
**Post date:** [January 8, 2024, 5:59am UTC](https://awshq.com/t/route-to-virtual-private-gateway/17770/5 "2024-01-08T05:59:03Z")

</div>

> [@eggwhiteontoast](#):
>
> You can enable VPC flow logs to see what us happening to your RRAS client traffic. Hope you’ve allowed the necessary ports on the security groups of the RRAS server.

Well I did that, ran them for a bit, I might try again tomorrow and just download all the log files, however I only saw DNS lookups between the RRAS and DNS server on the AWS subnet, nothing else.

I did confirm the VPN client is sending the traffic up, as doing a tracert shows the RRAS server, but beyond that, nothing. I also confirmed the gateway on the remote site side does have a route, but no ping and tracert shows no real info.

I’m starting to wonder if it would make more sense to put the RRAS box into a subnet of it’s own with the client IPs so that that VPC can be aware of it via the VPC CIDR entries.

---

<div class="post-metadata">

**Author:** ![eggwhiteontoast](https://awshq.com/letter_avatar_proxy/v4/letter/e/edb3f5/32.png) [@eggwhiteontoast](https://awshq.com/u/eggwhiteontoast)\
**Post date:** [January 8, 2024, 5:10pm UTC](https://awshq.com/t/route-to-virtual-private-gateway/17770/6 "2024-01-08T17:10:54Z")

</div>

> [@orion3311](#):
>
> Well I did that, ran them for a bit, I might try again tomorrow and just download all the log files, however I only saw DNS lookups between the RRAS and DNS server on the AWS subnet, nothing else. I did confirm the VPN …

You mentioned, your VPC CIDR is 192.168.20.0/24 and Your RRAS is in 192.168.30.0/24 subnet? Can you confirm if your VPC CIDR is really using /24 or is it 192.168.0.0 /16?

---

<div class="post-metadata">

**Author:** ![orion3311](https://awshq.com/letter_avatar_proxy/v4/letter/o/71c47a/32.png) [@orion3311](https://awshq.com/u/orion3311)\
**Post date:** [January 8, 2024, 6:02pm UTC](https://awshq.com/t/route-to-virtual-private-gateway/17770/7 "2024-01-08T18:02:49Z")

</div>

> [@eggwhiteontoast](#):
>
> You mentioned, your VPC CIDR is 192.168.20.0/24 and Your RRAS is in 192.168.30.0/24 subnet? Can you confirm if your VPC CIDR is really using /24 or is it 192.168.0.0 /16?

I am pretty sure it is, I can confirm in a bit. Yeah mistakes were made lol.

---

<div class="post-metadata">

**Author:** ![orion3311](https://awshq.com/letter_avatar_proxy/v4/letter/o/71c47a/32.png) [@orion3311](https://awshq.com/u/orion3311)\
**Post date:** [January 8, 2024, 8:57pm UTC](https://awshq.com/t/route-to-virtual-private-gateway/17770/8 "2024-01-08T20:57:36Z")

</div>

> [@orion3311](#):
>
> I am pretty sure it is, I can confirm in a bit. Yeah mistakes were made lol.

Confirmed its .20.0/24. It seems that if I add a CIDR to it, it automatically adds that to the route table as “local”, which…I’m not sure if that would fix it or not. I could technically add it as a subnet and add that CIDR to the VPC as well.

---

<div class="post-metadata">

**Author:** ![eggwhiteontoast](https://awshq.com/letter_avatar_proxy/v4/letter/e/edb3f5/32.png) [@eggwhiteontoast](https://awshq.com/u/eggwhiteontoast)\
**Post date:** [January 8, 2024, 9:28pm UTC](https://awshq.com/t/route-to-virtual-private-gateway/17770/9 "2024-01-08T21:28:32Z")

</div>

> [@orion3311](#):
>
> Confirmed its .20.0/24. It seems that if I add a CIDR to it, it automatically adds that to the route table as “local”, which…I’m not sure if that would fix it or not. I could technically add it as a subnet and add …

Well looks like that is the problem, if your VPC CIDR is .20.0/24 then .30.0/24 is not part of your VPC. So you may want to add .30.0/24 to your VPC CIDR.  
Or you can change your VPC CIDR to [192.168.16.0/20](https://192.168.16.0/20) so it includes [192.168.16.0](https://192.168.16.0) - .31.255 which includes both of your subnets but keeps your remote subnet separate.

---

<div class="post-metadata">

**Author:** ![orion3311](https://awshq.com/letter_avatar_proxy/v4/letter/o/71c47a/32.png) [@orion3311](https://awshq.com/u/orion3311)\
**Post date:** [January 8, 2024, 11:53pm UTC](https://awshq.com/t/route-to-virtual-private-gateway/17770/10 "2024-01-08T23:53:49Z")

</div>

> [@eggwhiteontoast](#):
>
> Well looks like that is the problem, if your VPC CIDR is .20.0/24 then .30.0/24 is not part of your VPC. So you may want to add .30.0/24 to your VPC CIDR. Or you can change your VPC CIDR to …

Yeah I can’t modify it after the fact, but I can add subnets to it. I might try spinning up the RRAS in it’s own subnet and see if that makes a difference.
