How to make a router on raspberry pi zero 2w?

You can turn a Raspberry Pi Zero 2 W into a little Wi-Fi router pretty easily — the main trick is: