Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Editing the squidguard error pages in pfsense

    Scheduled Pinned Locked Moved Cache/Proxy
    11 Posts 4 Posters 2.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      networknut
      last edited by

      Hello can anyone tell me what directory i would find the squid guard error pages in the pfsense shell so that i may edit them.

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        There are several hits about this if you use the forum's Search function…

        /usr/local/www/sgerror.php

        1 Reply Last reply Reply Quote 0
        • N
          networknut
          last edited by

          *** Welcome to pfSense 2.2.6-RELEASE-pfSense (i386) on localhost ***
          
           WAN (wan)       -> bge0_vlan2 -> v4/DHCP4: 24.**.**.***.*/20
           LAN (lan)       -> bge0_vlan1 -> v4: 10.***.**.*/24
           WAN2 (opt1)     -> bge0_vlan5 -> v4/DHCP4: 24.**.***.**/20
           0) Logout (SSH only)                  9) pfTop
           1) Assign Interfaces                 10) Filter Logs
           2) Set interface(s) IP address       11) Restart webConfigurator
           3) Reset webConfigurator password    12) pfSense Developer Shell
           4) Reset to factory defaults         13) Upgrade from console
           5) Reboot system                     14) Disable Secure Shell (sshd)
           6) Halt system                       15) Restore recent configuration
           7) Ping host                         16) Restart PHP-FPM
           8) Shell
          
          Enter an option: 8
          
          [2.2.6-RELEASE][admin@localhost]/root: cd /
          [2.2.6-RELEASE][admin@localhost]/: ls
          .snap        boot.config  dist         libexec      root         usr
          .sujournal   cf           etc          media        sbin         var
          COPYRIGHT    conf         home         mnt          scripts
          bin          conf.default kernels      proc         tank
          boot         dev          lib          rescue       tmp
          [2.2.6-RELEASE][admin@localhost]/: cd usr
          [2.2.6-RELEASE][admin@localhost]/usr: ls
          bin     lib     lib32   libexec local   obj     pbi     sbin    share
          [2.2.6-RELEASE][admin@localhost]/usr:
          
          

          so where exactly is this "local" folder at?

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by

            If you want/need to look at file-system stuff then you can use option (8) do drop to the command line and then use "normal" FreeBSD *nix-style commands to get around.
            The webGUI also has Diagnostics->Edit file - that allows you to view and edit the content of text-based files.

            Disclaimer: For normal operation of pfSense you DO NOT need to change any files with an editor. It is all done from the GUI. YOU are responsible for what happens (good or bad) if you edit files by hand.

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

            1 Reply Last reply Reply Quote 0
            • KOMK
              KOM
              last edited by

              You can also install the File Manager package to get a PHP-based GUI if you don't like the console.

              1 Reply Last reply Reply Quote 0
              • N
                networknut
                last edited by

                _**ASKS WHERE THE LOCATION OF A PARTICULAR FILE IS

                GETS RESPONSE DETAILING HOW TO BROWSE THE FILE SYSTEM INSTEAD OF LOCATION OF FILE**_

                1 Reply Last reply Reply Quote 0
                • C
                  cmb
                  last edited by

                  The first response gave you the file. Your reply asking where local is shows that local was right there in your posted output. People from there tried to help you browse a file system since you proved incapable of doing so. Then you're somehow offended by people telling you how to do what you were failing to do?

                  1 Reply Last reply Reply Quote 0
                  • N
                    networknut
                    last edited by

                    Even so, the file "sgerror.php" or anything pertaining to it in any matter seems to be non-existant

                    [2.2.6-RELEASE][admin@localhost]/usr/local/www: ls
                    apple-touch-icon.png
                    bandwidth_by_ip.php
                    carp_status.php
                    classes
                    code-syntax-highlighter
                    crash_reporter.php
                    csrf
                    css
                    diag_arp.php
                    diag_authentication.php
                    diag_backup.php
                    diag_confbak.php
                    diag_defaults.php
                    diag_dns.php
                    diag_dump_states.php
                    diag_dump_states_sources.php
                    diag_gmirror.php
                    diag_ipsec.php
                    diag_ipsec_leases.php
                    diag_ipsec_sad.php
                    diag_ipsec_spd.php
                    diag_limiter_info.php
                    diag_logs.php
                    diag_logs_auth.php
                    diag_logs_dhcp.php
                    diag_logs_filter.php
                    diag_logs_filter_dynamic.php
                    diag_logs_filter_summary.php
                    diag_logs_gateways.php
                    diag_logs_ipsec.php
                    diag_logs_ntpd.php
                    diag_logs_openvpn.php
                    diag_logs_ppp.php
                    diag_logs_relayd.php
                    diag_logs_resolver.php
                    diag_logs_routing.php
                    diag_logs_settings.php
                    diag_logs_vpn.php
                    diag_logs_wireless.php
                    diag_nanobsd.php
                    diag_ndp.php
                    diag_packet_capture.php
                    diag_patterns.php
                    diag_pf_info.php
                    diag_ping.php
                    diag_pkglogs.php
                    diag_resetstate.php
                    diag_routes.php
                    diag_smart.php
                    diag_sockets.php
                    diag_states_summary.php
                    diag_system_activity.php
                    diag_system_pftop.php
                    diag_tables.php
                    diag_testport.php
                    diag_traceroute.php
                    easyrule.php
                    edit.php
                    exec.php
                    favicon.ico
                    fbegin.inc
                    fend.inc
                    filebrowser
                    firewall_aliases.php
                    firewall_aliases_edit.php
                    firewall_aliases_import.php
                    firewall_nat.php
                    firewall_nat_1to1.php
                    firewall_nat_1to1_edit.php
                    firewall_nat_edit.php
                    firewall_nat_npt.php
                    firewall_nat_npt_edit.php
                    firewall_nat_out.php
                    firewall_nat_out_edit.php
                    firewall_rules.php
                    firewall_rules_edit.php
                    firewall_schedule.php
                    firewall_schedule_edit.php
                    firewall_shaper.php
                    firewall_shaper_layer7.php
                    firewall_shaper_queues.php
                    firewall_shaper_vinterface.php
                    firewall_shaper_wizards.php
                    firewall_virtual_ip.php
                    firewall_virtual_ip_edit.php
                    getserviceproviders.php
                    getstats.php
                    graph.php
                    graph_cpu.php
                    green_dot.jpg
                    gui.css
                    guiconfig.inc
                    halt.php
                    head.inc
                    headjs.php
                    help.php
                    ifstats.php
                    includes
                    index.php
                    interfaces.php
                    interfaces_assign.php
                    interfaces_bridge.php
                    interfaces_bridge_edit.php
                    interfaces_gif.php
                    interfaces_gif_edit.php
                    interfaces_gre.php
                    interfaces_gre_edit.php
                    interfaces_groups.php
                    interfaces_groups_edit.php
                    interfaces_lagg.php
                    interfaces_lagg_edit.php
                    interfaces_ppps.php
                    interfaces_ppps_edit.php
                    interfaces_qinq.php
                    interfaces_qinq_edit.php
                    interfaces_vlan.php
                    interfaces_vlan_edit.php
                    interfaces_wireless.php
                    interfaces_wireless_edit.php
                    javascript
                    license.php
                    load_balancer_monitor.php
                    load_balancer_monitor_edit.php
                    load_balancer_pool.php
                    load_balancer_pool_edit.php
                    load_balancer_setting.php
                    load_balancer_virtual_server.php
                    load_balancer_virtual_server_edit.php
                    logobig.jpg
                    niftycssCode.css
                    niftycssprintCode.css
                    pkg.php
                    pkg_edit.php
                    pkg_mgr.php
                    pkg_mgr_install.php
                    pkg_mgr_installed.php
                    pkg_mgr_settings.php
                    protochart
                    reboot.php
                    restart_httpd.php
                    services_captiveportal.php
                    services_captiveportal_filemanager.php
                    services_captiveportal_hostname.php
                    services_captiveportal_hostname_edit.php
                    services_captiveportal_ip.php
                    services_captiveportal_ip_edit.php
                    services_captiveportal_mac.php
                    services_captiveportal_mac_edit.php
                    services_captiveportal_vouchers.php
                    services_captiveportal_vouchers_edit.php
                    services_captiveportal_zones.php
                    services_captiveportal_zones_edit.php
                    services_dhcp.php
                    services_dhcp_edit.php
                    services_dhcp_relay.php
                    services_dhcpv6.php
                    services_dhcpv6_edit.php
                    services_dhcpv6_relay.php
                    services_dnsmasq.php
                    services_dnsmasq_domainoverride_edit.php
                    services_dnsmasq_edit.php
                    services_dyndns.php
                    services_dyndns_edit.php
                    services_igmpproxy.php
                    services_igmpproxy_edit.php
                    services_ntpd.php
                    services_ntpd_gps.php
                    services_ntpd_pps.php
                    services_rfc2136.php
                    services_rfc2136_edit.php
                    services_router_advertisements.php
                    services_snmp.php
                    services_unbound.php
                    services_unbound_acls.php
                    services_unbound_advanced.php
                    services_unbound_domainoverride_edit.php
                    services_unbound_host_edit.php
                    services_wol.php
                    services_wol_edit.php
                    shortcuts
                    shortcuts.inc
                    squidGuard
                    squid_clwarn.php
                    squid_log_parser.php
                    squid_monitor.php
                    squid_monitor_data.php
                    stats.php
                    status.php
                    status_captiveportal.php
                    status_captiveportal_expire.php
                    status_captiveportal_test.php
                    status_captiveportal_voucher_rolls.php
                    status_captiveportal_vouchers.php
                    status_dhcp_leases.php
                    status_dhcpv6_leases.php
                    status_filter_reload.php
                    status_gateway_groups.php
                    status_gateways.php
                    status_graph.php
                    status_graph_cpu.php
                    status_interfaces.php
                    status_lb_pool.php
                    status_lb_vs.php
                    status_ntpd.php
                    status_openvpn.php
                    status_queues.php
                    status_rrd_graph.php
                    status_rrd_graph_img.php
                    status_rrd_graph_settings.php
                    status_services.php
                    status_upnp.php
                    status_wireless.php
                    system.php
                    system_advanced_admin.php
                    system_advanced_firewall.php
                    system_advanced_misc.php
                    system_advanced_network.php
                    system_advanced_notifications.php
                    system_advanced_sysctl.php
                    system_authservers.php
                    system_camanager.php
                    system_certmanager.php
                    system_crlmanager.php
                    system_firmware.php
                    system_firmware_auto.php
                    system_firmware_check.php
                    system_firmware_restorefullbackup.php
                    system_firmware_settings.php
                    system_gateway_groups.php
                    system_gateway_groups_edit.php
                    system_gateways.php
                    system_gateways_edit.php
                    system_groupmanager.php
                    system_groupmanager_addprivs.php
                    system_hasync.php
                    system_routes.php
                    system_routes_edit.php
                    system_usermanager.php
                    system_usermanager_addprivs.php
                    system_usermanager_passwordmg.php
                    system_usermanager_settings.php
                    system_usermanager_settings_ldapacpicker.php
                    system_usermanager_settings_test.php
                    themes
                    tree
                    tree-images
                    treeview.css
                    uploadconfig.php
                    vpn_ipsec.php
                    vpn_ipsec_keys.php
                    vpn_ipsec_keys_edit.php
                    vpn_ipsec_mobile.php
                    vpn_ipsec_phase1.php
                    vpn_ipsec_phase2.php
                    vpn_ipsec_settings.php
                    vpn_l2tp.php
                    vpn_l2tp_users.php
                    vpn_l2tp_users_edit.php
                    vpn_openvpn_client.php
                    vpn_openvpn_csc.php
                    vpn_openvpn_server.php
                    vpn_pppoe.php
                    vpn_pppoe_edit.php
                    vpn_pptp.php
                    vpn_pptp_users.php
                    vpn_pptp_users_edit.php
                    widgets
                    wizard.php
                    wizards
                    xmlrpc.php
                    [2.2.6-RELEASE][admin@localhost]/usr/local/www: cd squidGuard
                    [2.2.6-RELEASE][admin@localhost]/usr/local/www/squidGuard: ls
                    [2.2.6-RELEASE][admin@localhost]/usr/local/www/squidGuard:
                    
                    
                    1 Reply Last reply Reply Quote 0
                    • KOMK
                      KOM
                      last edited by

                      find / -name sgerror.php
                      

                      Act like an ass and nobody will help you.

                      Did you install the squidGuard package, or squidGuard-devel?  Which squid package do you have installed?

                      1 Reply Last reply Reply Quote 0
                      • N
                        networknut
                        last edited by

                        Just the squid guard package

                        1 Reply Last reply Reply Quote 0
                        • KOMK
                          KOM
                          last edited by

                          You have squidGuard but not squid?  squidGuard relies on squid and won't do much without it.  Did you search for the file using the command I gave you?  Weird that it wasn't in the default location.  You could try removing the package and then reinstalling it.  Worst case, me or someone else can upload the file for you to grab and put where it belongs.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.