Re: Issues with PF and 7.1

2009-02-28 Thread Zinevich Denis

Hello.
Sorry, but i have no exact answer to your question.
I have problems with pf on 7.1 too.
But i`ve noticed difference between 7.1-p2 and 7.1-p3
My problem appears only in p3 not in p2
may your problem is fixed in p3 ?
Michael K. Smith - Adhost пишет:

** Apologies to folks already subscribed to p...@freebsd.org.  This was posted 
there as well but I'm not getting any responses at all so I thought it best to 
post it here as well. **


We are having memory issues with PF and 7.1p2 that we didn't experience with 
6.3.   Here's what happens.

# pfctl -f /usr/local/etc/pf.conf
/usr/local/etc/pf.conf:135: cannot define table smtpd_reject_policyd: Cannot 
allocate memory
/usr/local/etc/pf.conf:139: cannot define table smtpd_reject_spam: Cannot 
allocate memory
pfctl: Syntax error in config file: pf rules not loaded
# pfctl -t smtpd_reject_policyd -T flush
94390 addresses deleted.
# pfctl -t smtpd_reject_spam -T flush
62464 addresses deleted.
# pfctl -f /usr/local/etc/pf.conf

So, after I flush the tables it loads.  Sometimes, however, we get a global out of memory 
error " DIOCADDRULE: Cannot allocate memory "

Here are my entries from pf.conf for various limits.  Everything else is 
defaults.

set limit tables 500
set limit table-entries 25
set limit { states 100, src-nodes 30, frags 10 }
set optimization normal
set skip on lo0
set state-policy if-bound
set timeout interval 300
set timeout src.track 1200

Finally, the box is using EM interfaces with VLAN's and has 4 Gig of physical 
RAM.  There are two PF boxes in Active/Failover and the errors show up on both, 
although they seem to show up more often on the Backup device, which seems odd.

Any help would be greatly appreciated.  


Regards,

Mike

--
Michael K. Smith - CISSP, GISP
Chief Technical Officer - Adhost Internet LLC
mksm...@adhost.com
w: +1 (206) 404-9500 f: +1 (206) 404-9050
PGP: B49A DDF5 8611 27F3  08B9 84BB E61E 38C0 (Key ID: 0x9A96777D)





___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


SAN, distributed filesystem

2008-08-31 Thread Zinevich Denis

Hi all.
Environment:
SAN attached via fiber to 4 servers with freebsd 6.3
The question is:
What filesystem i should use to have rw access to SAN from any of 4 
servers ?


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


ipnat gre and pptp

2008-06-21 Thread Zinevich Denis

Hi.
Does anybody know how to make ipnat map/or proxying pptp traffic ?
Problem is:
mpd server with pptp - somwhere in internet.
Gateway with ipnat.
Clients behind gateway can not access pptp server at same time.
I found something like:
map bce1 0/0 -> 0/0 proxy port 1723 pptp/tcp
but it doesn`t work :-(
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


mpd limited connections

2008-06-06 Thread Zinevich Denis

Hi all.
I have very strange problem as for me.
FreeBSD 6.3. mpd5. it is configured to server standard pptp requests.
Everybody listed in mpd.secret can connect with no problems. But...
But only till ng13 is created. After connecting 14 users nobody can 
connect anymore... If somebody dissconects new user can login.

But never more than 14 users
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Help : about FreeBSD 6.2 kernel error!

2008-03-23 Thread Zinevich Denis
1. try to compile kernel without SMP.
2. Examine hardware.

刘德安 пишет:
> FreeBSD GFAOS 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Mon Jan  7 15:29:50 UTC 
> 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP  i386
> 
> when rebooting system
> Error messages:
> 
> kernel: Fatal trap 12: page fault while in kernel mode 
> kernel: cpuid = 0; apic id = 00 
> kernel: fault virtual address = 0x9da324e4 
> kernel: fault code = supervisor write, page not present 
> kernel: instruction pointer = 0x20:0xc059c7be 
> kernel: stack pointer = 0x28:0xe3ea9c50 
> kernel: frame pointer = 0x28:0xe3ea9c88 
> kernel: code segment = base 0x0, limit 0xf, type 0x1b 
> kernel: = DPL 0, pres 1, def32 1, gran 1 
> kernel: processor eflags = interrupt enabled, resume, IOPL = 0 
> kernel: current process = 13 (swi4: clock) 
> kernel: trap number = 12 
> kernel: panic: page fault 
> kernel: cpuid = 0 
> kernel: Uptime: 6m53s 
> kernel: Cannot dump. No dump device defined. 
> kernel: Automatic reboot in 15 seconds - press a key on the console to abort
> 
> 
> who cat help me?
> thanks!!!
>   
> --
> Oddvar
> 2008-03-24
> 
> ___
> 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: Best practice: sendmail and SMTP auth

2008-03-12 Thread Zinevich Denis
I dont remember if it can be done by sendmail, but with exim it can be 
done easy.

Doug Poland пишет:

Hello,

Not sure if this is the most appropriate place for this question, but
since all my servers are FreeBSD 6.x/7.x, I'll give it a go...

I am considering setting up SMTP auth on a number of sendmail
instances that I control.  After much googling and reading, it is not
clear to me that a server with SMTP auth configured/enabled can relay
mail in both auth and non-auth modes.

If one sendmail configuration cannot accommodate both SMTP auth and
access.db, does one setup a dedicated SMTP auth host with a SMART_HOST
option and feed incoming email to an non-auth instance of sendmail?

Sorry if my terminology is ambiguous, I'm not a sendmail professional
by day.


--
Regards,
Doug

___
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: ports problems

2008-02-24 Thread Zinevich Denis

Download sources for software you need, and compile it manualy.
but firstly i`d try to delete ports directory, and fetch ports again.
Daniel Molina Wegener пишет:

Hi,

I've updated and upgraded the ports tree to the "." branch
but serveral of ports doesn't compile or are completly absent
on the repositories.

What can I do?, I need the system working.





Best regards,


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


Re: pxeboot, TFTP only, NFS MOUNT RPC error: 60, timeout

2008-02-07 Thread Zinevich Denis

I tried with LOADER_TFTP_SUPPORT and LOADER_NFS_SUPPORT both enabled.
Also I tried with nfs disabled and tftp enabled. All was made under 6.2 
stable, i386 arch.

Only once i`ve got it working without timeout, but I could not repeat this.
I`ll be back to this question in about one or two month with 6.2 and 
amd64 arch, so may be I`ll discover something new.

Zinevich Denis wrote:
It does not work. I`ve tried. But as I found in forums and mailing 
lists it randomly helps sometimes.


Please don't top-post. I have a comment in 
src/sys/boot/i386/loader/conf.c v1.26 (RELENG_7) saying:


#if defined(LOADER_NFS_SUPPORT) && defined(LOADER_TFTP_SUPPORT)
#error "Cannot have both tftp and nfs support yet."
#endif

So at least the intent is that NFS and TFTP are mutually exclusive. 
Since the OP has both working at the same time, there's something 
wrong. Which version are you using, and which architecture?


I'm not really able to help you debug further, so I suggest filing a 
PR if one doesn't exist already.


Erik
___
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: pxeboot, TFTP only, NFS MOUNT RPC error: 60, timeout

2008-02-07 Thread Zinevich Denis
It does not work. I`ve tried. But as I found in forums and mailing lists 
it randomly helps sometimes.
 
This should "Just Work", and I've had it work about half a year ago on 
6.2. Which version are you compiling on?


The tutorial I have handy[1] says to compile with:

   make -DLOADER_TFTP_SUPPORT=YES

I'm not sure if it makes a difference. Anyhow, the boot loader source 
looks like it can't cope with both TFTP and NFS at the same time, so 
there might be a bug in there after all.


Erik

[1] http://www.locolomo.org/pub/pxeboot/index.html
___
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: pxeboot, TFTP only, NFS MOUNT RPC error: 60, timeout

2008-02-07 Thread Zinevich Denis

I confirm it.
Seems to be loader bug.
I`ve tried to compile it without nfs support at all... but it didn`t help.
I`ve been searching for solution for about a week and found nothing.

Hey,

I've been building FreeBSD jumpstart infrastructure and it mostly 
works.  I'm using tftp  to boot off the network in to scripted 
sysinstall.  I compiled the boot loader with tftp support but every 
time I boot it will first try nfs, then timeout after around two 
minutes (it cannot find nfs) and finally boot from tftp.  Is there any 
way that I can make it boot from tftp straight away rather than wait 
for nfs to timeout?


This is how I build the boot loader:

cd /usr/src/sys/boot
sudo make clean
sudo make LOADER_TFTP_SUPPORT=YES
sudo cp i386/pxeldr/pxeboot /jumpstart/tftpd/boot/pxeboot.0
sudo cp i386/boot0/boot0 /jumpstart/tftpd/boot/
sudo cp i386/boot2/boot1 /jumpstart/tftpd/boot/
sudo cp i386/boot2/boot2 /jumpstart/tftpd/boot/
sudo cp i386/mbr/mbr /jumpstart/tftpd/boot/

This is my loader.conf:

# loader.conf
init_path="/stand/sysinstall"
rootfs_load="YES"
rootfs_name="/boot/mfsroot"
rootfs_type="mfs_root"
vfs.root.mountfrom="ufs:/dev/md0c"
autoboot_delay=0

And loader.rc:

#loader.rc
echo hopping the kernel...
include /boot/loader.4th
start


Many thanks,


Jedrek
___
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: Dell 1950

2008-02-02 Thread Zinevich Denis
I had a problem with 1950. It emerged that this servers have problems 
with reboot.

After executing reboot commant server hangs just after printing uptime.
http://lists.freebsd.org/pipermail/freebsd-stable/2006-October/029108.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Missing kernel configuration files

2008-01-27 Thread Zinevich Denis
I had such mistake several days ago. In my case the reson was that I 
forgot that I`m usin amd64 arch, and I placed config to 
/usr/src/sys/i386/conf, but the right place was /usr/src/sys/amd64/conf


PS: Ну если не говоришь ты хорошо по английски, то хоть не позорь родной 
союз :-). Тему письма надо указывать.

