Changes between Version 5 and Version 6 of SystemAdministration/Hosts/lvps92-51-161-129.dedicated.hosteurope.de


Ignore:
Timestamp:
07/29/15 12:49:23 (9 years ago)
Author:
Willem Elbers
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SystemAdministration/Hosts/lvps92-51-161-129.dedicated.hosteurope.de

    v5 v6  
    2222Data
    2323 * /srv/vlo-data
     24
     25
     26Firewalld configuration
     27
     28http://www.certdepot.net/rhel7-get-started-firewalld/
     29http://forums.fedoraforum.org/showthread.php?t=289907
     30
     31By default interfaces are assigned to the public zone. This zone only allows external ssh access.
     32
     33Create a new zone "webserver":
     34
     35Create the new zone
     36{{{
     37sudo firewall-cmd --permanent --new-zone=webserver
     38}}}
     39
     40Add services to the new zone
     41{{{
     42sudo firewall-cmd --permanent --zone=webserver --add-service=http
     43sudo firewall-cmd --permanent --zone=webserver --add-service=https
     44sudo firewall-cmd --permanent --zone=webserver --add-service=ssh
     45}}}
     46
     47Assign a network interface to the zone
     48{{{
     49firewall-cmd --permanent --zone=webserver --change-interface=venet0
     50}}}
     51
     52Activate the changes
     53{{{
     54sudo firewall-cmd --reload
     55}}}
     56