INT-firewall konfiguration

From Datateknik
(Difference between revisions)
Jump to: navigation, search
(Detta är ett scripts som tar bort allt gammalt)
(Detta är ett scripts som tar bort allt gammalt)
Line 14: Line 14:
 
       type filter hook input priority 0;
 
       type filter hook input priority 0;
 
       policy drop;
 
       policy drop;
 +
      counter packets 0 bytes 0
 
   }
 
   }
 
    
 
    
Line 19: Line 20:
 
       type filter hook forward priority 0;
 
       type filter hook forward priority 0;
 
       policy drop;
 
       policy drop;
 +
      counter packets 0 bytes 0
 
   }
 
   }
 
    
 
    
Line 24: Line 26:
 
       type filter hook output priority 0;
 
       type filter hook output priority 0;
 
       policy accept;
 
       policy accept;
 +
      counter packets 0 bytes 0
 
   }
 
   }
  
 
KOLLA HUR DET BLEV
 
KOLLA HUR DET BLEV
 
   nft list ruleset
 
   nft list ruleset

Revision as of 15:01, 20 January 2020

Nedanstående fungerar ej!

Gamla FirewallD

Detta är ett scripts som tar bort allt gammalt

 #!/usr/sbin/nft -f
 
 flush ruleset
 
 table inet filter {
   chain input { 
     type filter hook input priority 0;
     policy drop;
     counter packets 0 bytes 0
 }
 
   chain forward {
     type filter hook forward priority 0;
     policy drop;
     counter packets 0 bytes 0
 }
 
   chain output {
     type filter hook output priority 0;
     policy accept;
     counter packets 0 bytes 0
 }

KOLLA HUR DET BLEV

 nft list ruleset
Personal tools
Namespaces

Variants
Actions
Navigation
Tools