JSCB Alokabank пишет:

Please help me
I'am beginer in FreeBSD
I try to rebuild kernel files for optimizations system.
Whate i gona do?
sorry but i dont speake englash language wery well.
look to include files this is my build kernel.
I'am talk on russian.

make buildkernel KERNCONF=KERNEL
ERROR: Missing kernel configuration file(s) (KERNEL)
*** Error code 1

Stop in /usr/src
*** Error code 1

Stop in /usr/src
#

Лидер бывает только один - UzNet
www.uznet.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]"


Re: Missing kernel configuration files

2008-01-27 Thread Zinevich Denis

I had such mistake several days ago. In my case the reson was that I
forgot that I`m usin amd64 arch, and I placed config to
/usr/src/sys/i386/conf, but the right place was /usr/src/sys/amd64/conf

PS: Ну если не говоришь ты хорошо по английски, то хоть не позорь родной
союз :-). Тему письма надо указывать.
JSCB Alokabank пишет:

Please help me
I'am beginer in FreeBSD
I try to rebuild kernel files for optimizations system.
Whate i gona do?
sorry but i dont speake englash language wery well.
look to include files this is my build kernel.
I'am talk on russian.

make buildkernel KERNCONF=KERNEL
ERROR: Missing kernel configuration file(s) (KERNEL)
*** Error code 1

Stop in /usr/src
*** Error code 1

Stop in /usr/src
#

Лидер бывает только один - UzNet
www.uznet.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]"


Re: Syslog warnings: 15 x No buffer space available

2008-01-27 Thread Zinevich Denis

Probably you shoul look to:
netstat -m

4/1421/1425 mbufs in use (current/cache/total)
0/614/614/25600 mbuf clusters in use (current/cache/total/max)

netstat -Lan

give you a link to good article. It`s in russian, but you can see it for 
commands

