frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

You only live once, self host a NAT Gateway

https://www.awsistoohard.com/blog/self-hosting-nat-gateway
18•veryrealsid•4d ago

Comments

nodesocket•28m 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:

    sudo iptables -t nat -A POSTROUTING -o ens5 -j MASQUERADE
    sudo iptables -F FORWARD
    sudo iptables -A FORWARD -i ens5 -m state --state RELATED,ESTABLISHED -j ACCEPT
    sudo iptables -A FORWARD -o ens5 -j ACCEPT
    sudo iptables-save | sudo tee /etc/iptables/rules.v4 > /dev/null
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).

  NAT instance with EIP
    - AWS routes it through the public AWS network infrastructure (hairpinning).
    - You get charged $0.01/GB regional data transfer, even if in the same AZ.
notTooFarGone•14m ago
It's honestly ridiculous that people now see that self hosting is stupidly cheaper and still 99.9% reliable.

No your service does not need the extra .099% availability for 100x the price...

Make your own VPN while you are at it, wireguard is basically the same config.

radicaldreamer•13m ago
A lot of this is support. If you’re self hosting, when things don’t work the way they should, the team has no one to blame. On AWS, they can always lean on aws not working the way it should as an excuse.
heinternets•11m ago
Please can we do away with NAT forever. Why are we still encouraging this? It’s caused the world to do horrible kludges and continues to do so.
somanyphotons•10m ago
Presumably the idea is that if you go ipv6-only you can avoid this cost and just use a firewall?

Helping Valve to power up Steam devices

https://www.igalia.com/2025/11/helpingvalve.html
355•TingPing•6h ago•106 comments

California DMV approves map increase in Waymo driverless operations

https://www.dmv.ca.gov/portal/vehicle-industry-services/autonomous-vehicles/autonomous-vehicle-te...
22•NullHypothesist•1h ago•10 comments

The Untold History of Arduino (2016)

https://arduinohistory.github.io/
47•davikr•2h ago•2 comments

Show HN: Wealthfolio 2.0- Open source investment tracker. Now Mobile and Docker

https://wealthfolio.app/?v=2.0
399•a-fadil•7h ago•141 comments

Childhood Friends, Not Moms, Shape Attachment Styles Most

https://nautil.us/childhood-friends-not-moms-shape-attachment-styles-most-1247316/
52•dnetesn•1w ago•18 comments

Personal blogs are back, should niche blogs be next?

https://disassociated.com/personal-blogs-back-niche-blogs-next/
22•gnabgib•1h ago•7 comments

Arduino published updated terms and conditions: no longer an open commons

https://www.molecularist.com/2025/11/did-qualcomm-kill-arduino-for-good.html
282•felineflock•8h ago•98 comments

Samsung's 60% DRAM Price Hike Signals a New Phase of Global Memory Tightening

https://www.buysellram.com/blog/samsungs-memory-price-surge-sends-shockwaves-through-the-global-d...
82•redohmy•6d ago•61 comments

Pixar: The Early Days A never-before-seen 1996 interview

https://stevejobsarchive.com/stories/pixar-early-days
55•sanj•3h ago•2 comments

We should all be using dependency cooldowns

https://blog.yossarian.net/2025/11/21/We-should-all-be-using-dependency-cooldowns
255•todsacerdoti•9h ago•170 comments

You can make PS2 games in JavaScript

https://jslegenddev.substack.com/p/you-can-now-make-ps2-games-in-javascript
214•tosh•7h ago•49 comments

LAPD Helicopter Tracker with Real-Time Operating Costs

https://lapdhelicoptertracker.com/
87•polalavik•1h ago•92 comments

You only live once, self host a NAT Gateway

https://www.awsistoohard.com/blog/self-hosting-nat-gateway
18•veryrealsid•4d ago•5 comments

Tuxedo Computers Cancels Snapdragon X1 Linux Laptop

https://www.tuxedocomputers.com/en/Discontinuation-of-ARM-notebooks-with-Snapdragon-X-Elite-SoC.t...
48•Venn1•4h ago•12 comments

Real-Time AI-Powered Texas Hold'em in Python and Flask – Play in the Browser

https://github.com/EMMA019/AI_pokergame
6•tarocha1019•57m ago•1 comments

Building a Durable Execution Engine with SQLite

https://www.morling.dev/blog/building-durable-execution-engine-with-sqlite/
93•ingve•1d ago•30 comments

Is Matrix Multiplication Ugly?

https://mathenchant.wordpress.com/2025/11/21/is-matrix-multiplication-ugly/
10•jamespropp•1h ago•4 comments

Shop Sans is a typeface for curved text paths

https://www.futurefonts.com/hex/shop-sans
94•tobr•1w ago•31 comments

Solving Fizz Buzz with Cosines

https://susam.net/fizz-buzz-with-cosines.html
102•hprotagonist•6h ago•27 comments

Pivot Robotics (YC W24) Is Hiring for an Industrial Automation Hardware Engineer

https://www.ycombinator.com/companies/pivot-robotics/jobs/7xG9Dc6-mechanical-engineer-controls
1•vigneshrajmohan•6h ago

Prozac 'no better than placebo' for treating children with depression, experts

https://www.theguardian.com/society/2025/nov/20/prozac-no-better-than-placebo-for-treating-childr...
181•pseudolus•23h ago•246 comments

FAWK: LLMs can write a language interpreter

https://martin.janiczek.cz/2025/11/21/fawk-llms-can-write-a-language-interpreter.html
197•todsacerdoti•13h ago•174 comments

Olmo 3: Charting a path through the model flow to lead open-source AI

https://allenai.org/blog/olmo3
349•mseri•17h ago•113 comments

Making a Small RPG

https://jslegenddev.substack.com/p/making-a-small-rpg
159•ibobev•10h ago•29 comments

Command Lines

https://www.wreflection.com/p/command-lines-ai-coding
48•nowflux•7h ago•10 comments

Homeschooling hits record numbers

https://reason.com/2025/11/19/homeschooling-hits-record-numbers/
163•bilsbie•23h ago•471 comments

The senior population is booming. Caregiving is struggling to keep up

https://www.cnbc.com/2025/11/21/senior-caregiving-labor.html
47•toomuchtodo•2h ago•26 comments

It's hard to build an oscillator

https://lcamtuf.substack.com/p/its-hard-to-build-an-oscillator
216•chmaynard•16h ago•83 comments

EXIF orientation info in PNGs isn't used for image-orientation: from-image

https://bugzilla.mozilla.org/show_bug.cgi?id=1627423
89•justin-reeves•10h ago•76 comments

Scientists now know that bees can process time, a first in insects

https://www.cnn.com/2025/11/12/science/bees-visual-stimulus-study-scli-intl
182•Brajeshwar•6d ago•105 comments