← Guides

Allow your team into AWS when your IPs keep changing

A security group rule like "SSH from 0.0.0.0/0" is an invitation. Allowing each person's home IP works until their router reconnects. These are the practical fixes.

Updated 2026-11-19 · 5 min read

Option 1: no inbound SSH at all (Session Manager)

AWS Systems Manager Session Manager gives shell access through the AWS API, with no open port. It is a great default for EC2, but it does not help with databases, admin panels or third-party services that also need an allowlist.

Option 2: update the rule automatically

A small script can replace the rule with your current IP before you connect. It works for one person, but it is fragile for a team and leaves old IPs behind.

MYIP=$(curl -s https://checkip.amazonaws.com)
aws ec2 authorize-security-group-ingress \
  --group-id sg-0123456789abcdef0 \
  --protocol tcp --port 22 --cidr "$MYIP/32"

Option 3: one static IP for the whole team

Give everyone a WireGuard config on a server with a fixed IPv4, and allow only that address. When someone leaves, revoke their config; the security group never changes.

aws ec2 authorize-security-group-ingress \
  --group-id sg-0123456789abcdef0 \
  --protocol tcp --port 22 --cidr 203.0.113.42/32

Route only AWS traffic through the tunnel

If people should keep their normal internet connection, change AllowedIPs in their WireGuard config to just the addresses they need, for example your instances' public IPs or a load balancer:

[Peer]
# ...
AllowedIPs = 10.66.0.1/32, 198.51.100.10/32, 198.51.100.11/32

Good practice

Skip the setup

A dedicated server and static IPv4 in 38 cities, ready in about 3 minutes. WireGuard for people, SOCKS5/HTTP proxy for code. From $9.99/month.

FAQ

Questions, answered.

Something else? Open a ticket, a human replies.

Is a dedicated IP better than a business VPN? +

Business VPNs often charge per seat and give you a shared or "dedicated" IP as an add-on. A dedicated server with its own IP has a flat price and only your team uses it.

More guides

Stop getting blocked. Start getting allowlisted.

Your own static IP, live in minutes. Full refund within 3 days if it is not right for you.