logo
Blog single photo

How to Start/Stop and Enable/Disable Firewall ubuntu


                        

(base) dipankar@dipankar-H110M-S2:~$ sudo ufw status
[sudo] password for dipankar:
Status: active

To                         Action      From
--                         ------      ----
Apache Full                ALLOW       Anywhere                 
20/tcp                         ALLOW       Anywhere                 
21/tcp                         ALLOW       Anywhere                 
990/tcp                      ALLOW       Anywhere                 
40000:50000/tcp      ALLOW       Anywhere                 
8090/tcp                    ALLOW       Anywhere                 
8090                           ALLOW       Anywhere                 
Apache Full (v6)       ALLOW       Anywhere (v6)            
20/tcp (v6)                ALLOW       Anywhere (v6)            
21/tcp (v6)               ALLOW       Anywhere (v6)            
990/tcp (v6)             ALLOW       Anywhere (v6)            
40000:50000/tcp (v6)       ALLOW       Anywhere (v6)            
8090/tcp (v6)                      ALLOW       Anywhere (v6)            
8090 (v6)                             ALLOW       Anywhere (v6)            

(base) dipankar@dipankar-H110M-S2:~$ sudo ufw disable
Firewall stopped and disabled on system startup

(base) dipankar@dipankar-H110M-S2:~$ sudo ufw status
Status: inactive

(base) dipankar@dipankar-H110M-S2:~$ sudo ufw enable
Firewall is active and enabled on system startup

Top