| Line 1... | 
            Line 1... | 
          
          
            | 1 | 
            #!/bin/bash
  | 
            1 | 
            #!/bin/bash
  | 
          
          
            | 2 | 
            #  $Id: alcasar.sh 2841 2020-06-28 21:49:00Z rexy $
  | 
            2 | 
            #  $Id: alcasar.sh 2842 2020-06-30 22:06:56Z rexy $
  | 
          
          
            | 3 | 
             
  | 
            3 | 
             
  | 
          
          
            | 4 | 
            # alcasar.sh
  | 
            4 | 
            # alcasar.sh
  | 
          
          
            | 5 | 
            # ALCASAR is a Free and open source NAC created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
  | 
            5 | 
            # ALCASAR is a Free and open source NAC created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
  | 
          
          
            | 6 | 
            # This script is distributed under the Gnu General Public License (GPL)
  | 
            6 | 
            # This script is distributed under the Gnu General Public License (GPL)
  | 
          
          
            | 7 | 
            #  team@alcasar.net
  | 
            7 | 
            #  team@alcasar.net
  | 
          
          
            | Line 1351... | 
            Line 1351... | 
          
          
            | 1351 | 
            	$SED "s?safe=vss?safe=strict?g" $DIR_DG/lists/urlregexplist
  | 
            1351 | 
            	$SED "s?safe=vss?safe=strict?g" $DIR_DG/lists/urlregexplist
  | 
          
          
            | 1352 | 
             
  | 
            1352 | 
             
  | 
          
          
            | 1353 | 
            # Create & adapt the second group conf file (av + av_wl)
  | 
            1353 | 
            # Create & adapt the second group conf file (av + av_wl)
  | 
          
          
            | 1354 | 
            	cp $DIR_DG/e2guardianf1.conf.default $DIR_DG/e2guardianf2.conf
  | 
            1354 | 
            	cp $DIR_DG/e2guardianf1.conf.default $DIR_DG/e2guardianf2.conf
  | 
          
          
            | 1355 | 
            	$SED "s?^reportinglevel =.*?reportinglevel = 3?g" $DIR_DG/e2guardianf2.conf
  | 
            1355 | 
            	$SED "s?^reportinglevel =.*?reportinglevel = 3?g" $DIR_DG/e2guardianf2.conf
  | 
          
          
            | 1356 | 
            	$SED "s/^groupname =.*/groupname = 'antimalware & whitelested users'/g" $DIR_DG/e2guardianf2.conf
  | 
            1356 | 
            	$SED "s?^groupname =.*?groupname = 'antimalware + whitelested users'?g" $DIR_DG/e2guardianf2.conf
  | 
          
          
            | 1357 | 
            	$SED "s/\/lists\/bannedurllist'/urllist = 'name=banned,messageno=501,path=\/etc\/e2guardian\/lists\/bannedurllist.default'/g" $DIR_DG/e2guardianf2.conf # no banned urls
  | 
            1357 | 
            	$SED "s?^urllist = 'name=banned,messageno=501,path=/etc/e2guardian/lists/bannedurllist'?urllist = 'name=banned,messageno=501,path=/etc/e2guardian/lists/bannedurllist.default'?g" $DIR_DG/e2guardianf2.conf # no banned urls
  | 
          
          
            | 1358 | 
             
  | 
            1358 | 
             
  | 
          
          
            | 1359 | 
            # create log folder
  | 
            1359 | 
            # create log folder
  | 
          
          
            | 1360 | 
                mkdir -p /var/log/e2guardian
  | 
            1360 | 
                mkdir -p /var/log/e2guardian
  | 
          
          
            | 1361 | 
            	chown -R e2guardian /etc/e2guardian /var/log/e2guardian
  | 
            1361 | 
            	chown -R e2guardian /etc/e2guardian /var/log/e2guardian
  | 
          
          
            | 1362 | 
            } # End of e2guardian()
  | 
            1362 | 
            } # End of e2guardian()
  |