Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Removed opened port in ufw

Answer:

If you have opened a port using the ufw command in Ubuntu, but now you want to delete it, you can..

# sudo ufw delete allow 8080/tcp

And then do a reload

# # sudo ufw reload

That's all.

Allow a remote IP for incoming connection in UFW (Uncomplicated firewall)

Answer:

To allow a remote IP for incoming connection in Ubuntu's UFW (Uncomplicated firewall), you can use the following command:

# sudo ufw allow from x.x.x.x

Of course you need to reload the firewall.

# sudo ufw reload