Two separate commands. I’d actually suggest you do the ufw
command before nc
really.
Alternatively, you need to use different tabs - because once you run nc -nlvp 443
, you cant type more commands into your system until you kill the process - which you don’t want to do.