Welcome, Guest. Please login or register.
Did you miss your activation email?
+  pfSense Forum
|-+  pfSense English Support» Packages» pfBlocker
Username:
Password:
 
 

Pages: 1 ... 16 17 18 19 [20] 21 22 23 24 ... 45   Go Down
  Print  
Author Topic: pfBlocker  (Read 103796 times)
0 Members and 1 Guest are viewing this topic.
taryezveb
Full Member
***
Offline Offline

Posts: 105


View Profile
« Reply #285 on: December 30, 2011, 02:11:14 pm »

Needed to restart Squid and the got an alert with the error.

EDIT: Every time Squid is restarted is when the error occurs. I was messing with Squid yesterday, but did not put it together until now.
« Last Edit: December 30, 2011, 02:50:58 pm by taryezveb » Logged
marcelloc
Hero Member
*****
Online Online

Posts: 8111



View Profile
« Reply #286 on: December 30, 2011, 02:57:09 pm »

There was a update on squid package today, apply it and see what happens.
Logged

Have I helped you? Donations are always welcome! Grin

Te ajudei? Doações são sempre bem vindas! Grin
taryezveb
Full Member
***
Offline Offline

Posts: 105


View Profile
« Reply #287 on: December 30, 2011, 03:05:10 pm »

There was a update on squid package today, apply it and see what happens.

Squid was reinstalled with the latest version, but still the same.
Logged
marcelloc
Hero Member
*****
Online Online

Posts: 8111



View Profile
« Reply #288 on: December 30, 2011, 03:13:48 pm »

I'll try to reproduce it here.

You get this memory alert once or after squid restart alerts are frequent?
Logged

Have I helped you? Donations are always welcome! Grin

Te ajudei? Doações são sempre bem vindas! Grin
taryezveb
Full Member
***
Offline Offline

Posts: 105


View Profile
« Reply #289 on: December 30, 2011, 03:29:02 pm »

I'll try to reproduce it here.

You get this memory alert once or after squid restart alerts are frequent?

The memory alerts only shows after a Squid restart. After the initial alerts there are no more alerts. At least that is what is occurring here.

Dec 30 15:11:54   php: : There were error(s) loading the rules: /tmp/rules.debug:19: cannot define table pfBlockerTBG: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [19]: table <pfBlockerTBG> persist file "/var/db/aliastables/pfBlockerTBG.txt"

Dec 30 15:11:54   php: : New alert found: There were error(s) loading the rules: /tmp/rules.debug:19: cannot define table pfBlockerTBG: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded The line in question reads [19]: table <pfBlockerTBG> persist file "/var/db/aliastables/pfBlockerTBG.txt"

Dec 30 15:11:46   php: : The command '/sbin/pfctl -o basic -f /tmp/rules.debug' returned exit code '1', the output was '/tmp/rules.debug:19: cannot define table pfBlockerTBG: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded'

Dec 30 15:11:16   php: : There were error(s) loading the rules: /tmp/rules.debug:19: cannot define table pfBlockerTBG: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [19]: table <pfBlockerTBG> persist file "/var/db/aliastables/pfBlockerTBG.txt"

Dec 30 15:11:16   php: : New alert found: There were error(s) loading the rules: /tmp/rules.debug:19: cannot define table pfBlockerTBG: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded The line in question reads [19]: table <pfBlockerTBG> persist file "/var/db/aliastables/pfBlockerTBG.txt"

Dec 30 15:11:07   php: : The command '/sbin/pfctl -o basic -f /tmp/rules.debug' returned exit code '1', the output was '/tmp/rules.debug:19: cannot define table pfBlockerTBG: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded'
Dec 30 15:10:32   php: /pkg_edit.php: Reloading Squid for configuration sync
Dec 30 15:10:32   check_reload_status: Reloading filter
Dec 30 15:10:32   check_reload_status: Syncing firewall
Dec 30 15:10:32   check_reload_status: Reloading filter
Dec 30 15:10:31   php: /pkg_edit.php: Reloading Squid for configuration sync
Logged
taryezveb
Full Member
***
Offline Offline

Posts: 105


View Profile
« Reply #290 on: December 30, 2011, 04:24:09 pm »

When that error occurs, Squid fails to work as a transparent proxy. Squid still works if you manually set the proxy settings in a browser for example. I disabled pfBlocker for now. Will try a few things.
Logged
LEPM
Full Member
***
Offline Offline

Posts: 133


View Profile
« Reply #291 on: December 30, 2011, 04:31:32 pm »

Increase even more Firewall Maximum Table Entries in system->advanced -> firewall/NAT
      not!!!!      Firewall Maximum States Wink
Logged
marcelloc
Hero Member
*****
Online Online

Posts: 8111



View Profile
« Reply #292 on: December 30, 2011, 05:00:55 pm »

