created | modified |
---|---|
2024-06-09 16:24:10 +0800 |
2024-06-09 16:29:31 +0800 |
when using long range public wifi it matters to block every port from incoming connections.
sudo ufw default deny
sudo ufw prepend reject in on <intetfece name>
sudo ufw restart
when configuration is done, remember to restart ufw and reconnect existing interfaces.
although remote clients are blocked, self-issued connections are not. so be sure to use another computer for testing ufw effectiveness before and after configuration.