INT-firewalld konfiguration

From Datateknik
(Difference between revisions)
Jump to: navigation, search
(Created page with "Hmm... =Skapa nya zzoner= When adding a zone, you must add it to the permanent firewall configuration. You can then reload to bring the configuration into your running session...")
 
(Skapa nya zzoner)
Line 1: Line 1:
 
Hmm...
 
Hmm...
=Skapa nya zzoner=
+
=Skapa nya zoner=
 
When adding a zone, you must add it to the permanent firewall configuration. You can then reload to bring the configuration into your running session. For instance, we could create the two zones we discussed above by typing:
 
When adding a zone, you must add it to the permanent firewall configuration. You can then reload to bring the configuration into your running session. For instance, we could create the two zones we discussed above by typing:
  
 
     firewall-cmd --permanent --new-zone=kompisar
 
     firewall-cmd --permanent --new-zone=kompisar
 
     firewall-cmd --permanent --new-zone=allihopa
 
     firewall-cmd --permanent --new-zone=allihopa
 +
 
 +
    firewall-cmd --reload
 +
    firewall-cmd --permanent --get-zones
 +
 +
= Lägg in vilka nät =
 +
ff
 +
= Lägg till tjänster =
 +
    sudo firewall-cmd --zone=kompisar --add-service=ssh
 +
    sudo firewall-cmd --zone=allihopa --add-service=http
 +
    sudo firewall-cmd --zone=allihopa --add-service=https
 +
   
 +
    firewall-cmd --zone=kompisar --list-all
 +
    firewall-cmd --zone=allihopa --list-all

Revision as of 11:07, 7 April 2017

Hmm...

Skapa nya zoner

When adding a zone, you must add it to the permanent firewall configuration. You can then reload to bring the configuration into your running session. For instance, we could create the two zones we discussed above by typing:

   firewall-cmd --permanent --new-zone=kompisar
   firewall-cmd --permanent --new-zone=allihopa
 
   firewall-cmd --reload
   firewall-cmd --permanent --get-zones

Lägg in vilka nät

ff

Lägg till tjänster

   sudo firewall-cmd --zone=kompisar --add-service=ssh
   sudo firewall-cmd --zone=allihopa --add-service=http
   sudo firewall-cmd --zone=allihopa --add-service=https
   
   firewall-cmd --zone=kompisar --list-all
   firewall-cmd --zone=allihopa --list-all
Personal tools
Namespaces

Variants
Actions
Navigation
Tools