I have 2 AWS accounts. I work from home & I connect to AWS over public network. I am looking for a quick, simple, and inexpensive way to make my desktop, laptop, etc. join my VpC’s private network so that I can deploy my db in a private subnet but ac

Even better if I can do it on my Google WiFi routers so everything connected to my home network gets a private IP address that can access my private subnet resources.


Edit: thanks for all the suggestions!

Tailscale, Wireguard or equivalent VPNs will be enough for you.

How is your host accessing the internet? If you’re using a NAT gateway you’ll find the hard NAT’ing will cause performance problems on Tailscale as you’ll be routed through their relay servers rather than direct as Wireguard clients. If going down that path you’ll want to use your own relay node as a bastion host of sorts in your public subnet.

Edit: when behind a NAT gateway without using a subnet router you will always be routed through a Tailscale DERP (relay). If you want to avoid this, and you will for latent sensitive protocols like SQL and file shares, you will want to to stand up a subnet router.

https://tailscale.com/kb/1019/subnets/

Define inexpensive, that’ll help rule out some options

If you are working on a Linux machines, SShuttle forwards all traffic over a ssh session to a target machine, the target machine could be in a public subnet with only the SSH port opened in the Security Group.
https://github.com/sshuttle/sshuttle

Edit:
The SShuttle way requires only client side installation(SSHD on server is enabled by default), if your ISP provides you a static IP, you can also restrict port 22 traffic to your bastion host in the SG to reduce the risk vector.

AWS has a VPN service.

Use AWS SSM port forwarding (prob the cheapest?)

Will SSM port forwarding be enough? Likely so if the DB is hosted on EC2 but will it work (without SSH tunneling over SSM) if the DB is RDS?

You’ll need a tunneling box which can also be private, but it works

Wireguard ?

Havent done it yet, but its on my to do list.

AWS VPN endpoint easy to set up with his own preconfigurred VPN client

OP hasn’t stated what „cheap“ means to them. Unless you set it up and tear it down completely every time you want to connect, client vpn has a base cost of $75 per month which is quite steep imho

Wireguard to a nano VPN server? Wireguard is simple and handles IP changes perfectly if you have a dynamic IP. OpenVPN is also an option. Both can be managed by NetworkManager on Linux.

No idea what Google WiFi devices can do, but it’s probably better to bridge your laptop than your whole private network.

Home internet has dynamic IP

You don’t know that his home internet has dynamic IPs. It varies by provider and plan.

Getting a static IP would be best.

It’s not really a requirement and it could be expensive. Wireguard works flawlessly over dynamic IPs. OpenVPN also works with some interruption.

It’s really expensive compared to a reserved insurance nano running wireguard or openvpn.

I only got into it recently. It’s so worth doing. It’s OpenVPN without all the stuff that makes OpenVPN a pain. It handles endpoint IP changes like a dream. It’s simple, fast, and low bandwidth.

I’m looking forward to it coming with the next FreeBSD release so I can dump OpenVPN entirely.

SSH tunnel over a bastion host is a viable idea, though I do not know the costs involved.

On an EC2 Nano instance, about $24 a year if it’s on all the time, plus bandwidth and storage. Also, you can destruct this after your done.

Also, here is how to connect to an EC2 in a private subnet for OP.

NordVPN with static IP , costs 79$ for static IP per year and usual Nord Subscription

Put the static IP in SG

Teleport can also be an option

But most of the time I just use ssh tunnels to an ec2 instance.

Use cloudflared agent and Cloudflare zero trust agent. Creates a seamless experience to auto connect and the. Have network access to private networks via a secure wire guard style vpn.

You don’t need VPN, if you need just access to your DB from your PC.

Deploy DB to private subnet and bastion server to public subnet. And then you will be able to make ssh tunnel to your DB instance trough that bastion server.
Limit access to your bastion server via SG and ingress rule, allowing only from your IP.

For bastion server t4 nano instance would be enough. Cost is about 3$/month