Re:AWS to Begin Charging for Public IPv4 Addresses
by ttt3ts on Thursday August 03, 2023 @06:35PM
(#36993005)
Bit confused. Couldn't you just run a Linux VM to do your NAT and only pay normal egress?
[ Parent
| on HN ]
Re:AWS to Begin Charging for Public IPv4 Addresses
by deadmutex on Thursday August 03, 2023 @06:54PM
(#36993200)
> just run a Linux VM
+ Run extra for failover, HA etc + manage security + Monitor performance + ...
Re:AWS to Begin Charging for Public IPv4 Addresses
by ttt3ts on Thursday August 03, 2023 @07:06PM
(#36993310)
You would have to run that in your own data center which is what original poster was comparing to.
Re:AWS to Begin Charging for Public IPv4 Addresses
by otterley on Friday August 04, 2023 @01:37AM
(#36995866)
You also have to do it in AWS if you don't want to use the NAT Gateway service and still desire reliability over and above the MTBF for an EC2 instance or AZ, or ever want to do anything requiring a reboot.
Re:AWS to Begin Charging for Public IPv4 Addresses
by endgame on Thursday August 03, 2023 @08:54PM
(#36994087)
Yes. And AWS do (sorta) offer a NAT AMI (amazon machine image) if you want to do more management yourself and not get extorted for bandwidth.
https://docs.aws.amazon.com/vpc/latest/userguide/VPC_NAT_Ins...
I say sorta because it's built on an old version of Amazon Linux and is headed towards EOL with no replacement except "go build your own" as you suggest.
https://www.lastweekinaws.com/blog/an-alternat-future-we-now...
AlterNAT uses managed NAT Gateways as a fallback when the NAT Instance is out of service, but again you will have to make your own NAT AMI.
This is not to excuse AWS' frankly absurd NATGW pricing, but to point out other ways around it.
Re:AWS to Begin Charging for Public IPv4 Addresses
by dwilkie on Thursday August 03, 2023 @09:26PM
(#36994297)
You don’t actually need to use the AMI. Here’s an example of a NAT instance we build from scratch:
https://github.com/somleng/somleng-project/blob/main/infrast...
Re:AWS to Begin Charging for Public IPv4 Addresses
by ttt3ts on Thursday August 03, 2023 @09:00PM
(#36994119)
Thanks! That is exactly what I wanted to know.
Re:AWS to Begin Charging for Public IPv4 Addresses
by endgame on Thursday August 03, 2023 @09:02PM
(#36994144)
Another thing: EC2 instances (VMs) have a "Source/Destination IP check" which makes them ignore any packets not intended for them. If you want an instance to do NAT, you need to turn this off.
Re:AWS to Begin Charging for Public IPv4 Addresses
by tedivm on Friday August 04, 2023 @08:22AM
(#36998967)
I've also got an open source terraform module for this-
Re:AWS to Begin Charging for Public IPv4 Addresses
by jon_richards on Thursday August 03, 2023 @10:33PM
(#36994776)
Weird, I was just looking into this yesterday and found https://fck-nat.dev/