Re: pf problem with table

2006-04-20 Thread Reinhold Platzoeder
On Thu, 20 Apr 2006 09:21:40 +0200
[EMAIL PROTECTED] (Peter N. M. Hansteen) wrote:

 Reinhold Platzoeder [EMAIL PROTECTED] writes:
 
  My problem looks like the file is to big to be loaded into pf
  My firewall stops responding when the file has about 7000 IPs in it
  The old file has 104450 IPs in it and I would like to block them
 
 You could try manipulating the table entries limits, ie
 
 set limit table-entries 15
 
 in your pf.conf would set the upper limit for number of entries in a
 table to 15.
 

Hi

When I add this option I get a Syntax error
I have added it like this
set limit table-entries 15
and then i tried
set limit { states 1, frags 5000, table-entries 15 }

both times I get
pfctl: Bad pool name.
/etc/pf.conf:25: unable to set limit table-entries 15
pfctl: Syntax error in config file: pf rules not loaded


I also tried lowering the number with no success 



-- 
Reinhold Platzoeder

[EMAIL PROTECTED]
[EMAIL PROTECTED]

http://www.violetlan.net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


pf problem with table

2006-04-19 Thread Reinhold Platzoeder
Hi

I have a problem with FreeBSD 6 and pf
I am trying to load a 1.7M file in to pf using a tables
but I get this error

/etc/pf.conf:22: cannot define table p2pblock: Cannot allocate memory
pfctl: Syntax error in config file: pf rules not loaded

the table config in pf.conf is
table p2pblock persist file /etc/pfdata/blocklist-p2p
block in log quick on $ext_if from p2pblock to any

I have tried it on two different machines and both gives me the same
error 

everything works when I comment these two lines out

Any ideas as to what i'm doing wrong?

Thanks

-- 
Reinhold Platzoeder

[EMAIL PROTECTED]
[EMAIL PROTECTED]

http://www.violetlan.net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pf problem with table

2006-04-19 Thread Reinhold Platzoeder
On Wed, 19 Apr 2006 07:41:33 -0400
fbsd [EMAIL PROTECTED] wrote:

 Error msg means there is something wrong with the content of
 /etc/pfdata/blocklist-p2p
 
 check that there are no blank lines in that file.
 
 make file with only ten entries and test.
 Then add more content until you break it.
 maybe 1.7 MB file size is to large for max table size
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Reinhold
 Platzoeder
 Sent: Wednesday, April 19, 2006 2:17 AM
 To: freebsd-questions@freebsd.org
 Subject: pf problem with table
 
 
 Hi
 
 I have a problem with FreeBSD 6 and pf
 I am trying to load a 1.7M file in to pf using a tables
 but I get this error
 
 /etc/pf.conf:22: cannot define table p2pblock: Cannot allocate
 memory
 pfctl: Syntax error in config file: pf rules not loaded
 
 the table config in pf.conf is
 table p2pblock persist file /etc/pfdata/blocklist-p2p
 block in log quick on $ext_if from p2pblock to any
 
 I have tried it on two different machines and both gives me the same
 error
 
 everything works when I comment these two lines out
 
 Any ideas as to what i'm doing wrong?
 
 Thanks
 
 --
 Reinhold Platzoeder
 
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 
 http://www.violetlan.net
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

Hi

My problem looks like the file is to big to be loaded into pf
My firewall stops responding when the file has about 7000 IPs in it
The old file has 104450 IPs in it and I would like to block them

Does anyone know how I can get this file to load into pf without
killing my machine?

Here is my top stats
last pid:  4899;  load averages:  0.00,  0.00,  0.00  up 1+02:06:53
01:23:55 30
processes:  1 running, 29 sleeping CPU states:  0.0% user, 0.0% nice,
0.0% system,  1.6% interrupt, 98.4% idle
Mem: 13M Active, 4884K Inact, 23M Wired, 2852K Cache, 13M Buf, 9788K
Free
Swap: 512M Total, 5364K Used, 507M Free, 1% Inuse

Thanks

-- 
Reinhold Platzoeder

[EMAIL PROTECTED]
[EMAIL PROTECTED]

http://www.violetlan.net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mouse scroll up problem

