Page 153 - RHEL8 BOOK
P. 153

Step 10: Block file type downloads, below is the example file to deny mp3, mp4, flv avi, 3gp, mpg
          and mpeg.
          [root@server ~]# cat /etc/squid/blockfiles.acl
          \.torrent$
          \.mp3.*$
          \.mp4.*$
          \.3gp.*$
          \.[Aa][Vv][Ii]$
          \.[Mm][Pp][Gg]$
          \.[Mm][Pp][Ee][Gg]$
          \.[Mm][Pp]3$
          \.[Ff][Ll][Vv].*$

          Step 11: Time based access, which deny internet access from morning 10 Hours to 19 Hours
          acl work_hours time 10:00-19:00
          http_access deny work_hours

          Step 12: restricting download speed ACL
          acl speedcontrol src 192.168.4.0/24
          delay_pools 1
          delay_class 1 2
          delay_parameters 1 524288/524288 52428/52428
          delay_access 1 allow speedcontrol

                                                    Client – Linux

          1.     Configuring Proxy Client Text Mode
          [root@comp1 ~]# elinks
                                                 Configuring Proxy
          In Elinks window
               Go to Setup menu and Select Options Manager.
               In the Protocols, select on Http.

               Select the Proxy Configuration option.
               In Host and port number, select Edit.
               Type Proxy IP address and Proxy Port No.
               Then select Save and OK.
               Close’

                                        Configuring Proxy Client – Linux
          Configuring Proxy Client - Graphically
               Open Mozilla / Firefox.
               Go to Edit menu and Select Preferences.
               In the General, click on Connection Settings.
               Select the Manual Proxy Configuration option.
               In the Http Proxy box, type Proxy IP address

               In the Http proxy Port box, type Proxy Port No.


                                                       S. Pradhan
                             (MCA, MBA-IT, BCA, CCNA, MCSA 2012, RHCE, ETHICAL HACKING)
                                             Email Id:-spradhan.iiht@gmail.com
                                                           153
   148   149   150   151   152   153   154   155   156   157   158