PfBlocker use url tables, so it is firewall maximum table entries for sure.

Firewall maximum states are related to active connections. When you reach this value, you can't do anything on firewall.

Logged

Have I helped you? Donations are always welcome! Grin

Te ajudei? Doações são sempre bem vindas! Grin
taryezveb
Full Member
***
Offline Offline

Posts: 105


View Profile
« Reply #293 on: December 30, 2011, 05:04:31 pm »

After trying out a few things all is fine for now. Disabled the TBG List and left the Bluetack enabled. Also in System -> Advanced -> Firewall and NAT; Firewall Maximum Table Entries, removed that large number[9999999999999999] from there. Restarted pfBlocker and now there are no error messages and Squid works as transparent proxy, even with pfBlocker enabled. So it seems the TBG list is the cause of all these issues I was having.

TBG list:

http://list.iblocklist.com/?list=ijfqtofzixtwayqovmxn&fileformat=p2p&archiveformat=gz
http://list.iblocklist.com/?list=ecqbsykllnadihkdirsh&fileformat=p2p&archiveformat=gz
http://list.iblocklist.com/?list=tbnuqfclfkemqivekikv&fileformat=p2p&archiveformat=gz
http://list.iblocklist.com/?list=ewqglwibdgjttwttrinl&fileformat=p2p&archiveformat=gz

Bluetack list:

http://list.iblocklist.com/?list=bt_level1&fileformat=p2p&archiveformat=gz
http://list.iblocklist.com/?list=bt_level2&fileformat=p2p&archiveformat=gz
http://list.iblocklist.com/?list=bt_level3&fileformat=p2p&archiveformat=gz
http://list.iblocklist.com/?list=bt_ads&fileformat=p2p&archiveformat=gz
http://list.iblocklist.com/?list=bt_spyware&fileformat=p2p&archiveformat=gz
http://list.iblocklist.com/?list=bt_proxy&fileformat=p2p&archiveformat=gz
http://list.iblocklist.com/?list=bt_templist&fileformat=p2p&archiveformat=gz
http://list.iblocklist.com/?list=bt_hijacked&fileformat=p2p&archiveformat=gz
http://list.iblocklist.com/?list=bt_dshield&fileformat=p2p&archiveformat=gz
http://list.iblocklist.com/?list=bt_bogon&fileformat=p2p&archiveformat=gz
Logged
marcelloc
Hero Member
*****
Online Online

Posts: 8111



View Profile
« Reply #294 on: December 30, 2011, 05:14:40 pm »

You may try if you want add each TBG list until you find what list get errors.
Logged

Have I helped you? Donations are always welcome! Grin

Te ajudei? Doações são sempre bem vindas! Grin
taryezveb
Full Member
***
Offline Offline

Posts: 105


View Profile
« Reply #295 on: December 30, 2011, 05:43:09 pm »

You may try if you want add each TBG list until you find what list get errors.

Yes, I'm going to try that. I might spring for the i-block lists, need to do some research on that. Are the i-block lists any better than the public lists?
Logged
taryezveb
Full Member
***
Offline Offline

Posts: 105


View Profile
« Reply #296 on: December 30, 2011, 07:10:34 pm »

Did some testing.

With the following in the TBG list, whenever I try to enable them[one at a time], get the Fatal error below.

http://list.iblocklist.com/?list=ijfqtofzixtwayqovmxn&fileformat=p2p&archiveformat=gz
http://list.iblocklist.com/?list=ecqbsykllnadihkdirsh&fileformat=p2p&archiveformat=gz

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8650655 bytes) in /usr/local/pkg/pfblocker.inc on line 268

Note, the Bluetack list is still enabled. When testing the above.
Logged
marcelloc
Hero Member
*****
Online Online

Posts: 8111



View Profile
« Reply #297 on: December 30, 2011, 07:15:03 pm »

the total download exceeds php memory limit.

try to apply one list at time
Logged

Have I helped you? Donations are always welcome! Grin

Te ajudei? Doações são sempre bem vindas! Grin
taryezveb
Full Member
***
Offline Offline

Posts: 105


View Profile
« Reply #298 on: December 30, 2011, 07:21:46 pm »

the total download exceeds php memory limit.

try to apply one list at time
Quote from: taryezveb
whenever I try to enable them[one at a time]
I did, or do you mean something else?
Logged
marcelloc
Hero Member
*****
Online Online

Posts: 8111



View Profile
« Reply #299 on: December 30, 2011, 07:26:35 pm »

I mean that.  Sorry, I didn't saw the "[one at a time]"
Logged

Have I helped you? Donations are always welcome! Grin

Te ajudei? Doações são sempre bem vindas! Grin
Pages: 1 ... 16 17 18 19 [20] 21 22 23 24 ... 45   Go Up
  Print  
 
Jump to:  

 

Page created in 0.036 seconds with 20 queries.