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

    Squid - transparent proxy does not work after midnight

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 2 Posters 1.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.
    • ?
      A Former User
      last edited by

      hi every1,

      i am using squid 2.7.9 on pfsense 2.1. works fine. i enabled the transparent proxy mode. works fine!

      but after midnight (my internet connection gets reset at 0.00) the transparent proxy feature doesn't work anymore.

      system logs says:

      Mar 27 00:00:00 check_reload_status: Configuring interface wan
      Mar 27 00:00:03 php: rc.interfaces_wan_configure: Starting 3gstats.php on device '' for interface 'opt2'
      Mar 27 00:00:03 php: rc.interfaces_wan_configure: Starting 3gstats.php on device '' for interface 'wan'
      Mar 27 00:00:03 check_reload_status: Rewriting resolv.conf
      Mar 27 00:00:11 php: rc.newwanip: ROUTING: setting default route to 80.228.21.98
      Mar 27 00:00:18 php: rc.newwanip: Resyncing OpenVPN instances for interface WAN.
      Mar 27 00:00:18 php: rc.newwanip: Resyncing OpenVPN instances for interface WAN2.
      Mar 27 00:00:18 php: rc.newwanip: Creating rrd update script
      Mar 27 00:00:18 kernel: ovpnc1: link state changed to DOWN
      Mar 27 00:00:18 check_reload_status: Reloading filter
      Mar 27 00:00:19 php: rc.newwanip: The command '/sbin/route -q delete 10.0.10.6' returned exit code '1', the output was 'route: writing to routing socket: No such process'
      Mar 27 00:00:19 php: rc.newwanip: Creating rrd update script
      Mar 27 00:00:19 kernel: ovpnc1: link state changed to UP
      Mar 27 00:00:19 check_reload_status: rc.newwanip starting ovpnc1
      Mar 27 00:00:20 php: rc.newwanip: pfSense package system has detected an ip change 37.138.47.109 -> 91.97.122.13 … Restarting packages.
      Mar 27 00:00:20 check_reload_status: Starting packages
      Mar 27 00:00:21 php: rc.newwanip: pfSense package system has detected an ip change 85.16.206.244 -> 91.97.163.137 ... Restarting packages.
      Mar 27 00:00:21 php: rc.newwanip: rc.newwanip: Informational is starting ovpnc1.
      Mar 27 00:00:21 php: rc.newwanip: rc.newwanip: on (IP address: 10.0.10.6) (interface: ) (real interface: ovpnc1).
      Mar 27 00:00:21 php: rc.newwanip: pfSense package system has detected an ip change -> 10.0.10.6 ... Restarting packages.
      Mar 27 00:00:23 php: rc.start_packages: Restarting/Starting all packages.
      Mar 27 00:00:25 php: rc.start_packages: Reloading Squid for configuration sync
      Mar 27 00:00:25 php: rc.start_packages: Reloading Squid for configuration sync
      Mar 27 00:00:26 php: rc.start_packages: Reloading Squid for configuration sync
      Mar 27 00:00:26 php: rc.start_packages: Not calling package sync code for dependency squid of squid because some include files are missing.
      Mar 27 00:00:26 php: rc.start_packages: Reloading Squid for configuration sync
      Mar 27 00:00:26 php: rc.start_packages: Reloading Squid for configuration sync
      Mar 27 00:00:26 php: rc.start_packages: Reloading Squid for configuration sync
      Mar 27 00:00:27 php: rc.start_packages: Reloading Squid for configuration sync
      Mar 27 00:00:31 squid[38598]: Squid Parent: child process 39229 exited with status 0
      Mar 27 00:00:31 php: rc.filter_configure_sync: SQUID is installed but not started. Not installing "nat" rules.
      Mar 27 00:00:31 php: rc.filter_configure_sync: SQUID is installed but not started. Not installing "pfearly" rules.
      Mar 27 00:00:31 php: rc.filter_configure_sync: SQUID is installed but not started. Not installing "filter" rules.
      Mar 27 00:00:32 php: rc.start_packages: The command '/usr/local/etc/rc.d/squid.sh stop' returned exit code '1', the output was ''
      Mar 27 00:00:33 Squid_Alarm[66896]: Squid has exited. Reconfiguring filter.
      Mar 27 00:00:33 Squid_Alarm[67207]: Attempting restart…
      Mar 27 00:00:33 squid[68525]: Squid Parent: child process 69139 started
      Mar 27 00:00:36 Squid_Alarm[88114]: Reconfiguring filter…
      Mar 27 00:00:37 Squid_Alarm[89998]: Squid has resumed. Reconfiguring filter.

      after i hit the save button on the proxy server config page the transparent proxy works again and the system logs say:

      Mar 27 07:16:57 php: /pkg_edit.php: Reloading Squid for configuration sync
      Mar 27 07:16:57 check_reload_status: Reloading filter
      Mar 27 07:16:57 check_reload_status: Syncing firewall
      Mar 27 07:16:58 php: /pkg_edit.php: Reloading Squid for configuration sync

      telling IE the proxyserver and port works all the time.

      so it seems that squid looses the filter configuration after midnight (as the systemlogs say). but why is that happening and how can i fix this. reinstalling the squid package didn't solve the problem :-(

      any ideas??
      i appreciate any help.

      1 Reply Last reply Reply Quote 0
      • marcellocM
        marcelloc
        last edited by

        you can work around this situation by installing cron package and calling squid_reconfigure() php package function to force new ip on squid config file.

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User
          last edited by

          how do i call squid_reconfigure().php through cron?
          i didn't find any files:

          find / -name "*squid*.php"
          

          searching for proxy only gives me these files:
          /usr/local/www/services_igmpproxy_edit.php
          /usr/local/www/services_igmpproxy.php

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