grok not parsing tcpdump output

2008-08-20 Thread Reinhold
Hi

I'm trying to get grok to parse tcpdump output from port scanners but for
some reason I can't get it to work.

This is what I have in my grok.conf
exec tcpdump -li rl0 -n 2 /dev/null {
  type ssh-connect {
match = %IP:SRC%.\d+  %IP:DST%.22: S;
reaction = echo 'ssh-connect: %IP:SRC% - %IP:DST%' 
/var/log/sshconnect;
  };
  type port-scan {
match = %IP:SRC%.%PORT%  %IP:DST%.%PORT:DST%: S;
key = %IP:SRC%;
threshold = 5;
interval = 5;
reaction = echo 'Port scan from %IP:SRC%'  /var/log/portscan;
  };
};

The ssh part of it works, I get all the goodies in the sshconnect file but
when I run nmap against the system the portscan file stays empty.

Any one that can help me with this please?

Thanks
Reinhold

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


can't get skype to work

2008-08-07 Thread Reinhold
Hi

I've just installed FreeBSD7-STABLE on my laptop and its running very nicely.

I tried to get skype working I keep getting core dumps

Here is the output from skype

*** glibc detected *** skype: double free or corruption (!prev):
0x0944a7b8 ***
=== Backtrace: =
/lib/libc.so.6[0x29710c88]
/lib/libc.so.6(cfree+0x90)[0x29714230]
/lib/libc.so.6(closedir+0x28)[0x29734cf8]
/usr/lib/libfontconfig.so.1(FcDirScan+0x1f2)[0x2946e21d]
/usr/lib/libfontconfig.so.1(FcConfigBuildFonts+0x94)[0x29468d51]
/usr/lib/libfontconfig.so.1(FcInitLoadConfigAndFonts+0x26)[0x294700b3]
/usr/lib/libfontconfig.so.1(FcInit+0x2e)[0x294702b0]
skype[0x8980276]
skype[0x89385c9]
skype[0x893918e]
skype[0x822c73e]
skype[0x8053bc2]
/lib/libc.so.6(__libc_start_main+0xdc)[0x296bedec]
skype(__gxx_personality_v0+0x1e5)[0x8053841]
=== Memory map: 
08048000-0929b000 rwxp 01362000 00:00 834161 /usr/local/bin/skype
0929b000-093aa000 rwxp 01362000 00:00 834161 /usr/local/bin/skype
093aa000-09514000 rwxp 0016a000 00:00 0
2929b000-292b4000 r-xp 0001e000 00:00 72522
/usr/compat/linux/lib/ld-2.5.so
292b4000-292b5000 r-xp 0001e000 00:00 72522
/usr/compat/linux/lib/ld-2.5.so
292b5000-292b6000 rw-p 1000 00:00 0
292b6000-292b8000 r-xp 3000 00:00 424484
/usr/compat/linux/usr/lib/gconv/UTF-16.so
292b8000-292ba000 rwxp 3000 00:00 424484
/usr/compat/linux/usr/lib/gconv/UTF-16.so
292bc000-29385000 r-xp 000ce000 00:00 73218
/usr/compat/linux/lib/libasound.so.2.0.0
29385000-2938a000 rwxp 000ce000 00:00 73218
/usr/compat/linux/lib/libasound.so.2.0.0
2938a000-2938b000 rwxp 1000 00:00 0
2938b000-2938f000 r-xp 4000 00:00 73502
/usr/compat/linux/usr/X11R6/lib/libXv.so.1.0
2938f000-2939 rwxp 4000 00:00 73502
/usr/compat/linux/usr/X11R6/lib/libXv.so.1.0
2939-29392000 r-xp 2000 00:00 73496 /usr/compaAbort (core dumped)
[EMAIL PROTECTED] df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ad4s2a496M248M208M54%/
devfs  1.0K1.0K  0B   100%/dev
/dev/ad4s2e496M 14K456M 0%/tmp
/dev/ad4s2f 12G3.2G8.2G28%/usr
/dev/ad4s2d1.9G 41M1.7G 2%/var
linprocfs  4.0K4.0K  0B   100%/usr/compat/linux/proc

I have changed compat.linux.osrelease to 2.6.16 before installing fc6 and
skype but still nothing.

Any ideas in what I can do to make it work
Thanks
Reinhold

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


running nessus from inside of a jail

2008-06-20 Thread Reinhold
Hi

I've created a jail where only nessus lives in, the jail is working very
nicely but nessus keeps on crashing.

Here is what I see from the nessus.core file
(gdb) core nessusd.core
Core was generated by `nessusd'.
Program terminated with signal 4, Illegal instruction.
#0  0x280da85b in ?? ()

this is how I'm using nessus to scan the hosts
nessus -q -x -V -c /root/work/nessusrc -T html localhost 1241 root
password /root/work/work_temp/nessus_targets
/usr/local/www/apache22/data/results/nessus/2008-06-20/target_subnet.html

When I run nessus from the host system it works but from inside the jail
it cure dumps all the time.

here is my jail sysctl info
sysctl -a |grep jail
security.jail.jailed: 1
security.jail.mount_allowed: 0
security.jail.chflags_allowed: 0
security.jail.allow_raw_sockets: 1
security.jail.enforce_statfs: 2
security.jail.sysvipc_allowed: 0
security.jail.socket_unixiproute_only: 1
security.jail.set_hostname_allowed: 1

I had to change security.jail.allow_raw_sockets to one to get nmap to work.

Any help will be appreciated.

Thanks
Reinhold

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


Re: running nessus from inside of a jail

2008-06-20 Thread Reinhold

I got it working by deinstalling the nessus port and install the latest
package from nessus that you can download from there site.

Any idea as to when this release will make its way into the ports tree?

Regards
Reinhold

On Fri, June 20, 2008 14:11, Reinhold wrote:
 Hi


 I've created a jail where only nessus lives in, the jail is working very
 nicely but nessus keeps on crashing.

 Here is what I see from the nessus.core file
 (gdb) core nessusd.core
 Core was generated by `nessusd'.
 Program terminated with signal 4, Illegal instruction.
 #0  0x280da85b in ?? ()


 this is how I'm using nessus to scan the hosts nessus -q -x -V -c
 /root/work/nessusrc -T html localhost 1241 root
 password /root/work/work_temp/nessus_targets
 /usr/local/www/apache22/data/results/nessus/2008-06-20/target_subnet.html


 When I run nessus from the host system it works but from inside the jail
 it cure dumps all the time.

 here is my jail sysctl info sysctl -a |grep jail security.jail.jailed: 1
 security.jail.mount_allowed: 0
 security.jail.chflags_allowed: 0
 security.jail.allow_raw_sockets: 1
 security.jail.enforce_statfs: 2
 security.jail.sysvipc_allowed: 0
 security.jail.socket_unixiproute_only: 1
 security.jail.set_hostname_allowed: 1


 I had to change security.jail.allow_raw_sockets to one to get nmap to
 work.

 Any help will be appreciated.


 Thanks
 Reinhold


 ___
 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]


Re: mpd5 stoped working after subnet change

2008-06-02 Thread Reinhold
Hi.

I'm still struggling with this problem, is there anyone out there that can
offer me some help please

Thanks
Reinhold

On Thu, May 29, 2008 11:13, Reinhold wrote:
 Hi


 I'm using mpd5 for pptp connections and last night I had to change our
 subnet from 192.168.1.0/24 to 10.1.10.0/24 after I've made all the changes
  to all the config files I rebooted and everything is working except for
 pptp. I'm using mpd5 for 2 x adsl pppoe and pptp.


 Here is the pptp section
 pptp:
 set ippool add pool1 10.1.10.220 10.1.10.239

 create bundle template B set iface enable proxy-arp set iface idle 1800 set
 iface enable tcpmssfix set ipcp yes vjcomp set ipcp ranges 10.1.10.1/32
 ippool pool1 set ipcp dns 10.1.10.5 208.67.222.222

 set bundle enable compression set bundle enable crypt-reqd set ccp yes mppc
  set mppc yes e40 set mppc yes e128 set mppc yes stateless

 create link template L pptp set link action bundle B set link enable
 multilink set link yes acfcomp protocomp set link no pap chap set link
 enable chap set link keep-alive 10 60 set link mtu 1460

 set pptp self external-ip set link enable incoming

 and then in my pf.conf if_pptp = { ng2, ng3, ng4, ng5, ng6, ng7,
 ng8, ng9, ng10, ng11, ng12, ng13, ng14, ng15, ng16, ng17, ng18, mg19,
 ng20, ng21 }

 # PPTP in WAN1
 pass quick log on $ext_if1 inet proto gre all keep state pass quick log on
 $ext_if1 proto {tcp, udp } from any to 217.41.34.61 port
 = 1723 keep state
 pass quick log on $if_pptp from any to any keep state

 I'm getting an Error 800: Unable to establish a VPN connection.
 This used to work well before I changed the subnet last night.


 Any idea why its not working anymore?
 Thanks
 Reinhold


 ___
 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]


Re: mpd5 stoped working after subnet change

2008-06-02 Thread Reinhold
Hi

Thanks for the help
Its working again \o/

All I did was enabled logging like you suggested and made a change in
/etc/rc.conf.
I've added this
mpd_flags=-b -s mpd5

Then restarted mpd5 and bang it worked.

Thanks again.
Reinhold


On Mon, June 2, 2008 11:01, Odhiambo Washington wrote:
 On Mon, Jun 2, 2008 at 10:45 AM, Reinhold [EMAIL PROTECTED] wrote:

 Hi.


 I'm still struggling with this problem, is there anyone out there that
 can offer me some help please

 What I've done most of the times is to log all communications with mpd
 by adding a logging entry into /etc/syslog.conf:

 !mpd5
 *.* tab /var/log/mpd5.log


 Then
 touch /var/log/mpd5.log kill -1 `cat /var/run/syslog.pid`

 You can then look at /var/log/mpd5 for more clues



 Best regards,
 Odhiambo WASHINGTON,
 Nairobi,KE
 +254733744121/+254722743223
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 Oh My God! They killed init! You Bastards!
 --from a /. post
 ___
 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]


