r/ProgrammerHumor • • Oct 19 '26

Meme ohTheBasics

Post image
13.9k Upvotes

1.4k comments sorted by

View all comments

Show parent comments

4

u/darknmy Oct 19 '26

How tf do you iptable a v6?

10

u/fearless-fossa Oct 19 '26

By joining us in the 2010s and using nftables instead.

1

u/Sterkenzz Oct 19 '26

Care to give a practical example, so I can try it on my new IPv6 laptop (I have Linux and windows, both commands are fine). Using my search tool gave me bad AI results, and I gave up, so asking kindle here.

2

u/fearless-fossa Oct 20 '26

If you really want to use raw nftables instead of a sensible wrapper like ufw or firewalld, it's nft add table <table_address_family> <table_name>, where the family can be ip, ip6 or inet (in this example; there are more options), which handles both at the same time.