LINUXOPOLIS # 1,075 ~ UFWsteemCreated with Sketch.

in #linux5 years ago (edited)

UFW

Building a Linux Habitat
willi glenz @ telegram
Published with SteemPeak
home ~ previous

screenshot by willi glenz

vim ~/.config/fish/functions/gufw.fish

function gufw --description 'firewall'
    clear; echo
    echo '=========================================================================='
    echo '                                   UFW                                    '
    echo ' /etc/default/ufw                                                         '
    echo '=========================================================================='
    echo ' # apt install ufw gufw      // installation                              '
    echo ' $ apt-cache show ufw        // package information                       '
    echo ' $ man ufw                   // source                                    '
    echo ' # ufw status                // verbose|numbered                          '
    echo ' # tail -f /var/log/ufw.log  // log-file                                  '
    echo '                                                                          '
    echo ' ------------------------------------------------------------------------ '
    echo ' STATUS                                                                   '
    echo ' ------------------------------------------------------------------------ '
    echo ' # ufw status                // verbose|numbered                          '
    echo ' # ufw reset                 // reset                                     '
    echo ' # ufw enable                // enable|disable                            '
    echo ' # ufw allow ssh             // allow|deny|reject                         '
    echo ' # ufw allow SSH             // allow|deny|reject                         '
    echo ' # ufw allow WWW             // WWW "WWW Cache" "WWW Full" "WWW Secure"   '
    echo ' # ufw reload                // reload                                    '
    echo ' # ufw status                // verbose|numbered                          '
    echo ' # tail -f /var/log/ufw.log  // log-file                                  '
    echo ' # systemctl status ufw      // systemd                                   '
    echo '                                                                          '
    echo ' ------------------------------------------------------------------------ '
    echo ' BASELINE                                                                 '
    echo ' ------------------------------------------------------------------------ '
    echo ' # systemctl status ufw                                                   '
    echo ' # systemctl start ufw                                                    '
    echo ' # systemctl enable ufw                                                   '
    echo ' # ufw status                         // verbose|numbered                 '
    echo ' # ufw status verbose                 // verbose|numbered                 '
    echo ' # ufw reset                          // reset                            '
    echo ' # ufw disable                        // disable                          '
    echo ' # ufw enable                         // enable                           '
    echo ' # ufw default deny incoming          // deny                             '
    echo ' # ufw default allow outgoing         // allow                            '
    echo ' # ufw allow ssh                      // allow ssh                        '
    echo ' # ufw logging on         // on|off|low|medium|high|full  /var/log/syslog '
    echo ' # ufw status verbose                 // verbose|numbered                 '
    echo ' # tail -f /var/log/ufw.log           // log-file                         '
    echo ' # systemctl status ufw               // systemd                          '
    echo '                                                                          '
    echo ' ------------------------------------------------------------------------ '
    echo ' SSH                                                                      '
    echo ' ------------------------------------------------------------------------ '
    echo ' # ufw status                // verbose|numbered                          '
    echo ' # ufw reset                 // reset                                     '
    echo ' # ufw enable                // enable|disable                            '
    echo ' # ufw allow ssh             // allow|deny|reject                         '
    echo ' # ufw reload                // reload                                    '
    echo ' # ufw status                // verbose|numbered                          '
    echo ' # tail -f /var/log/ufw.log  // log-file                                  '
    echo ' # systemctl status ufw      // systemd                                   '
    echo '                                                                          '
    echo ' ------------------------------------------------------------------------ '
    echo ' APPLICATION PROFILES                                                     '
    echo ' ------------------------------------------------------------------------ '
    echo ' # ufw app list | less                                                    '
    echo ' # ufw app info "WWW Secure"                                              '
    echo ' # ufw allow OpenSSH                  // allow|deny                       '
    echo '=========================================================================='
    echo
end
SOURCES
 man-pages ........... $ man ufw
 tecmint ............. tecmint.com/setup-ufw-firewall-on-ubuntu-and-debian/
 ubuntuusers (de) .... wiki.ubuntuusers.de/ufw/
 ubuntu .............. wiki.ubuntu.com/UncomplicatedFirewall
 fish ................ fishshell.com/docs/current/index.html
 picture ............. screenshoot by me ~ my gnome-desktop

Coin Marketplace

STEEM 0.24
TRX 0.21
JST 0.036
BTC 97907.48
ETH 3354.28
USDT 1.00
SBD 3.35