Re: mpd5 stoped working after subnet change

2008-06-02 Thread Reinhold
Nope I only had
mpd_enable=YES
in it before and that used to work perfectly.

That's why I was stumped at what was the cause to the problem.

I have another server that accepts pptp connections and I only have
mpd_enable in the rc.conf file and its working like a dream.

Very weird.

Reinhold

On Mon, June 2, 2008 13:25, Odhiambo Washington wrote:
 I thought you already had that entry in rc.conf?
 That's why I didn't even look that side.
 Anyway it's great to hear you're fine now.




 On 6/2/08, Reinhold [EMAIL PROTECTED] wrote:

 Hi


 Thanks for the help
 Its working again \o/


 All I did was enabled logging like you suggested and made a change in
 /etc/rc.conf.
 I've added this
 mpd_flags=-b -s mpd5

 Then restarted mpd5 and bang it worked.


 Thanks again.
 Reinhold



 On Mon, June 2, 2008 11:01, Odhiambo Washington wrote:

 On Mon, Jun 2, 2008 at 10:45 AM, Reinhold [EMAIL PROTECTED]
 wrote:


 Hi.



 I'm still struggling with this problem, is there anyone out there
 that can offer me some help please

 What I've done most of the times is to log all communications with
 mpd by adding a logging entry into /etc/syslog.conf:

 !mpd5
 *.* tab /var/log/mpd5.log



 Then
 touch /var/log/mpd5.log kill -1 `cat /var/run/syslog.pid`

 You can then look at /var/log/mpd5 for more clues




 Best regards,
 Odhiambo WASHINGTON,
 Nairobi,KE
 +254733744121/+254722743223
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



 Oh My God! They killed init! You Bastards!
 --from a /. post
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]







 --
 Sent from Google Mail for mobile | mobile.google.com


 Best regards,
 Odhiambo WASHINGTON,
 Nairobi,KE
 +254733744121/+254722743223
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 Oh My God! They killed init! You Bastards!
 --from a /. post
 ___
 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]


Re: mpd5 stoped working after subnet change

2008-06-02 Thread Reinhold
For me mpd5 have been running perfectly when it comes to bandwidth. But
then again I'm using adsl here.

I'm using mpd5 to connect to 2 adsl lines and then allow pptp in on one of
them. So far I had almost no problems with it at all.

send me the config, I have to warn you that its a bit hard to test random
things on mpd because its on our firewall so I don't want to mess with it
to much.

I can however use your config on my other server to test it for you.



On Mon, June 2, 2008 15:20, Odhiambo Washington wrote:
 I have both mpd4 and mpd5 able to work on my box! The only thing I
 hate in the logs is that mpd5 appears to allocate lower connection
 bandwidth than mpd4. I don't know if this makes sense, but because of
 that, I default to using mpd4. V5 is just there for playing with, and
 answering others like you in case they have a problem. I'd like to know
 why this bandwidth issue is differren between the versions, if you can
 help check out. I can give you a working config if you want.




 On 6/2/08, Reinhold [EMAIL PROTECTED] wrote:

 Nope I only had
 mpd_enable=YES in it before and that used to work perfectly.

 That's why I was stumped at what was the cause to the problem.


 I have another server that accepts pptp connections and I only have
 mpd_enable in the rc.conf file and its working like a dream.

 Very weird.


 Reinhold


 On Mon, June 2, 2008 13:25, Odhiambo Washington wrote:

 I thought you already had that entry in rc.conf?
 That's why I didn't even look that side.
 Anyway it's great to hear you're fine now.





 On 6/2/08, Reinhold [EMAIL PROTECTED] wrote:


 Hi



 Thanks for the help
 Its working again \o/



 All I did was enabled logging like you suggested and made a change
 in /etc/rc.conf.
 I've added this
 mpd_flags=-b -s mpd5

 Then restarted mpd5 and bang it worked.



 Thanks again.
 Reinhold




 On Mon, June 2, 2008 11:01, Odhiambo Washington wrote:


 On Mon, Jun 2, 2008 at 10:45 AM, Reinhold [EMAIL PROTECTED]
  wrote:



 Hi.




 I'm still struggling with this problem, is there anyone out
 there that can offer me some help please

 What I've done most of the times is to log all communications
 with mpd by adding a logging entry into /etc/syslog.conf:

 !mpd5
 *.* tab /var/log/mpd5.log




 Then
 touch /var/log/mpd5.log kill -1 `cat /var/run/syslog.pid`

 You can then look at /var/log/mpd5 for more clues





 Best regards,
 Odhiambo WASHINGTON,
 Nairobi,KE
 +254733744121/+254722743223
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _




 Oh My God! They killed init! You Bastards!
 --from a /. post
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]








 --
 Sent from Google Mail for mobile | mobile.google.com



 Best regards,
 Odhiambo WASHINGTON,
 Nairobi,KE
 +254733744121/+254722743223
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



 Oh My God! They killed init! You Bastards!
 --from a /. post
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]







 --
 Sent from Google Mail for mobile | mobile.google.com


 Best regards,
 Odhiambo WASHINGTON,
 Nairobi,KE
 +254733744121/+254722743223
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 Oh My God! They killed init! You Bastards!
 --from a /. post
 ___
 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]


Re: mpd5 stoped working after subnet change

2008-06-02 Thread Reinhold


 So, upon connection, there was a bandwidth of  64000bps, but upon
 closing that session, the b/w is 9600bps.

I see the same things since I started logging the connection.
At the start I see this
mpd5: [B-3] Bundle: Status update: up 1 link, total bandwidth 64000 bps
and at the end its
mpd5: [B-3] Bundle: Status update: up 0 links, total bandwidth 9600 bps

This is a bit OT because my original problem got fixed thanks to you, I
still have no idea what fixed it though, hehehe

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


mpd5 stoped working after subnet change

2008-05-29 Thread Reinhold
Hi

I'm using mpd5 for pptp connections and last night I had to change our
subnet from 192.168.1.0/24 to 10.1.10.0/24 after I've made all the changes
to all the config files I rebooted and everything is working except for
pptp.
I'm using mpd5 for 2 x adsl pppoe and pptp.

Here is the pptp section
pptp:
set ippool add pool1 10.1.10.220 10.1.10.239

create bundle template B
set iface enable proxy-arp
set iface idle 1800
set iface enable tcpmssfix
set ipcp yes vjcomp
set ipcp ranges 10.1.10.1/32 ippool pool1
set ipcp dns 10.1.10.5 208.67.222.222

set bundle enable compression
set bundle enable crypt-reqd
set ccp yes mppc
set mppc yes e40
set mppc yes e128
set mppc yes stateless

create link template L pptp
set link action bundle B
set link enable multilink
set link yes acfcomp protocomp
set link no pap chap
set link enable chap
set link keep-alive 10 60
set link mtu 1460

set pptp self external-ip
set link enable incoming

and then in my pf.conf
if_pptp = { ng2, ng3, ng4, ng5, ng6, ng7, ng8, ng9, ng10, ng11,
ng12, ng13, ng14, ng15, ng16, ng17, ng18, mg19, ng20, ng21 }

# PPTP in WAN1
pass quick log on $ext_if1 inet proto gre all keep state
pass quick log on $ext_if1 proto {tcp, udp } from any to 217.41.34.61 port
= 1723 keep state
pass quick log on $if_pptp from any to any keep state

I'm getting an Error 800: Unable to establish a VPN connection.
This used to work well before I changed the subnet last night.

Any idea why its not working anymore?
Thanks
Reinhold

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


Samba doesn't start after a ports upgrade

2008-05-13 Thread Reinhold
Hi

I have a samba server here at work. Last night I did a ports upgrade and
since then samba fails to start. It just hangs at the rc script.

# /usr/local/etc/rc.d/samba start
Removing stale Samba tdb files:  done
Starting nmbd.
Starting smbd.


# ps auxwww |grep smb
root 66854  0.0  0.7  5740  3464  ??  Ss9:09AM   0:00.01
/usr/local/sbin/nmbd -D -s /usr/local/etc/smb.conf
root 67466  0.0  1.3  9616  6756  p1  I+9:09AM   0:00.06
/usr/local/sbin/smbd -d 5 -s /usr/local/etc/smb.conf
root 67561  0.0  0.2  1596   924  p2  S+9:09AM   0:00.00 grep smb

and in the log file it looks like this
[2008/05/13 09:14:16, 5] lib/debug.c:debug_dump_status(391)
  INFO: Current debug levels:
all: True/5
tdb: False/0
printdrivers: False/0
lanman: False/0
smb: False/0
rpc_parse: False/0
rpc_srv: False/0
rpc_cli: False/0
passdb: False/0
sam: False/0
auth: False/0
winbind: False/0
vfs: False/0
idmap: False/0
quota: False/0
acls: False/0
locking: False/0
msdfs: False/0
dmapi: False/0
[2008/05/13 09:14:16, 3] lib/fault.c:dump_core_setup(134)
  Maximum core file size limits now -1(soft) -1(hard)
[2008/05/13 09:14:16, 3] smbd/sec_ctx.c:get_current_groups(167)
  get_current_groups: user is in 3 groups: 0, 0, 5
[2008/05/13 09:14:16, 0] smbd/server.c:main(944)
  smbd version 3.0.28a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2008
[2008/05/13 09:14:16, 2] smbd/server.c:main(948)
  uid=0 gid=0 euid=0 egid=0
