How do I turn on ports in Ubuntu? Need help with firewall settings! or What's the easiest way to turn

14 Replies, 2150 Views

If you’re trying to turn on ports in Ubuntu, UFW is the simplest way. But just FYI, `iptables` is more powerful if you need advanced stuff later.

For now, stick with:
```
sudo ufw allow 8080
sudo ufw enable
```
The second command makes sure UFW is actually active.

And yeah, no restart—just check with `sudo ufw status verbose` to see your rules.

Messages In This Thread



Users browsing this thread: 1 Guest(s)