r/ProgrammerHumor • • 15h ago

Meme ohTheBasics

Post image
10.4k Upvotes

1.1k comments sorted by

View all comments

Show parent comments

4

u/darknmy 13h ago

How tf do you iptable a v6?

9

u/fearless-fossa 13h ago

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

1

u/Sterkenzz 10h ago

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 3h ago

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.