and sysctl variables which may help you.
http://www.opennet.ru/base/net/tune_freebsd.txt.html

Anyone who could point me to how to remedy this?

Thanks,

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


kernel: Fatal trap 12: page fault while in kernel mode

2008-01-04 Thread Zinevich Denis

Hi all.
Some problem with free.
I`ve got such mess in log:

Jan  4 22:47:09 fs kernel: Fatal trap 12: page fault while in kernel mode
Jan  4 22:47:09 fs kernel: fault virtual address= 0x3e
Jan  4 22:47:09 fs kernel: fault code = supervisor read, page not present
Jan  4 22:47:09 fs kernel: instruction pointer  = 0x20:0xc060cc24
Jan  4 22:47:09 fs kernel: stack pointer= 0x28:0xe529ac30
Jan  4 22:47:09 fs kernel: frame pointer= 0x28:0xe529ac34
Jan  4 22:47:09 fs kernel: code segment   = base 0x0, limit 0xf, 
type 0x1b

Jan  4 22:47:09 fs kernel: = DPL 0, pres 1, def32 1, gran 1
Jan  4 22:47:09 fs kernel: processor eflags = interrupt enabled, 
resume,IOPL = 0

Jan  4 22:47:09 fs kernel: current process  = 9 (thread taskq)
Jan  4 22:47:09 fs kernel: trap number  = 12
Jan  4 22:47:09 fs kernel: panic: page fault
Jan  4 22:47:09 fs kernel: Uptime: 4d0h37m10s
Jan  4 22:47:09 fs kernel: Physical memory: 2013 MB
Jan  4 22:47:09 fs kernel: Dumping 243 MB: 228 212 196 180 164 148 132 
116 100 84 68 52 36 20 4

Jan  4 22:47:09 fs kernel: Dump complete
Jan  4 22:47:09 fs kernel: Automatic reboot in 15 seconds - press a key 
on the console to abort

Jan  4 22:47:09 fs kernel: Rebooting...

Problem repeats for 6.2-RELEASE.

kgdb kernel.debug /var/crash/vmcore.0  - returns this:

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x3e
fault code  = supervisor read, page not present
instruction pointer = 0x20:0xc060cc24
stack pointer   = 0x28:0xe529ac30
frame pointer   = 0x28:0xe529ac34
code segment= base 0x0, limit 0xf, type 0x1b
   = DPL 0, pres 1, def32 1, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 9 (thread taskq)
trap number = 12
panic: page fault
Uptime: 4d0h37m10s
Physical memory: 2013 MB
Dumping 243 MB: 228 212 196 180 164 148 132 116 100 84 68 52 36 20 4

#0  doadump () at pcpu.h:195
195 __asm __volatile("movl %%fs:0,%0" : "=r" (td));

I think it`s hardware problem. This machine has been working for about 9 
months with no problems but I dont know how to correctly find the 
problem.


uname -a:
FreeBSD fs.ngc.net.ua 8.0-CURRENT FreeBSD 8.0-CURRENT #3: Mon Dec 31 
05:07:25 EET 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/FS  i386

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