2006-04-18 Thread Reinhold Platzoeder
On Wed, 19 Apr 2006 05:23:23 +0600
[EMAIL PROTECTED] wrote:

  I have FreeBSD 6.0-RELEASE and optical Microsoft IntelliMouse 
  Explorer, USB native, plugged to PS/2 port via it's own
  USB-PS/2 adaptor.
  When I scroll my mouse wheel up in X11 it acts like scroll up
  + left button one/double-click. For example, in Opera,
  Firefox. In MS Windows mouse works correctly.
 
  I am running the same mouse in the same way on the same release. 
 
  I have changed settings as Pete advised. Both variants (old and
  new) are working (scrolling) but described effect remains.
  Why I think that scrolling up works as scroll + left click: for 
  example, in Opera scrolling up at the top of document (when real 
  scroll is impossible) result in marking the word under cursor and 
  appearing context menu for very short time.
 
  I've been having the same problem since updating to Xorg 6.9.0 two 
  months ago. Before that, this problem did not exist for me. Here
  are a couple examples of what I see with use:
 
  I know it's only a workaround and not a solution, but at least
  until you're able to get the rodent behaving the way you like, you
  can change the setting in Thunderbird preferences.
  
  In v1.5:
  Edit -- Preferences -- Advanced
  [Check box]  Wait XX seconds before marking a message as read
  (2nd item down)
 
 Effect disappears when mouse is plugged to USB port directly, without 
 adapter. Besides that with ums(4) buttons 6 and 7 works although it
 has the same affect as button 1.
 But there is no ability to power off USB port at the moment it seems
 (http://lists.freebsd.org/pipermail/freebsd-usb/2005-December/001756.html). 
 PS/2 advantage: 'killall moused' results in turning mouse off, for
 USB it doesn't.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

Maybe this might help you 
These are my usb mouse settings 

/etc/rc.conf
moused_enable=NO

/etc/X11/xorg.conf
Section InputDevice
Identifier  Mouse0
Driver  mouse
Option  Protocol Auto
Option  Device /dev/sysmouse
EndSection

~/.xinitrc
xmodmap -e pointer = 1 2 3 4 5 8 9 6 7 10 11

With this config I have no problems
except that when I spin my mouse wheel really fast in firefox or opera
it opens a new page when it goes over a link

All I do now is to scroll more patiently if I want to move fast from the
top of a page to the bottom I use the keyboard

-- 
Reinhold Platzoeder

[EMAIL PROTECTED]
[EMAIL PROTECTED]

http://www.violetlan.net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Apache gives a Segmentation fault

2006-04-14 Thread Reinhold Platzoeder
Hi

I have some troubles with apache22

When I run phpinfo() I get a Segmentation fault (11)

apache-2.2.0_7
php5-5.1.2_1 
php5-bz2-5.1.2_1
php5-calendar-5.1.2_1
php5-ctype-5.1.2_1
php5-dom-5.1.2_1
php5-filepro-5.1.2_1
php5-ftp-5.1.2_1
php5-gd-5.1.2_1
php5-gettext-5.1.2_1
php5-iconv-5.1.2_1
php5-imap-5.1.2_1
php5-ldap-5.1.2_1
php5-mbstring-5.1.2_1
php5-mcrypt-5.1.2_1
php5-mhash-5.1.2_1
php5-ming-5.1.2_1
php5-mysql-5.1.2_1
php5-mysqli-5.1.2_1
php5-openssl-5.1.2_1
php5-pcre-5.1.2_1
php5-posix-5.1.2_1
php5-pspell-5.1.2_1
php5-session-5.1.2_1
php5-simplexml-5.1.2_1
php5-sockets-5.1.2_1
php5-tidy-5.1.2_1
php5-xml-5.1.2_1
php5-xmlreader-5.1.2_1
php5-xmlwriter-5.1.2_1
php5-zlib-5.1.2_1

# uname -a
FreeBSD scurvy.violetlan.net 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #2:
Wed Mar 29 21:01:05 CEST 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

I get this in the http-error.log
[Fri Apr 14 14:46:34 2006] [notice] child pid 51241 exit signal
Segmentation fault (11)

When you open http://www.violetlan.net/phpinfo.php it only loads half
the page.

I have install phpMyAdmin, postfixadmin and squirrelmail-devel and they
are all working with no problems.

The http.conf is the default from the installation and I have in my
/etc/rc.conf
apache22_enable=YES
apache22_http_accept_enable=YES

and in my /boot/loader.conf
accf_http_load=yes

I made some changes to
my /usr/local/etc/apache22/extra/httpd-default.conf where I increased
the timeout to 600
MaxKeepAliveRequests to 500 and
KeepAliveTimeout to 15

Please help me to find and fix this problem
Thanks

-- 
Reinhold Platzoeder

[EMAIL PROTECTED]
[EMAIL PROTECTED]

http://www.violetlan.net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


convert cyrus mail to courier mail

2006-04-03 Thread Reinhold Platzoeder
Hi

I have changed my mail server to use courier-IMAP

I would like to import all the old mail that was using cyrus
I have tried cyrus2courier and mb2md but with no luck

my old mail is under
/var/imap/spool/user/reinhold --- cyrus-IMAP

and I would like to import it to
/usr/local/virtual/[EMAIL PROTECTED]/ --- courier-IMAP

any idea as how I will do this?

Thanks

-- 
Reinhold Platzoeder

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


phpmyadmin and Access denied

2006-04-02 Thread Reinhold Platzoeder
Hi

I have a weird problem here

I have installed phpMyAdmin 2.8.0.2 from port

Apache version = apache-2.2.0_7
PHP version = php5-5.1.2_1
MySQL version = mysql-server-5.0.19


When I go to the index page I get the following error

#1045 - Access denied for user 'root'@'localhost' (using password: NO)

I have configured the config.inc.php file and this is whats in it

 cat config.inc.php
?php
/* $FreeBSD: ports/databases/phpmyadmin/files/config.inc.php.sample,v
1.1 2005/12/05 11:37:27 garga Exp $ *
 * Skeleton configuration file -- this file is empty on a fresh
 * installaton of phpmyadmin.
 * 
 * Copy any settings you want to override from config.defaults.php
 * 
 */
$cfg['PmaAbsoluteUri'] = 'http://www.violetlan.net/phpmyadmin/';

$cfg['blowfish_secret'] = 'whatever';

$cfg['Servers'][$i]['host']  = 'localhost';

$cfg['Servers'][$i]['auth_type'] = 'cookie';

$cfg['Servers'][$i]['user']  = 'root';

$cfg['Servers'][$i]['password']  = '';

$cfg['Servers'][$i]['connect_type']  = 'socket';

$cfg['Servers'][$i]['socket']= '/tmp/mysql.sock';

?

Now the funny thing is that when I change the root password to having no
password I can get into phpmyadmin

Any ideas as to how I can fix this?

Thanks

-- 
Reinhold Platzoeder

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: phpmyadmin and Access denied

2006-04-02 Thread Reinhold Platzoeder
On Sun, 2 Apr 2006 17:51:50 -0500
Gerard Seibert [EMAIL PROTECTED] wrote:

 Nicolas Blais wrote:
 
  On Sunday 02 April 2006 18:18, Reinhold Platzoeder wrote:
   Hi
  
   I have a weird problem here
  
   I have installed phpMyAdmin 2.8.0.2 from port
  
   Apache version = apache-2.2.0_7
   PHP version = php5-5.1.2_1
   MySQL version = mysql-server-5.0.19
  
  
   When I go to the index page I get the following error
  
   #1045 - Access denied for user 'root'@'localhost' (using password:
   NO)
  
   I have configured the config.inc.php file and this is whats in it
  
