I am testing a scenario where we need to forward all traffic to a VM, then this VM should forward the traffic to the intended machine. (cannot say "why").
- Created
Vnet "VN",Subnet "SN", 3NICs, and 3VMs(using:Standard_DS1_v2size and the latestWin 2022 image). - All are in one Azure region under the same account and subscription.
- Created
routing table "RT"and added tworoutes. - Made
VM2's IP static. - Enabled
IP ForwardingonVM2. - Disabled Windows Firewall on all VMs.
IPs are:
VM | IP ---------------------- VM1 | 10.3.1.4 VM2 | 10.3.1.5 VM3 | 10.3.1.6 RT Routes:
Name | Address Prefix | Next Hop Type | Next Hop Address ---------------------------------------------------------------------------- VM1-VM3 | 10.3.1.6/32 | Virtual Appliance | 10.3.1.5 VM3-VM1 | 10.3.1.4/32 | Virtual Appliance | 10.3.1.5 Before attaching the RT routing table to the SN subnet, networking is ok and I can ping from anywhere to anywhere.
After attaching the RT to SN, ping from any to any message "Request timed out".
What I tried:
- different subnets: not working either.
- adding
nsgand allowingICMP. - adding
nsgand allowing all traffic (anytoany). - recreating the whole thing.
- a different account and subscription.
- asked AI if it was possible. It replied "Yes".
- tried many YouTube videos with the same result. The only difference is that they use real (paid) Azure accounts.
- I even tried installing Routing and Remote Access Service (RRAS), configured it for LAN routing, and added static routes with the host's gateway as the gateway.
I am out of options, and have no clue.
What is wrong?