problem with ng_ipacct

2008-09-17 Thread Alexey A. Ukhov

Hello friend!

I try to start ng_ipacct on my gif interface.
And have problem with initialization:
looks that system does not understand divert keyword

startext# ngctl
+ mkpeer ipacct ctl ctl
+ name .:ctl ipacct_gif0
+ mkpeer ipacct_gif0: ksocket gif0_in inet/raw/divert
ngctl: send msg: Protocol not supported

in all manuals it works, but not in my case.

Some ideas?
May someone can help with advice?

Thanks in advance, Alex

P.S.: loaded modules:
startext# kldstat | grep ng
71 0xc5624000 4000 ng_socket.ko
91 0xc564 4000 ng_mppc.ko
111 0xc5867000 4000 ng_ether.ko
121 0xc586b000 3000 ng_tee.ko
131 0xc586e000 4000 ng_ipacct.ko
141 0xc5875000 5000 ng_ksocket.ko

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


Re: problem with ng_ipacct

2008-09-17 Thread Alexey A. Ukhov

Hello all.

I found reason - recompile kernel with the following options.

options IPFIREWALL  #firewall
options IPFIREWALL_DEFAULT_TO_ACCEPT#allow everything by default
options IPDIVERT#divert sockets

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


FreeBSD-7 reboots hourly

2008-08-18 Thread Alexey A. Ukhov

Hello dear colleagues.

2 days I have strange behaviour on my 7.0-RELEASE-p3 server.
It started to reboot once an hour.
No any suspicious task in crontab, nothing strange in /var/log.
Just silent reboot.
I have no physical access to server - only remote one.

Question is: what could it be?
How to find what send computer to reboot?

Just extra information: I had such stuff before - installworld helped me 
for one week,

now it appears again :(

Opened services/sockets are:
nobody   proftpd647   1  tcp4   *:21  *:*
root sshd   845   4  tcp4   *:22  *:*
postfix  smtpd  5115  6  tcp4   *:25  *:*
bind named  525   20 udp4   xxx.xxx.xxx.xxx:53*:*
nobody   nginx  643   4  tcp4   *:80  *:*
root couriertcp 769   3  tcp4   *:110 *:*
root couriertcp 789   3  tcp4   *:143 *:*
root rsync  659   5  tcp4   *:873 *:*
root couriertcp 779   3  tcp4   *:993 *:*
root couriertcp 760   3  tcp4   *:995 *:*
root syslogd461   9  udp4   *:514 *:*

also on local interface (lo0) I have apache, postgrey, spamassasin.

I need some pieces of advice what to do with it and what could it be.

Thanks in advance,
Alexey A. Ukhov

P.S.: I mean hourly: I start top and just wait. last what I see is: 
0:59:59 uptime

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


FreeBSD+mpd freeze after connection establishing

2008-06-16 Thread Alexey A. Ukhov

Hello, dear guru.

I have problem with subj.
After start mpd as client and connecting to other mpd-server FreeBSD freeze.
No any log messages, kernel panics, etc.

Here is part of mpd.conf:
pptp_client:
   create bundle static B1
   set iface route default
   set ipcp ranges 0.0.0.0/0 0.0.0.0/0

   create link static L1 pptp
   set link action bundle B1
   set auth authname auk
   set auth password answerss
   set link max-redial 0
   set link mtu 1460
   set link keep-alive 20 75
   set pptp peer startext.tomsk.ru
   set pptp disable windowing
   open

Some ideas what could it be?

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


Re: FreeBSD+mpd freeze after connection establishing

2008-06-16 Thread Alexey A. Ukhov

also want to add:

it looks that system itself works if gateway was not changed.
Example - after connecting I have new interface ng0, but old gateway

# ifconfig ng0
ng0: flags=88d1UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST metric 0 
mtu 1460

   inet 10.10.1.201 -- 10.10.1.100 netmask 0x

As only I assign 10.10.1.100 as defaul gateway system freeze after first 
packet.


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


Need help/advice with gmirror after server crash

2007-10-02 Thread Alexey A. Ukhov

Hello all colleagues.

I have the following problem.
I had server with 2 SATA drives worked in gmirror.
Recently we had crash of third (system) HDD.
After FreeBSD reinstalation I see in dmesg:
ad2: 238475MB Seagate ST3250620A 3.AAD at ata1-master UDMA100
ad3: 238475MB Seagate ST3250620A 3.AAD at ata1-slave UDMA100

And do not see any UFS file slices, partitions, etc.

In /dev I have only /dev/ad2 and /dev/ad3

Mounting is impossible also:
*sml# mount /dev/ad2 /mnt*
mount: /dev/ad2: Operation not permitted

Here is some output of fdisk usage:
*sml# fdisk /dev/ad2*
*** Working on device /dev/ad2 ***
parameters extracted from in-core disklabel are:
cylinders=484521 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=484521 heads=16 sectors/track=63 (1008 blks/cyl)

fdisk: invalid fdisk partition table found
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
   start 63, size 488397105 (238475 Meg), flag 80 (active)
   beg: cyl 0/ head 1/ sector 1;
   end: cyl 168/ head 15/ sector 63
The data for partition 2 is:
UNUSED
The data for partition 3 is:
UNUSED
The data for partition 4 is:
UNUSED

*sml# fdisk /dev/ad3*
*** Working on device /dev/ad3 ***
parameters extracted from in-core disklabel are:
cylinders=484521 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=484521 heads=16 sectors/track=63 (1008 blks/cyl)

fdisk: invalid fdisk partition table found
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
   start 63, size 488397105 (238475 Meg), flag 80 (active)
   beg: cyl 0/ head 1/ sector 1;
   end: cyl 168/ head 15/ sector 63
The data for partition 2 is:
UNUSED
The data for partition 3 is:
UNUSED
The data for partition 4 is:
UNUSED

Some ideas what to do with it?
How to restore my data?

Thanks in advance,
Alexey

P.S.: with stupid trick I see that data are still there:
*sml# dd if=/dev/ad2 count=1000|strings*
/home
/usr/local/vpopmail
1000+0 records in
1000+0 records out
512000 bytes transferred in 0.139311 secs (3675228 bytes/sec)

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