So I have a tailscale relay server 172.31.1.3 ( sudo tailscale up --advertise-routes 172.31.0.0/16 --accept-routes --advertise-exit-node) on AWS VPC(172.31.0.0/16) and I can access any of my aws ec2 machines within that VPC from my local server which has tailscale enabled.
How do i also make it so that the ec2 machines (172.31.1.6) that doesn’t have tailscale in the same VPC can access my local server? Is this possible?
I am trying to add a route to the ec2 machines (172.31.1.6) in the vpc by sudo route add -net 100.0.0.0/8 gw 172.31.1.3 eth0
and my route table looks like this
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default ip-172-31-0-1.u 0.0.0.0 UG 100 0 0 eth0
100.0.0.0 ip-172-31-1-3 255.0.0.0 UG 0 0 0 eth0
172.31.0.0 0.0.0.0 255.255.240.0 U 100 0 0 eth0
ip-172-31-0-1.u 0.0.0.0 255.255.255.255 UH 100 0 0 eth0
ip-172-31-0-2.u 0.0.0.0 255.255.255.255 UH 100 0 0 eth0
but I still cannot connect to my local server via the tailscale 100* address