[2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
  Build environment:
[2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
 Built by:[EMAIL PROTECTED]
[2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
 Built on:Tue May 13 08:52:37 BST 2008
[2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
 Built using: cc
[2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
 Build host:  FreeBSD fbsd01.gim.local 6.3-STABLE FreeBSD 6.3-STABLE
#1: Mon May 12 18:47:12 BST 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYKERN  i386
[2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
 SRCDIR:  /usr/ports/net/samba3/work/samba-3.0.28a/source
[2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
 BUILDDIR:/usr/ports/net/samba3/work/samba-3.0.28a/source
[2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)

And loads of other stuff that looks the same as above
It ends with this
[2008/05/13 09:14:16, 3] printing/pcap.c:pcap_cache_reload(117)
  reloading printcap cache
[2008/05/13 09:14:16, 5] printing/print_cups.c:cups_cache_reload(94)
  reloading cups printcap cache
[2008/05/13 09:16:46, 0] printing/print_cups.c:cups_connect(69)
  Unable to connect to CUPS server localhost:631 - Operation timed out
[2008/05/13 09:16:46, 3] printing/pcap.c:pcap_cache_reload(223)
  reload status: error
[2008/05/13 09:16:46, 3] printing/pcap.c:pcap_cache_reload(117)
  reloading printcap cache
[2008/05/13 09:16:46, 5] printing/print_cups.c:cups_cache_reload(94)
  reloading cups printcap cache


Any help please, my whole office is down at the moment :-(

Regards
Reinhold

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


Re: Samba doesn't start after a ports upgrade

2008-05-13 Thread Reinhold
Woot, its back up.

The problem was cups.

I never used cups before, but for some reason now I have to start cups up
so that samba can work.

Regards
Reinhold

On Tue, May 13, 2008 09:20, Reinhold wrote:
 Hi


 I have a samba server here at work. Last night I did a ports upgrade and
 since then samba fails to start. It just hangs at the rc script.

 # /usr/local/etc/rc.d/samba start
 Removing stale Samba tdb files:  done
 Starting nmbd.
 Starting smbd.



 # ps auxwww |grep smb
 root 66854  0.0  0.7  5740  3464  ??  Ss9:09AM   0:00.01
 /usr/local/sbin/nmbd -D -s /usr/local/etc/smb.conf
 root 67466  0.0  1.3  9616  6756  p1  I+9:09AM   0:00.06
 /usr/local/sbin/smbd -d 5 -s /usr/local/etc/smb.conf
 root 67561  0.0  0.2  1596   924  p2  S+9:09AM   0:00.00 grep smb

 and in the log file it looks like this [2008/05/13 09:14:16, 5]
 lib/debug.c:debug_dump_status(391)
 INFO: Current debug levels:
 all: True/5
 tdb: False/0
 printdrivers: False/0
 lanman: False/0
 smb: False/0
 rpc_parse: False/0
 rpc_srv: False/0
 rpc_cli: False/0
 passdb: False/0
 sam: False/0
 auth: False/0
 winbind: False/0
 vfs: False/0
 idmap: False/0
 quota: False/0
 acls: False/0
 locking: False/0
 msdfs: False/0
 dmapi: False/0
 [2008/05/13 09:14:16, 3] lib/fault.c:dump_core_setup(134)
 Maximum core file size limits now -1(soft) -1(hard)
 [2008/05/13 09:14:16, 3] smbd/sec_ctx.c:get_current_groups(167)
 get_current_groups: user is in 3 groups: 0, 0, 5
 [2008/05/13 09:14:16, 0] smbd/server.c:main(944)
 smbd version 3.0.28a started. Copyright Andrew Tridgell and the Samba Team
 1992-2008
 [2008/05/13 09:14:16, 2] smbd/server.c:main(948)
 uid=0 gid=0 euid=0 egid=0 [2008/05/13 09:14:16, 4]
 smbd/build_options.c:output(45)
 Build environment:
 [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
 Built by:[EMAIL PROTECTED]
 [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
 Built on:Tue May 13 08:52:37 BST 2008
 [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
 Built using: cc
 [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
 Build host:  FreeBSD fbsd01.gim.local 6.3-STABLE FreeBSD 6.3-STABLE
 #1: Mon May 12 18:47:12 BST 2008
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYKERN  i386
 [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
 SRCDIR:  /usr/ports/net/samba3/work/samba-3.0.28a/source
 [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
 BUILDDIR:/usr/ports/net/samba3/work/samba-3.0.28a/source
 [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)


 And loads of other stuff that looks the same as above
 It ends with this
 [2008/05/13 09:14:16, 3] printing/pcap.c:pcap_cache_reload(117)
 reloading printcap cache [2008/05/13 09:14:16, 5]
 printing/print_cups.c:cups_cache_reload(94)
 reloading cups printcap cache [2008/05/13 09:16:46, 0]
 printing/print_cups.c:cups_connect(69)
 Unable to connect to CUPS server localhost:631 - Operation timed out
 [2008/05/13 09:16:46, 3] printing/pcap.c:pcap_cache_reload(223)
 reload status: error [2008/05/13 09:16:46, 3]
 printing/pcap.c:pcap_cache_reload(117)
 reloading printcap cache [2008/05/13 09:16:46, 5]
 printing/print_cups.c:cups_cache_reload(94)
 reloading cups printcap cache


 Any help please, my whole office is down at the moment :-(


 Regards
 Reinhold


 ___
 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]


Re: Samba doesn't start after a ports upgrade

2008-05-13 Thread Reinhold
On Tue, May 13, 2008 10:55, Wojciech Puchar wrote:
 The problem was cups.


 i don't have cups installed and have samba running. check samba config -
 it should not be like this


I just checked make config and I have cups selected, but I'm pretty sure
it has always been selected. I'll deselect it and recompile and see what
happens.

Here is my smb.conf
[global]
dos charset = ASCII
unix charset = UTF8
workgroup = OFFICE
server string = Samba File Server
passdb backend = tdbsam
log file = /var/log/samba/log.%m
max log size = 50
load printers = No
os level = 60
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
ldap ssl = no
#acl group control = Yes
#inherit acls = Yes
profile acls = Yes
#map acl inherit = Yes
delete veto files = Yes
veto files =
/.AppleDB/.AppleDesktop/.AppleDouble/.TemporaryItems/._.TemporaryItems/Network
Trash Folder/Temporary Items/
hide files =
/.cshrc/.history/.lesshst/.login/.login_conf/.mail_aliases/.mailrc/.profile/.rhosts/.shrc/.ssh/.subversion/.tmp/.usermin/.viminfo/.vimrc
/
map archive = No
store dos attributes = Yes
dos filemode = Yes

[homes]
browseable = No
comment = Home Directories
delete readonly = yes
writable = yes
***snip


 I never used cups before, but for some reason now I have to start cups
 up so that samba can work.

 Regards
 Reinhold




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


RE: plagued by bad hdr length

2008-05-08 Thread Reinhold
Thanks for the reply

If tried that as well and it didn't help



On Thu, May 8, 2008 00:24, Ansar Mohammed wrote:
 Yes I had similar issues


 Try
 scrub on ng0 all reassemble tcp scrub on ng1 all reassemble tcp



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:owner-freebsd-
 [EMAIL PROTECTED] On Behalf Of Reinhold Sent: May 7, 2008 7:01 PM
 To: freebsd-questions@freebsd.org
 Subject: plagued by bad hdr length


 Hi


 I'm getting loads of bad hdr length from pf on our router running
 freebsd 7.0

 I've tried just about everything I could find with google.


 Lowering the mtu on my ng devices from 1492 all the way to 1485,
 anything lower then that and we can't ssh out of our network and I get
 loads of time outs every where.

 I've tried also pretty much every possible solution with the scrub
 rules in pf, I even disabled it a few times.

 I honestly don't know what to try next.


 tcpdump -n -e - -i pflog0 2008-05-07 23:42:06.596965 rule
 78/0(match): pass in on ng0:
 89.240.55.163.3164  192.168.1.5.80:  tcp 20 [bad hdr length 8 - too
 short,  20] 2008-05-07 23:42:07.051043 rule 78/0(match): pass in on ng0:
  89.240.55.163.3165  192.168.1.5.80:  tcp 20 [bad hdr length 8 - too
 short,  20] 2008-05-07 23:42:25.697087 rule 76/0(match): pass in on ng0:
  80.81.242.13.51145  192.168.1.5.22:  tcp 36 [bad hdr length 8 - too
 short,  20] 2008-05-07 23:42:30.561467 rule 77/0(match): pass in on ng1:
  80.81.242.14.63900  192.168.1.5.22:  tcp 36 [bad hdr length 8 - too
 short,  20]

 And here are the same log again
 tcpdump -n -e - -r /var/log/pflog 2008-05-07 23:42:06.596965 rule
 78/0(match): pass in on ng0:
 89.240.55.163.3164  192.168.1.5.80: S 3008361134:3008361134(0) win
 16384
 mss 1360,nop,nop,sackOK
 2008-05-07 23:42:07.051043 rule 78/0(match): pass in on ng0:
 89.240.55.163.3165  192.168.1.5.80: S 1482992447:1482992447(0) win
 16384
 mss 1360,nop,nop,sackOK
 2008-05-07 23:42:25.697087 rule 76/0(match): pass in on ng0:
 80.81.242.13.51145  192.168.1.5.22: S 555277666:555277666(0) win 65535
 mss 1460,nop,wscale 1,nop,nop,timestamp[|tcp]
 2008-05-07 23:42:30.561467 rule 77/0(match): pass in on ng1:
 80.81.242.14.63900  192.168.1.5.22: S 966982942:966982942(0) win 65535
 mss 1460,nop,wscale 1,nop,nop,timestamp[|tcp]


 Here is my ifconfig
 ng0: flags=88d1UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST metric
 0
 mtu 1492 inet wan1-ip -- wan1-gw netmask 0x ng1:
 flags=88d1UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST metric 0
 mtu 1492 inet wan2-ip -- wan2-gw netmask 0x

 Anyone out there that can lend me a hand with fixing this?


 Thanks
 Reinhold


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




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


plagued by bad hdr length

2008-05-07 Thread Reinhold
Hi

I'm getting loads of bad hdr length from pf on our router running freebsd 7.0

I've tried just about everything I could find with google.

Lowering the mtu on my ng devices from 1492 all the way to 1485, anything
lower then that and we can't ssh out of our network and I get loads of
time outs every where.

I've tried also pretty much every possible solution with the scrub rules
in pf, I even disabled it a few times.

I honestly don't know what to try next.

tcpdump -n -e - -i pflog0
2008-05-07 23:42:06.596965 rule 78/0(match): pass in on ng0:
89.240.55.163.3164  192.168.1.5.80:  tcp 20 [bad hdr length 8 - too
short,  20]
2008-05-07 23:42:07.051043 rule 78/0(match): pass in on ng0:
89.240.55.163.3165  192.168.1.5.80:  tcp 20 [bad hdr length 8 - too
short,  20]
2008-05-07 23:42:25.697087 rule 76/0(match): pass in on ng0:
80.81.242.13.51145  192.168.1.5.22:  tcp 36 [bad hdr length 8 - too
short,  20]
2008-05-07 23:42:30.561467 rule 77/0(match): pass in on ng1:
80.81.242.14.63900  192.168.1.5.22:  tcp 36 [bad hdr length 8 - too
short,  20]

And here are the same log again
tcpdump -n -e - -r /var/log/pflog
2008-05-07 23:42:06.596965 rule 78/0(match): pass in on ng0:
89.240.55.163.3164  192.168.1.5.80: S 3008361134:3008361134(0) win 16384
mss 1360,nop,nop,sackOK
2008-05-07 23:42:07.051043 rule 78/0(match): pass in on ng0:
89.240.55.163.3165  192.168.1.5.80: S 1482992447:1482992447(0) win 16384
mss 1360,nop,nop,sackOK
2008-05-07 23:42:25.697087 rule 76/0(match): pass in on ng0:
80.81.242.13.51145  192.168.1.5.22: S 555277666:555277666(0) win 65535
mss 1460,nop,wscale 1,nop,nop,timestamp[|tcp]
2008-05-07 23:42:30.561467 rule 77/0(match): pass in on ng1:
80.81.242.14.63900  192.168.1.5.22: S 966982942:966982942(0) win 65535
mss 1460,nop,wscale 1,nop,nop,timestamp[|tcp]

Here is my ifconfig
ng0: flags=88d1UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST metric 0
mtu 1492
inet wan1-ip -- wan1-gw netmask 0x
ng1: flags=88d1UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST metric 0
mtu 1492
inet wan2-ip -- wan2-gw netmask 0x

Anyone out there that can lend me a hand with fixing this?

Thanks
Reinhold

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


Re: brindging ath0 with re0 working, kinda, almost

2008-04-25 Thread Reinhold
On Fri, April 25, 2008 12:30, Ivan Voras wrote:
 Reinhold wrote:


 Any help would be appreciated.


 I don't have any more suggestions, except the obvious: is there a
 firewall somewhere in there, and are the routing tables ok?



yeah I have pf running, it needs to be on because its doing the load
balancing on the two wan connections.

Here is the netstat output for the routing table

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default121.212.313.414 UGS 0   162114ng1
127.0.0.1  127.0.0.1  UH  0  635lo0
192.168.1.0/24 link#12UC  00 bridge
192.168.1.1d6.f4.fc.7c.95.38  UHLW12lo0
192.168.1.50.11.9.3b.f7.f0UHLW163563 bridge848
snip
loads of local ips
end snip
192.168.1.199  0.f.ea.66.8.7d UHLW115958 bridge869
112.221.331.441 111.222.333.444   UH  00ng0
121.212.313.414 22.333.444.555 UH  10ng1


Cheers
Reinhold

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


Re: brindging ath0 with re0 working, kinda, almost

2008-04-25 Thread Reinhold
On Fri, April 25, 2008 14:57, Reinhold wrote:
 On Fri, April 25, 2008 12:30, Ivan Voras wrote:

 I don't have any more suggestions, except the obvious: is there a
 firewall somewhere in there, and are the routing tables ok?



 yeah I have pf running, it needs to be on because its doing the load
 balancing on the two wan connections.

 Here is the netstat output for the routing table


 Internet:
 DestinationGatewayFlagsRefs  Use  Netif Expire
  default121.212.313.414 UGS 0   162114ng1
 127.0.0.1  127.0.0.1  UH  0  635lo0
 192.168.1.0/24 link#12UC  00 bridge
 192.168.1.1d6.f4.fc.7c.95.38  UHLW12lo0
 192.168.1.50.11.9.3b.f7.f0UHLW163563 bridge848
  snip
 loads of local ips end snip
 192.168.1.199  0.f.ea.66.8.7d UHLW115958 bridge869
  112.221.331.441 111.222.333.444   UH  00ng0
 121.212.313.414 22.333.444.555 UH  10ng1


So, I disabled pf and then it started working but the internet stopped
working, hehe. This is not fair at all.

here is the load-balancing part of pf
# pass on unfiltered interfaces
#
pass quick on $unfiltered

#  default deny
# silently drop TCP non-SYN packets, the remaining ruleset only deals with
# TCP SYNs, which always create state when passed. the ruleset basically
# deals with 'connections', not packets, beyond this point.
#
block return-rst quick proto tcp all flags /S
block return-rst quick proto tcp all flags A/A

# block and log everything by default
#
block log
block return-rst  log inet proto tcp
block return-icmp log inet proto udp

# silently drop broadcasts (ADSL noise)
#
block in quick on $ext_if1 inet from any to 255.255.255.255
block in quick on $ext_if2 inet from any to 255.255.255.255

# bruteforce
#
block quick from bruteforce to any

# block some known-bad ports without logging
#
block return-rst  in quick on $ext_if1 proto tcp from any to any port {
111, 445, 1080, 6000, 6667 }
block return-icmp in quick on $ext_if1 proto udp from any to any port {
137, 138, 139, 1434 }
block return-rst  in quick on $ext_if2 proto tcp from any to any port {
111, 445, 1080, 6000, 6667 }
block return-icmp in quick on $ext_if2 proto udp from any to any port {
137, 138, 139, 1434 }

# block and log incoming packets from reserved address space and invalid
# addresses, they are either spoofed or misconfigured, we can't reply to
# them anyway (hence, no return-rst).
#
block in log quick on $ext_if1 inet from $unroutable to any
block in log quick on $ext_if2 inet from $unroutable to any

# block and log outgoing packets that don't have my address as source,
they are
# either spoofed or something is misconfigured (NAT disabled, for instance),
# we want to be nice and not send out garbage.
#
block out log quick on $ext_if1 inet from !(ng0) to any
block out log quick on $ext_if2 inet from !(ng1) to any

# OUT GOING ROUTING
#
# HTTS OVER WAN1
pass in quick on $int_if  route-to { ( $ext_if1 $ext_gw1 ) } proto tcp
from $lan_net  to any port = 443 keep state

# SSH OVER WAN1
pass in quick on $int_if  route-to { ( $ext_if1 $ext_gw1 ) } proto tcp
from $lan_net to any port = 4424 keep state
pass in quick on $int_if  route-to { ( $ext_if1 $ext_gw1 ) } proto tcp
from $lan_net to any port = 22 keep state

# BLA OVER WAN1 for user1
pass in quick on $int_if  route-to { ( $ext_if1 $ext_gw1 ) } proto tcp
from $lan_net to some-ip-address keep state

#
# LOAD BALANCING
#
#  pass all outgoing packets on internal interface
pass out log on $int_if from any to $lan_net
#  pass in quick any packets destined for the gateway itself
pass in quick on $int_if from $lan_net to $int_if
#  load balance outgoing tcp traffic from internal network.
pass in on $int_if route-to { ($ext_if1 $ext_gw1), ($ext_if2 $ext_gw2) }
round-robin proto tcp from $lan_net to any keep state
#  load balance outgoing udp and icmp traffic from internal network
pass in on $int_if route-to { ($ext_if1 $ext_gw1), ($ext_if2 $ext_gw2) }
round-robin proto { udp, icmp } from $lan_net to any keep state

#  general pass out rules for external interfaces
pass out on $ext_if1 proto tcp from any to any flags S/SA modulate state
pass out on $ext_if1 proto { udp, icmp } from any to any keep state
pass out on $ext_if2 proto tcp from any to any flags S/SA modulate state
pass out on $ext_if2 proto { udp, icmp } from any to any keep state

#  route packets from any IPs on $ext_if1 to $ext_gw1 and the same for
#  $ext_if2 and $ext_gw2
pass out on $ext_if1 route-to ($ext_if2 $ext_gw2) from $ext_if2 to any
pass out on $ext_if2 route-to ($ext_if1 $ext_gw1) from $ext_if1 to any

I need them :S like I said if pf is disabled then the internet stops working.

Regards
Reinhold

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo

brindging ath0 with re0 working, kinda, almost

2008-04-24 Thread Reinhold
Hi

I have a FreeBSD7 firewall and its working like a dream well so far. This
is my setup

rl0 - wan1
rl1 - wan2
re0 - lan
ath0 - wlan

I have a bridge set up on re0 and ath0 to get bridge0, here is my ifconfig

ath0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0
mtu 2290
ether 00:0b:6b:0b:62:c8
media: IEEE 802.11 Wireless Ethernet autoselect hostap
(autoselect hostap)
status: associated
ssid something channel 2 (2417 Mhz 11g) bssid 00:0b:6b:0b:62:c8
authmode WPA privacy MIXED deftxkey 2 TKIP 2:128-bit TKIP 3:128-bit
txpower 31.5 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250
roam:rssi11g 7 roam:rate11g 5 protmode CTS burst dtimperiod 1
rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
options=8VLAN_MTU
ether 00:04:a7:09:81:80
media: Ethernet autoselect (100baseTX full-duplex)
status: active
rl1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
options=8VLAN_MTU
ether 00:04:a7:09:81:7f
media: Ethernet autoselect (100baseTX full-duplex)
status: active
re0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0
mtu 1500
options=98VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM
ether 00:04:a7:05:88:c0
media: Ethernet autoselect (1000baseTX full-duplex)
status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT metric 0 mtu
1500
pflog0: flags=141UP,RUNNING,PROMISC metric 0 mtu 33204
pfsync0: flags=0 metric 0 mtu 1460
syncpeer: 224.0.0.240 maxupd: 128
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0xb
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00
bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
ether 92:52:90:af:3f:07
inet 192.168.1.1 netmask 0xff00 broadcast 192.168.1.255
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: re0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
member: ath0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
ng0: flags=88d1UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST metric 0
mtu 1485
inet 111.222.333.444 -- 112.221.331.441 netmask 0x
ng1: flags=88d1UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST metric 0
mtu 1485
inet 22.333.444.555 -- 121.212.313.414 netmask 0x

The bridge is working in that both lan and wlan can access the internet
perfectly well but the problem lies with accessing each other.

I can't connect to any of the servers running in lan from wlan.

Any help would be appreciated

Regards
Reinhold

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


Re: brindging ath0 with re0 working, kinda, almost

2008-04-24 Thread Reinhold
On Thu, April 24, 2008 10:03, Ivan Voras wrote:
 Reinhold wrote:


 I have a bridge set up on re0 and ath0 to get bridge0, here is my
 ifconfig

 ath0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric
 0
 mtu 2290

 rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu
 1500


 bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0
 mtu 1500

 The bridge is working in that both lan and wlan can access the internet
  perfectly well but the problem lies with accessing each other.

 Depending on what your symptoms are, maybe you need to set the mtu of
 all three interfaces to the same value (1500).

Hi
Thanks for the quick reply.

The symptoms are as follows
When connected to the wlan I can ping the firewall but not one of our
servers, the server ip times out

This is a ping from one of the laptops connected to the wlan
ping 192.168.1.1

Pinging 192.168.1.1 with 32 bytes of data:

Reply from 192.168.1.1: bytes=32 time=1ms TTL=64
Reply from 192.168.1.1: bytes=32 time1ms TTL=64
Reply from 192.168.1.1: bytes=32 time1ms TTL=64
Reply from 192.168.1.1: bytes=32 time1ms TTL=64

Ping statistics for 192.168.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms

ping 192.168.1.5

Pinging 192.168.1.5 with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 192.168.1.5:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

When I plug it in on the lan its works perfect with no time outs.

How come is the MTU so low on the ath0, but its working at full speed? The
wlan signal is stronger then any of our other wireless devices I've ever
used before

Regards

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


Re: brindging ath0 with re0 working, kinda, almost

2008-04-24 Thread Reinhold
On Thu, April 24, 2008 11:23, Reinhold wrote:
 On Thu, April 24, 2008 10:03, Ivan Voras wrote:

 Reinhold wrote:



 I have a bridge set up on re0 and ath0 to get bridge0, here is my
 ifconfig

 ath0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST
 metric 0
 mtu 2290

 rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu
 1500



 bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0
 mtu 1500

 The bridge is working in that both lan and wlan can access the
 internet perfectly well but the problem lies with accessing each
 other.

 Depending on what your symptoms are, maybe you need to set the mtu of
 all three interfaces to the same value (1500).

 Hi
 Thanks for the quick reply.


 The symptoms are as follows
 When connected to the wlan I can ping the firewall but not one of our
 servers, the server ip times out

 This is a ping from one of the laptops connected to the wlan

 ping 192.168.1.1

 Pinging 192.168.1.1 with 32 bytes of data:


 Reply from 192.168.1.1: bytes=32 time=1ms TTL=64
 Reply from 192.168.1.1: bytes=32 time1ms TTL=64
 Reply from 192.168.1.1: bytes=32 time1ms TTL=64
 Reply from 192.168.1.1: bytes=32 time1ms TTL=64


 Ping statistics for 192.168.1.1:
 Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
 Approximate round trip times in milli-seconds:
 Minimum = 0ms, Maximum = 1ms, Average = 0ms


 ping 192.168.1.5

 Pinging 192.168.1.5 with 32 bytes of data:


 Request timed out.
 Request timed out.
 Request timed out.
 Request timed out.


 Ping statistics for 192.168.1.5:
 Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),


 When I plug it in on the lan its works perfect with no time outs.


 How come is the MTU so low on the ath0, but its working at full speed?
 The
 wlan signal is stronger then any of our other wireless devices I've ever
 used before

 Regards

Hi

I have changed the mtu on ath0 but it had no affect at all. I ran tcpdump
on it and this is what I'm seeing

# tcpdump -n -e -t -i ath0
00:19:db:04:86:9e  ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42:
arp who-has 192.168.1.5 tell 192.168.1.177
00:19:db:04:86:9e  ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42:
arp who-has 192.168.1.5 tell 192.168.1.177
00:11:09:3b:f7:f0  00:19:db:04:86:9e, ethertype ARP (0x0806), length 60:
arp reply 192.168.1.5 is-at 00:11:09:3b:f7:f0
00:19:db:04:86:9e  00:11:09:3b:f7:f0, ethertype IPv4 (0x0800), length 66:
192.168.1.177.1305  192.168.1.5.80: S 3158085845:3158085845(0) win 65535
mss 1460,nop,wscale 2,nop,nop,sackOK

Any help would be appreciated.

Regards



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


load balancing with pf some sites time out

2008-04-01 Thread Reinhold
Hi

Last night I implemented a new load balancer for our office, its running
on FreeBSD7.0 and I'm using pf to do the load balancing for our two WAN
connections.

The problem that I'm having is that for some weird reason some sites are
timing out when we go to them, here are a few sites that doesn't work,
http://www.eurodns.com
http://www.microsoft.com
http://www.hsbc.co.uk

All the Microsoft sites are not working, MSN, Live and hotmail as well.

Here is what my pf rules looks like for the load balancer

#
# LOAD BALANCING
#
#  pass all outgoing packets on internal interface
pass out on $int_if from any to $lan_net
pass out on $wlan_if from any to $wlan_net
#  pass in quick any packets destined for the gateway itself
pass in quick on $int_if from $lan_net to $int_if
pass in quick on $wlan_if from $wlan_net to $wlan_if
#  load balance outgoing tcp traffic from internal network.
pass in on $int_if route-to { ($ext_if1 $ext_gw1), ($ext_if2 $ext_gw2) }
round-robin proto tcp from $lan_net to any flags S/SA modulate state
pass in on $wlan_if route-to { ($ext_if1 $ext_gw1), ($ext_if2 $ext_gw2) }
round-robin proto tcp from $wlan_net to any flags S/SA modulate state
#  load balance outgoing udp and icmp traffic from internal network
pass in on $int_if route-to { ($ext_if1 $ext_gw1), ($ext_if2 $ext_gw2) }
round-robin proto { udp, icmp } from $lan_net to any keep state
pass in on $wlan_if route-to { ($ext_if1 $ext_gw1), ($ext_if2 $ext_gw2) }
round-robin proto { udp, icmp } from $wlan_net to any keep state

#  general pass out rules for external interfaces
pass out on $ext_if1 proto tcp from any to any flags S/SA modulate state
pass out on $ext_if1 proto { udp, icmp } from any to any keep state
pass out on $ext_if2 proto tcp from any to any flags S/SA modulate state
pass out on $ext_if2 proto { udp, icmp } from any to any keep state

#  route packets from any IPs on $ext_if1 to $ext_gw1 and the same for
#  $ext_if2 and $ext_gw2
pass out on $ext_if1 route-to ($ext_if2 $ext_gw2) from $ext_if2 to any
pass out on $ext_if2 route-to ($ext_if1 $ext_gw1) from $ext_if1 to any

Any idea what I can do to fix this problem?

Thanks
Reinhold

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


Re: load balancing with pf some sites time out

2008-04-01 Thread Reinhold
On Tue, April 1, 2008 11:46, Reinhold wrote:
 Hi


 Last night I implemented a new load balancer for our office, its running
 on FreeBSD7.0 and I'm using pf to do the load balancing for our two WAN
 connections.

 The problem that I'm having is that for some weird reason some sites are
 timing out when we go to them, here are a few sites that doesn't work,
 http://www.eurodns.com
 http://www.microsoft.com
 http://www.hsbc.co.uk


 All the Microsoft sites are not working, MSN, Live and hotmail as well.


 Here is what my pf rules looks like for the load balancer


I got it working

I had to change the states from flags S/SA modulate state to keep state

Thanks for reading

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


removing acl from a directory

2008-03-12 Thread Reinhold
Hi,


I need to remove all the acls from a directory and its files, I've done
that successfully using setfacl -bn. This dir is being used by samba but
because of the way its now being used we don't need acls on it any more.
The thing is every time we create a file either trough samba or from a
terminal it adds the acls to the file even after I removed them all.

Here is an example of whats happening

total 2858
drwxrwx---  6 user1  test   512B Mar 12 17:54 .svn/
drwxrwx---  3 user1  test   512B Mar 12 17:54 branches/
drwxrwx---  3 user1  test   512B Mar 12 17:54 tags/
r-+ 1 root   test 0B Mar 12 18:50 test
drwxrwx---+ 2 user1  test   512B Mar 12 18:51 test123/
-rwxrwx---+ 1 user1  test 0B Mar 12 18:51 test123_file*
drwxrwx---  5 user1  test   512B Mar 12 17:54 trunk/
-rw-rw  1 user1  test   2.7M Mar 12 17:43 trunk.zip


Our main problem is the that if the system creates a file or folder it is
just adding read permissions to the group
Also as you can see the names with the + in them have been created after I
removed all the acls.

test was created by me from within a shell and test123 was done trough samba.

What information do I need to share with you all to see if we can fix this?

Best regards
Reinhold

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


Re: mpd with a dual pppoe setup

2008-02-05 Thread Reinhold
On Mon, February 4, 2008 17:04, Jerry McAllister wrote:
 On Mon, Feb 04, 2008 at 11:18:12AM -, Reinhold wrote:



 If you are connecting to the ISP it would be better not to
 specify IP to let them be negotiated.

 How will I go ahead and set the static ips for both my wan
 connections?


 If IPs are static then provider itself will negotiate them every time
  same. If you will specify them and provider will request another,
 negotiation will fail. So I would not recommend you to specify them.


 Hi
 I spoke to our ISP today. I asked them if they can set one of my ips as
 the main ip that will be assigned every time I dail in and they told me
 no they can't do it because of some security thing on there side :-S

 Basicaly how they explained it to me is because I have 5 ips, when we
 dail in we get assigned a dynamic ip and on top of that I have to
 manually set the 5 ips to what ever services I would like them to be
 used for. If I want my WAN2 connection to use one of the 5 ips I have to
 manually set it so that all my out going connections will be using that
 ip.

 Your ISP CAN do this.  They just won't because they don't want to make it
  easy for you to run a server.   They want to suppress your use.  You
 might check with other ISPs or twist their arm more, or get a little more
 sophisticated by letting DHCP set the IPs and have your domain registered
 through one of the nameserver services that will allow you to reset the
 info each time you boot.   Then, there are some utilities you can get to
 check what IP got set and then notify that nameserver service.

 I don't remember offhand the names of any of those services or the
 utilities you can use to talk to them, but there are several and you can
 just do a little searching for them.

 jerry

Hi,
I phoned them again, the first guy I spoke to didn't know what I wanted so
after telling him to get me someone that I can talk to I was finally told
that BT, our ISP does not support setting a static ip to a dsl line if you
have 5 ips but, they do it when you have only 1 ip address. Weird I know.
The guy then told me that if I need this type of support that I will have
to go and find another ISP that does support this. How nice of them to
tell me that.

So I'm left with 5 ips that I need to some how set so that I can use them.

Any help will be greatly apreasiated to get this working

Regards
Reinhold

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


Re: mpd with a dual pppoe setup

2008-02-04 Thread Reinhold

 If you are connecting to the ISP it would be better not to specify IP
 to let them be negotiated.

 How will I go ahead and set the static ips for both my wan connections?


 If IPs are static then provider itself will negotiate them every time
 same. If you will specify them and provider will request another,
 negotiation will fail. So I would not recommend you to specify them.


Hi
I spoke to our ISP today. I asked them if they can set one of my ips as
the main ip that will be assigned every time I dail in and they told me no
they can't do it because of some security thing on there side :-S

Basicaly how they explained it to me is because I have 5 ips, when we dail
in we get assigned a dynamic ip and on top of that I have to manually set
the 5 ips to what ever services I would like them to be used for. If I
want my WAN2 connection to use one of the 5 ips I have to manually set it
so that all my out going connections will be using that ip.

For this reason I have changed my WAN2 settings to this in the config file.
set ipcp ranges my-first-static-ip/32 isp-gateway/32

I know you said its not recommended, but I need to use this ip and my isp
can't set that for me. Also once I have a use for the other ips, how can I
add them? Can I create ip aliases for ng1 in the same way I will normally
do by adding them to my rc.conf file?

Thanks for all the help
Reinhold

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


Re: mpd with a dual pppoe setup

2008-02-03 Thread Reinhold
Thanks for the reply.

 Here is what I've done so far.
 /usr/local/etc/mpd5/mpd.conf


 The config you have made probably suits to mpd3/4, but not to mpd5. Mpd5
 uses alike commands, but general configuration idea is different. There is
 no mpd.links file in mpd5. Read new examples present in package.

Thanks for that, I have added my new config file below.

 set ipcp ranges static-ip-0/32 isp-gateway-0/32

 If you are connecting to the ISP it would be better not to specify IP to
 let them be negotiated.

How will I go ahead and set the static ips for both my wan connections?
For wan1 I have one ip and for wan2 I have 5 ips
I was orginally thinking of seting up proxy-arp to add the extra 4 ips on
wan2 after connecting using the first ip, but now I'm not to sure anymore.

We need these ips because some of the websites and servers that we manage
are ip restricked for added security, this is also the reason why I have a
pptp server for the people thats not in our office.

Here is my new conf file.

default:
load wan1
load wan2
load pptp

wan1:
create bundle static WAN1
set iface route default
set iface up-script /usr/local/etc/mpd/script-wan1.sh
set iface down-script /usr/local/etc/mpd/script-wan1.sh
set ipcp ranges 0.0.0.0/0 0.0.0.0/0

create link static L1 pppoe
set link action bundle WAN1
set auth authname [EMAIL PROTECTED]
set auth password passwd
set pppoe iface fxp0
set pppoe service BTConnect1
load common_setting

wan2:
create bundle static WAN2
set iface route default
set iface up-script /usr/local/etc/mpd/script-wan2.sh
set iface down-script /usr/local/etc/mpd/script-wan2.sh
set ipcp ranges 0.0.0.0/0 0.0.0.0/0

create link static L2 pppoe
set link action bundle WAN2
set auth authname [EMAIL PROTECTED]
set auth password passwd
set pppoe iface fxp1
set pppoe service BTConnect2
load common_setting

common_setting:
set bundle disable multilink

set link disable pap chap
set link accept chap
set link max-redial -1
set link mtu 1492
set link mru 1492
set link keep-alive 10 60

set ipcp yes vjcomp
set ipcp enable req-sec-dns

open

pptp:
set ippool add pool1 192.168.1.220 192.168.1.240

create bundle template B
set iface enable proxy-arp
set iface idle 1800
set iface enable tcpmssfix
set ipcp yes vjcomp
set ipcp ranges 192.168.1.1/32 ippool pool1
set ipcp dns 192.168.1.5

set bundle enable compression
set ccp yes mppc
set mppc yes e40
set mppc yes e128
set mppc yes stateless

create link template L pptp
set link action bundle B
set link enable multilink
set link yes acfcomp protocomp
set link no pap chap
set link enable chap
set link keep-alive 10 60
set link mtu 1460

set pptp self wan1-static-ip
set link enable incoming

How does mpd5 assign the ng interfaces, in my previose cong there was a
line new -i ng0 provider PPPoE0, does mpd5 do this automatically?

Thanks again for the help.
Reinhold

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


Re: mpd with a dual pppoe setup

2008-02-03 Thread Reinhold
 If IPs are static then provider itself will negotiate them every time
 same. If you will specify them and provider will request another,
 negotiation will fail. So I would not recommend you to specify them.

 For wan1 I have one ip and for wan2 I have 5 ips


 Probably for wan2 you have one interface IP plus some network routed to
 you. PPP protocol does not allows to negotiate routed network, so that
 network probably should be configured by hands somewhere.


To be honest, I don't know why we have 5 ips on wan2, I have no need for
them at all. It might be usefull once I register a proper domain for the
office, but for now we are using no-ip.org and it is working just fine.
What I do know is that if I disconnect let say wan2 for some time and then
reconnect, I will be assigned an ip address on a total different subnet
and it messes up everything, I have to manually set the ips in our router
for them to be used, this is why I'm asking how I can set the ip
addresses, on wan1 if I reboot the router where I haven't set the static
ip, it does reconnect using the correct ip, but I have never disconnected
this line for more the 1 minute.

Right now I'm using wan1 for all our outgoing ftp, one site that doesn't
like load balancing and incoming pptp connections, wan2 is used for
outgoing https and ssh connections, incoming http and ssh connections is
coming in on both wan1 and wan2 depending on which ip is registered at
no-ip.org. All other outgoing connections are using both wan1 and wan2.
All this I can do with PF, but I need to find a way to set the ips.



 How does mpd5 assign the ng interfaces, in my previose cong there was a
  line new -i ng0 provider PPPoE0, does mpd5 do this automatically?

 Interfaces will be allocated by system in order of usage. WAN1 will be
 ng0, WAN2 - ng1 and the PPTP link's interfaces will be allocated
 dynamically on connect.

I'm guesing here that because you have not specified any lines from my new
config file that it should be working and thanks for explaining how it
assignes ng interfaces.

Regards
Reinhold


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


mpd with a dual pppoe setup

2008-02-01 Thread Reinhold
set pppoe service BTconnect0
set pppoe disable incoming
set pppoe enable originate

PPPoE1:
set link type pppoe
set pppoe iface fxp1
set pppoe service BTconnect1
set pppoe disable incoming
set pppoe enable originate

# PPTP
pt0:
set link type pptp
set pptp enable incoming
set pptp disable originate
set pptp disable windowing
set pptp self 127.0.0.1

pt1:
set link type pptp
set pptp enable incoming
set pptp disable originate
set pptp disable windowing
set pptp self 127.0.0.1

pt2:
set link type pptp
set pptp enable incoming
set pptp disable originate
set pptp disable windowing
set pptp self 127.0.0.1

pt3:
set link type pptp
set pptp enable incoming
set pptp disable originate
set pptp disable windowing
set pptp self 127.0.0.1

pt4:
set link type pptp
set pptp enable incoming
set pptp disable originate
set pptp disable windowing
set pptp self 127.0.0.1

pt5:
set link type pptp
set pptp enable incoming
set pptp disable originate
set pptp disable windowing
set pptp self 127.0.0.1

pt6:
set link type pptp
set pptp enable incoming
set pptp disable originate
set pptp disable windowing
set pptp self 127.0.0.1

pt7:
set link type pptp
set pptp enable incoming
set pptp disable originate
set pptp disable windowing
set pptp self 127.0.0.1

pt8:
set link type pptp
set pptp enable incoming
set pptp disable originate
set pptp disable windowing
set pptp self 127.0.0.1

pt9:
set link type pptp
set pptp enable incoming
set pptp disable originate
set pptp disable windowing
set pptp self 127.0.0.1

pt10:
set link type pptp
set pptp enable incoming
set pptp disable originate
set pptp disable windowing
set pptp self 127.0.0.1

pt11:
set link type pptp
set pptp enable incoming
set pptp disable originate
set pptp disable windowing
set pptp self 127.0.0.1

pt12:
set link type pptp
set pptp enable incoming
set pptp disable originate
set pptp disable windowing
set pptp self 127.0.0.1

pt13:
set link type pptp
set pptp enable incoming
set pptp disable originate
set pptp disable windowing
set pptp self 127.0.0.1

pt14:
set link type pptp
set pptp enable incoming
set pptp disable originate
set pptp disable windowing
set pptp self 127.0.0.1

pt15:
set link type pptp
set pptp enable incoming
set pptp disable originate
set pptp disable windowing
set pptp self 127.0.0.1


This is an untested config and would love any input on if this will work
or not and any tips on any part of the config.
The parts that I'm not to clear on is these places
set iface route default
set ipcp ranges static-ip-1/32 isp-gateway-1/32

Any help will be apreseated

Regards
Reinhold

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


maildrop with mysql

2008-01-28 Thread Reinhold
Hi,

I'm trying to setup maildrop to work with my postf, dovecot and mysql mail
server.
I installed maildrop successfully.
This is what I used to install it

cd /usr/ports/mail/maildrop; make WITH_AUTHLIB=yes WITH_MAILDIRQUOTA=yes
install clean
At the blue prompt I selected mysql and it installed with out any problems.

I then edited the /usr/local/etc/authlib/authmysqlrc file and added my
mysql info to it but when I run the following I get this error

echo test | maildrop -V 5 -d [EMAIL PROTECTED]
maildrop[44965]: Temporary authentication failure.

This is what I see in my maillog file
authdaemond: stopping authdaemond children
authdaemond: modules=authmysql, daemons=5
authdaemond: Installing libauthmysql
authdaemond: Installation complete: authmysql
Temporary authentication failure.

Here is the config files for authdaemonrc and authmysqlrc
cat /usr/local/etc/authlib/authdaemonrc

authmodulelist=authmysql
authmodulelistorig=authuserdb authvchkpw authpam authldap authmysql
authpgsql
daemons=5
authdaemonvar=/var/run/authdaemond
subsystem=mail
DEBUG_LOGIN=0
DEFAULTOPTIONS=wbnodsn=1
LOGGEROPTS=


and autmysqlrc

MYSQL_SERVERlocalhost
MYSQL_USERNAME  postuser
MYSQL_PASSWORD  changedpasswd
MYSQL_PORT  3306
MYSQL_OPT   0
MYSQL_DATABASE  postfix
MYSQL_USER_TABLEmailbox
MYSQL_CRYPT_PWFIELD MD5
MYSQL_CLEAR_PWFIELD clear
MYSQL_UID_FIELD 125
MYSQL_GID_FIELD 125
MYSQL_LOGIN_FIELD   username
MYSQL_HOME_FIELD'/usr/local/virtual'
MYSQL_NAME_FIELDname
MYSQL_MAILDIR_FIELD maildir

I want to use maildrop to move all the emails that gets flagged as spam to
be moved into the Junk mail folder.

Any help will be apeaciated
Thanks
Reinhold

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


Re: maildrop with mysql

2008-01-28 Thread Reinhold
To answer my own question, I had the authmysqlrc file set up wrong.

Its working now


On Mon, January 28, 2008 13:06, Reinhold wrote:
 Hi,


 I'm trying to setup maildrop to work with my postf, dovecot and mysql
 mail server. I installed maildrop successfully.
 This is what I used to install it


 cd /usr/ports/mail/maildrop; make WITH_AUTHLIB=yes WITH_MAILDIRQUOTA=yes
 install clean At the blue prompt I selected mysql and it installed with
 out any problems.

 I then edited the /usr/local/etc/authlib/authmysqlrc file and added my
 mysql info to it but when I run the following I get this error

 echo test | maildrop -V 5 -d [EMAIL PROTECTED] maildrop[44965]: Temporary
 authentication failure.

 This is what I see in my maillog file
 authdaemond: stopping authdaemond children
 authdaemond: modules=authmysql, daemons=5
 authdaemond: Installing libauthmysql
 authdaemond: Installation complete: authmysql
 Temporary authentication failure.


 Here is the config files for authdaemonrc and authmysqlrc
 cat /usr/local/etc/authlib/authdaemonrc

 authmodulelist=authmysql authmodulelistorig=authuserdb authvchkpw
 authpam authldap authmysql authpgsql daemons=5
 authdaemonvar=/var/run/authdaemond subsystem=mail DEBUG_LOGIN=0
 DEFAULTOPTIONS=wbnodsn=1
 LOGGEROPTS=



 and autmysqlrc

 MYSQL_SERVERlocalhost
 MYSQL_USERNAME  postuser
 MYSQL_PASSWORD  changedpasswd
 MYSQL_PORT  3306
 MYSQL_OPT   0
 MYSQL_DATABASE  postfix
 MYSQL_USER_TABLEmailbox
 MYSQL_CRYPT_PWFIELD MD5
 MYSQL_CLEAR_PWFIELD clear
 MYSQL_UID_FIELD 125
 MYSQL_GID_FIELD 125
 MYSQL_LOGIN_FIELD   username
 MYSQL_HOME_FIELD'/usr/local/virtual'
 MYSQL_NAME_FIELDname
 MYSQL_MAILDIR_FIELD maildir


 I want to use maildrop to move all the emails that gets flagged as spam
 to be moved into the Junk mail folder.

 Any help will be apeaciated
 Thanks
 Reinhold


 ___
 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]


apache problems

2007-08-16 Thread Reinhold
atkbd0: AT Keyboard irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
sc0: System console at flags 0x100 on isa0
sc0: VGA 16 virtual consoles, flags=0x300
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
Timecounters tick every 1.000 msec
ad0: 29312MB Maxtor 33073H3 YAH814Y0 at ata0-master UDMA100
acd0: CDRW CR-48XATE/1.0G at ata1-master UDMA33
acd1: DVDROM Pioneer DVD-ROM ATAPIModel DVD-106S 0122/E1.22 at ata1-slave
UDMA66
ad4: 238475MB Seagate ST3250820AS 3.AAE at ata2-master SATA150
ad6: 238475MB Seagate ST3250410AS 3.AAA at ata3-master SATA150
ad8: 76324MB WDC WD800JD-08MSA1 10.01E01 at ata4-master SATA150
SMP: AP CPU #1 Launched!

I'm also getting this error when I do a gracful restart of apache
[Thu Aug 16 05:12:16 2007] [warn] (22)Invalid argument: Failed to enable
the 'httpready' Accept Filter
[Thu Aug 16 05:12:16 2007] [warn] (22)Invalid argument: Failed to enable
the 'httpready' Accept Filter

and in my /boot/loader.conf I have added
accf_data_load=YES
accf_http_load=YES

and kldstat reports this
Id Refs AddressSize Name
 13 0x8010 611660   kernel
 21 0x80712000 718  accf_data.ko
 31 0x80713000 1408 accf_http.ko

When I do a proper restart I'm also getting these errors
[Thu Aug 16 05:10:56 2007] [warn] child process 84880 still did not exit,
sending a SIGTERM
[Thu Aug 16 05:10:58 2007] [warn] child process 84880 still did not exit,
sending a SIGTERM
[Thu Aug 16 05:11:00 2007] [warn] child process 84880 still did not exit,
sending a SIGTERM
[Thu Aug 16 05:11:02 2007] [error] child process 84880 still did not exit,
sending a SIGKILL

In my custom kernel I have added or changed the following
options SCHED_ULE

options SMP
options IPI_PREEMPTION
options SC_DISABLE_REBOOT
options LINPROCFS
#options ACCEPT_FILTER_DATA
#options ACCEPT_FILTER_HTTP

device mptable

# Enable PF
device pf
device pflog
device pfsync

options ALTQ
options ALTQ_CBQ
options ALTQ_RED
options ALTQ_RIO
options ALTQ_HFSC
options ALTQ_PRIQ
options ALTQ_NOPCC

if any other info is needed, please let me know
Please help me to fix this problem

Thanks
Reinhold



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


Re: apache problems

2007-08-16 Thread Reinhold
Thanks

I'll switch back to 4BSD and see what happens

On Thu, August 16, 2007 20:09, Philip M. Gollucci wrote:
 Kris Kennaway wrote:

 On Thu, Aug 16, 2007 at 02:02:09PM -0400, Philip M. Gollucci wrote:

 options SCHED_ULE
 I would stick with 4BSD in 6.x series until 7.0-r then use SCHED_SMP


 You mean SCHED_ULE.


 Thats not your problem though.

 Right, I forgot the name changed back.



 --
 
 Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708
 Senior System Admin - Riderway, Inc. http://riderway.com
 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF


 Work like you don't need the money,
 love like you'll never get hurt, and dance like nobody's watching.

 ___
 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]


Re: apache problems

2007-08-16 Thread Reinhold
On Thu, August 16, 2007 20:16, Hugo Silva wrote:
 Reinhold wrote:

 Hi


 I am having some problems with apache22 on my box. What happens is,
 when I'm viewing loads and loads of pages, apache will stop responding
 untill I restart it again. This normally happens when the free memory
 shown by top gets to about +- 100MB.

 Here is my dmesg output:
 Copyright (c) 1992-2007 The FreeBSD Project.
 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
  The Regents of the University of California. All rights reserved.
 FreeBSD is a registered trademark of The FreeBSD Foundation.
 FreeBSD 6.2-STABLE #0: Thu Aug  2 12:32:26 CEST 2007
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYKERN
 module_register: module accf_data already exists!
 Module accf_data failed to register: 17
 module_register: module accf_http already exists!
 Module accf_http failed to register: 17
 ACPI APIC Table: Nvidia AWRDACPI
 Timecounter i8254 frequency 1193182 Hz quality 0
 CPU: Dual Core AMD Opteron(tm) Processor 165(1808.34-MHz K8-class
 CPU)
 Origin = AuthenticAMD  Id = 0x20f32  Stepping = 2


 Features=0x178bfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PG
 E,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT
 Features2=0x1SSE3
 AMD Features=0xe2500800SYSCALL,NX,MMX+,FFXSR,LM,3DNow!+,3DNow!
 AMD Features2=0x3LAHF,CMP
 Cores per package: 2
 real memory  = 2147418112 (2047 MB) avail memory = 2065465344 (1969 MB)
 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0 cpu1 (AP): APIC ID:  1 ioapic0: Changing APIC ID
 to 2 ioapic0 Version 1.1 irqs 0-23 on motherboard kbd1 at kbdmux0
 module_register_init: MOD_LOAD (accf_data, 0x802d0f90,
 0x807120c0) error 17
 module_register_init: MOD_LOAD (accf_http, 0x802d0f90,
 0x80713720) error 17
 acpi0: Nvidia AWRDACPI on motherboard
 acpi0: Power Button (fixed)
 Timecounter ACPI-fast frequency 3579545 Hz quality 1000
 acpi_timer0: 24-bit timer at 3.579545MHz port 0x4008-0x400b on acpi0
 cpu0: ACPI CPU on acpi0
 cpu1: ACPI CPU on acpi0
 acpi_button0: Power Button on acpi0
 pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
 pci0: ACPI PCI bus on pcib0
 pci0: memory at device 0.0 (no driver attached)
 isab0: PCI-ISA bridge at device 1.0 on pci0
 isa0: ISA bus on isab0
 pci0: serial bus, SMBus at device 1.1 (no driver attached)
 ohci0: OHCI (generic) USB controller mem 0xfe02f000-0xfe02 irq 21
 at device 2.0 on pci0 ohci0: [GIANT-LOCKED]
 usb0: OHCI version 1.0, legacy support
 usb0: OHCI (generic) USB controller on ohci0
 usb0: USB revision 1.0
 uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 10 ports with 10 removable, self powered
 ehci0: NVIDIA nForce4 USB 2.0 controller mem 0xfeb0-0xfeb000ff irq
 22
 at device 2.1 on pci0 ehci0: [GIANT-LOCKED]
 usb1: EHCI version 1.0
 usb1: companion controller, 4 ports each: usb0
 usb1: NVIDIA nForce4 USB 2.0 controller on ehci0
 usb1: USB revision 2.0
 uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
 uhub1: 10 ports with 10 removable, self powered
 atapci0: nVidia nForce CK804 UDMA133 controller port
 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe000-0xe00f at device 6.0 on pci0
 ata0: ATA channel 0 on atapci0
 ata1: ATA channel 1 on atapci0
 atapci1: nVidia nForce CK804 SATA300 controller port
 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xcc00-0xcc0f mem
 0xfe02b000-0xfe02bfff irq 23 at device 7.0 on pci0
 ata2: ATA channel 0 on atapci1
 ata3: ATA channel 1 on atapci1
 atapci2: nVidia nForce CK804 SATA300 controller port
 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xb800-0xb80f mem
 0xfe02a000-0xfe02afff irq 21 at device 8.0 on pci0
 ata4: ATA channel 0 on atapci2
 ata5: ATA channel 1 on atapci2
 pcib1: ACPI PCI-PCI bridge at device 9.0 on pci0
 pci1: ACPI PCI bus on pcib1
 rl0: RealTek 8139 10/100BaseTX port 0xac00-0xacff mem
 0xfdfff000-0xfdfff0ff irq 17 at device 7.0 on pci1
 miibus0: MII bus on rl0
 rlphy0: RealTek internal media interface on miibus0
 rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 rl0: Ethernet address: 00:0e:2e:08:44:e4
 pcib2: ACPI PCI-PCI bridge at device 11.0 on pci0
 pci2: ACPI PCI bus on pcib2
 pcib3: ACPI PCI-PCI bridge at device 12.0 on pci0
 pci3: ACPI PCI bus on pcib3
 pcib4: ACPI PCI-PCI bridge at device 13.0 on pci0
 pci4: ACPI PCI bus on pcib4
 pcib5: ACPI PCI-PCI bridge at device 14.0 on pci0
 pci5: ACPI PCI bus on pcib5
 pci5: display, VGA at device 0.0 (no driver attached)
 acpi_tz0: Thermal Zone on acpi0
 fdc0: floppy drive controller port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on
 acpi0 fdc0: [FAST]
 fd0: 1440-KB 3.5 drive on fdc0 drive 0
 sio0: 16550A-compatible COM port port 0x3f8-0x3ff irq 4 flags 0x10 on
 acpi0 sio0: type 16550A
 ppc0: Standard parallel printer port port 0x378-0x37f,0x778-0x77b irq
 7
 on acpi0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
 ppbus0: Parallel port bus on ppc0
 plip0: PLIP network interface on ppbus0
 lpt0: Printer on ppbus0
 lpt0: Interrupt

Re: The best photo gallerie software?

2007-08-06 Thread Reinhold
I will also recomment www/gallery2

I'm using it on my site with a custom theme.
I also have a few users that makes use of it to host there images and then
linking them to forums.

You can find more info on there website at http://gallery.menalto.com/
and if you want to have a look at what I've done you can go to
http://gallery.violetlan.net/main.php

On Mon, August 6, 2007 16:39, Gabor Kovesdan wrote:
 Chris Maness escribió:

 What is the best ap for producing photo galleries in the ports.  I
 would like to have one that can accept users and create separate albums
 that can either be public or private.

 I love www/gallery2. Unfortunately I cannot show you my album, as I'm
 facing DNS issues, so my page is unreachable, but if you google for it, I
 suppose you will find something.

 Regards,


 --
 Gabor Kovesdan
 FreeBSD Volunteer


 EMAIL: [EMAIL PROTECTED] .:|:. [EMAIL PROTECTED]
 WEB:   http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org


 ___
 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]


fetch and ftp problems trough pf

2007-07-29 Thread Reinhold
Hi

I'm have a bit of a fetch and ftp problem when it comes to the hosts
behind my freebsd 6.2 stable pf firewall. I can use fetch and ftp
perfectly fine from the firewall but once I want to use them on one of the
hosts behind it I get the following errors.

Trying 204.152.184.73...
Connected to ftp.freebsd.org.
220 Welcome to freebsd.isc.org.
Name (ftp.freebsd.org:hamba): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp ls
229 Entering Extended Passive Mode (|||5654|)
425 Security: Bad IP connecting.
ftp exit
221 Goodbye.

# ftp ftp.de.freebsd.org
Connected to ftp.plusline.net.
220-
220-PUBLIC FTP MIRROR
220-
220-Plus.Line AG
220-http://www.plusline.net
220-Frankfurt a. M.
220-Germany
220-
220
Name (ftp.de.freebsd.org:hamba): anonymous
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp ls
229 Entering Extended Passive Mode (|||35507|)
200 EPRT command successful. Consider using EPSV.
150 Here comes the directory listing.
ftp: poll timeout waiting before accept: Operation timed out
426 Failure writing network stream.
225 No transfer to ABOR.
ftp exit
221 Goodbye.

I have multiple IPs on my external if so I'm using pftpx as the ftp proxy
and I followed the man page and added this to my pf.conf
nat-anchor pftpx/*
rdr-anchor pftpx/*
rdr pass on $int_if proto tcp from 10.0.0.0/8 to any port 21 - 127.0.0.1
port 8021
anchor pftpx/*

I also added in the rc.conf file
pftpx_enable=YES
pftpx_flags=-p 80.81.242.5

Here is the debug outout I got from pftpx
Jul 25 22:50:13 amanzi pftpx[92813]: #1 accepted connection from 10.0.100.150
Jul 25 22:50:13 amanzi pftpx[92813]: #1 server: 220 Welcome to
freebsd.isc.org.^M
Jul 25 22:50:15 amanzi pftpx[92813]: #1 client: USER anonymous^M
Jul 25 22:50:15 amanzi pftpx[92813]: #1 server: 331 Please specify the
password.^M
Jul 25 22:50:16 amanzi pftpx[92813]: #1 client: PASS ^M
Jul 25 22:50:16 amanzi pftpx[92813]: #1 server: 230 Login successful.^M
Jul 25 22:50:16 amanzi pftpx[92813]: #1 client: SYST^M
Jul 25 22:50:16 amanzi pftpx[92813]: #1 server: 215 UNIX Type: L8^M
Jul 25 22:50:16 amanzi pftpx[92813]: #1 client: FEAT^M
Jul 25 22:50:16 amanzi pftpx[92813]: #1 server: 211-Features:^M
Jul 25 22:50:16 amanzi pftpx[92813]: #1 server:  EPRT^M
Jul 25 22:50:16 amanzi pftpx[92813]: #1 server:  EPSV^M
Jul 25 22:50:16 amanzi pftpx[92813]: #1 server:  MDTM^M
Jul 25 22:50:16 amanzi pftpx[92813]: #1 server:  PASV^M
Jul 25 22:50:16 amanzi pftpx[92813]: #1 server:  REST STREAM^M
Jul 25 22:50:16 amanzi pftpx[92813]: #1 server:  SIZE^M
Jul 25 22:50:16 amanzi pftpx[92813]: #1 server:  TVFS^M
Jul 25 22:50:16 amanzi pftpx[92813]: #1 server: 211 End^M
Jul 25 22:50:16 amanzi pftpx[92813]: #1 client: PWD^M
Jul 25 22:50:16 amanzi pftpx[92813]: #1 server: 257 /^M
Jul 25 22:50:17 amanzi pftpx[92813]: #1 client: EPSV^M
Jul 25 22:50:17 amanzi pftpx[92813]: #1 server: 229 Entering Extended
Passive Mode (|||30018|)^M
Jul 25 22:50:17 amanzi pftpx[92813]: #1 proxy: 229 Entering Extended
Passive Mode (|||59677|)^M
Jul 25 22:50:18 amanzi pftpx[92813]: #1 client: LIST^M
Jul 25 22:50:18 amanzi pftpx[92813]: #1 server: 425 Security: Bad IP
connecting.^M

I have also 2 internal IPs on each host behind the firewall. I have
attached my pf.conf file, everything works perfectly without problems
except for ftp, I also have to mention that its not all the ftp sites but
only some of them, and when I fetch from http it also works.

Thanks for the time
Reinhold

pf.conf
Description: Binary data
___
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-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]


CAM SCSI, finding out bus ID, target and LUN

2005-08-02 Thread Reinhold Huber
Hello,

I'm trying to get bus ID, target and LUN to an open fd which is afaik
opened to the device special file, e.g. /dev/cd0 .

So how do I get the information? Up to now, I didn't find IOCTL calls
(like in NetBSD) which deliver this kind of info, and first tries to
browse in CAM examples didn't help either.

I tried on FreeBSD 5.3 and currently hope that there are no big
changes to this between 5.3 and 5.4 or even -current. If I'm
wrong with this, please correct me.

Any pointer to docs or source is welcome.

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