cat config.inc.php
  
   ?php
   /* $FreeBSD:
   ports/databases/phpmyadmin/files/config.inc.php.sample,v 1.1
   2005/12/05 11:37:27 garga Exp $ *
* Skeleton configuration file -- this file is empty on a fresh
* installaton of phpmyadmin.
*
* Copy any settings you want to override from config.defaults.php
*
*/
   $cfg['PmaAbsoluteUri'] = 'http://www.violetlan.net/phpmyadmin/';
  
   $cfg['blowfish_secret'] = 'whatever';
  
   $cfg['Servers'][$i]['host']  = 'localhost';
  
   $cfg['Servers'][$i]['auth_type'] = 'cookie';
  
   $cfg['Servers'][$i]['user']  = 'root';
  
   $cfg['Servers'][$i]['password']  = '';
  
   $cfg['Servers'][$i]['connect_type']  = 'socket';
  
   $cfg['Servers'][$i]['socket']= '/tmp/mysql.sock';
  
   ?
  
   Now the funny thing is that when I change the root password to
   having no password I can get into phpmyadmin
  
   Any ideas as to how I can fix this?
  
   Thanks
 
  Try generating your config.inc.php from
  http://www.violetlan.net/phpmyadmin/scripts/setup.php
 
  instead of making one. I had the same problem after an update from
  2.7 to 2.8 and this fixed it.
 
  Nicolas.
 
 Make this change:
 
 $cfg['Servers'][$i]['auth_type'] = 'http';
 
 I have that in my config file with a blank password field. It works 
 fine.
 

Thanks
I was not aware of the setup script
That worked for me

-- 
Reinhold Platzoeder

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]