| ▲ | nodesocket 3 hours ago | |||||||
I build my own NAT instances from Debian Trixie with Packer on AWS. AWS built-in NAT Gateways use an absurdly outdated and end-of-life version of Amazon Linux and are ridiculously expensive (especially traffic). The bash configuration is literally a few lines:
Change ens5 with your instance network interface name. Also, VERY IMPORTANT you must set source_dest_check = false on the EC2 NAT instances.Also, don’t assign a EIP to your EC2 NAT instances (unless you absolutely must persist a given public IP) as that counterintuitively routes through public traffic. Just use a auto-assigned public IP (no EIP). | ||||||||
| ▲ | topspin 42 minutes ago | parent | next [-] | |||||||
"NAT instances" That's what you did before AWS had the "NAT Gateway" managed service. It's literally called "NAT Instance" in current AWS documentation, and you can implement it in any way you wish. Of course, you don't have to limit yourself to iptables/nftables etc. OPNsense is a great way to do a NAT instance. | ||||||||
| ||||||||
| ▲ | unquietwiki 3 hours ago | parent | prev | next [-] | |||||||
Assigning an IP is ideal if you're having to whitelist traffic to/from a data center, application, or service. | ||||||||
| ||||||||
| ▲ | Nextgrid 2 hours ago | parent | prev [-] | |||||||
OpenWrt is also a good option. | ||||||||