Do you need to run any of these commands:
sudo ufw reload
sudo ufw disable
sudo ufw enable
after adding a rule via sudo ufw allow
?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityNo. It's enough to just add it. But if you add rules in the files, you need to execute commit
.
You can check user rules, as they're called with:
ufw status
You can also add verbose
for some details:
ufw status verbose
Or numbered
to know which rule to remove with delete
. The syntax for this one is this:
delete RULE|NUM
/etc/ufw/
. There are many rules there. What you add through the command line goes to user
or user6
for IPv6. There should be 6 more folders there and a cover of sysctl.conf
form /etc/sysctl
and /etc/sysctl.d
. Find a suitable guide for your OS and version. There are plenty of them in the air.