WEIGEL FORUM
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    UFW - Uncomplicated Firewall

    Linux
    1
    1
    10
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DerMeldosD
      DerMeldos
      last edited by

      a few commands to understand ufw and get a few ideas for rules.

      ufw status
      ufw allow 22
      ufw allow 22/tcp
      ufw status verbose
      ufw allow from 10.0.0.192 to any port 22
      ufw allow from 10.0.0.192 to 10.0.0.191 port 22
      ufw status numbered
      ufw delete 1
      ufw delete allow 22
      ufw delete ufw allow from 10.0.0.192 to 10.0.0.191 port 22
      ufw allow from 10.0.0.0/24 to any port 22
      ufw allow from 10.0.0.0/24 
      ufw deny from 10.0.0.37
      #### Firewalls normaly process rules in order on a first match basis
      ufw delete deny from 10.0.0.37
      ufw insert 1 deny from 10.0.0.37
      ufw deny out on enp6s0 to 8.8.8.8
      ufw allow in on enp6s0 from any to 10.0.0.191 port 80,443 proto tcp 
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB | Contributors