Trouble with sshd in jail

2005-02-16 Thread musikcom
I have some trouble with sshd in jail. This is description 
of the problem:

I have host system based on FreeBSD 5.1 Release with IP 
161.66.11.1 Futher I do these steps for creating jail on 
host system:

cd /usr/src
mkdir -p /jail
make world DESTDIR=/jail
cd etc
make distribution DESTDIR=/jail
mount_devfs devfs /jail/dev
cd /jail
ln -sf dev/null kernel
OK. That's easy. Next step I edit /etc/rc.conf by 
adding/editing some lines:

sendmail_enable=NO
sshd_enable=YES
syslogd_flags=-ss
and /etc/ssh/sshd_config :
ListenAddress 161.66.11.1
OK. I do #sockstat and get only:
root   sendmail   361   4   tcp4   127.0.0.1:25*:*
root   sshd   355   3   tcp4   161.66.11.2:22  *:*
After this doing alias for jail:
#ifconfig em0 alias 161.66.11.2
Then I start jail:
#jail /jail testhost 161.66.11.2 /bin/sh /etc/rc
Two problems: then jail startup, the message Starting 
sshd... stops for 10 min. That's one. Then booting 
proccess continies and finish successfull. Second problem 
is when I try to connect to jail (161.66.11.2) with ssh 
client.
---Connect 161.66.11.2...
---Login as: root
AND STOPS!!! For 7-10 min. Than password field appears, 
but I have wait so much time...

That's the problem. Please, help if you can!
Thank you!!!
-
http://mobile.ngs.ru/games - Java- ...
http://love.ngs.ru -   


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


Big problem with PAE

2005-02-02 Thread musikcom
Hello.
I have some interest problem in FreeBSD 5.2 - 5.3. Funny, 
but 5.1 is not implement for this problem. Problem 
description: when I try to switch PAE mode (I have 8 Gb 
installed memory), I have many problems with kernel. It's 
happening when making lot of proccesses (for forcing this 
problem I used ForkBomb-1.3 in ports collection).
When I typing: #forkbomb --runasroot -f(this will make 
lot of proccesses) kernel panic has appear

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xb000
fault code  = supervisor read, page not present
instruction pointer = 0x8:0xc045e830
stack pointer   = 0x10:0xf2dd89e4
frame pointer   = 0x10:0xf2dd8a18
code segment= base 0x0, limit 0xf, type 0x16
= DPL 0, pres 1, def32 1, gran 1
processor eflags= interrupt enabled, resume, IOPL=0
current process = 495 (forkbomb)
trap number = 12
panic: page fault
Sometimes, this appear:
panic: pmap_enter: invalid page directory pdir=0x8f1063, 
va=0xffe0,
sometimes this:
panic: could not copy LDT,
and this:
panic: vm_fault: fault on nofault entry, addr: e796a000

I found, that this problem is in the pmap_qremove function 
(I think so...)
Please, help!!
P.S. In message attachment, I give you copy of my GENERIC 
and dmesg.boot files
-
http://mobile.ngs.ru/games - Java- ...
http://love.ngs.ru -   




Copyright (c) 1992-2004 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 5.3-RELEASE #1: Wed Feb  2 15:22:21 UTC 2005
[EMAIL PROTECTED]:/usr/src/sys/i386/compile/GENERIC
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(TM) CPU 3.20GHz (3189.73-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf25  Stepping = 5
  
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Hyperthreading: 2 logical CPUs
real memory  = 8858370048 (8448 MB)
avail memory = 8413073408 (8023 MB)
ACPI APIC Table: INTEL  SBR20   
ACPI-0697: *** Warning: Type override - [DEB_] had invalid type (Integer) 
for Scope operator, changed to (Scope)
ACPI-0697: *** Warning: Type override - [MLIB] had invalid type (Integer) 
for Scope operator, changed to (Scope)
ACPI-0697: *** Warning: Type override - [DATA] had invalid type (String) 
for Scope operator, changed to (Scope)
ACPI-0697: *** Warning: Type override - [SIO_] had invalid type (String) 
for Scope operator, changed to (Scope)
ACPI-0697: *** Warning: Type override - [LEDP] had invalid type (String) 
for Scope operator, changed to (Scope)
ACPI-0697: *** Warning: Type override - [GPEN] had invalid type (String) 
for Scope operator, changed to (Scope)
ACPI-0697: *** Warning: Type override - [GPST] had invalid type (String) 
for Scope operator, changed to (Scope)
ACPI-0697: *** Warning: Type override - [GP1N] had invalid type (String) 
for Scope operator, changed to (Scope)
ACPI-0697: *** Warning: Type override - [WUES] had invalid type (String) 
for Scope operator, changed to (Scope)
ACPI-0697: *** Warning: Type override - [WUSE] had invalid type (String) 
for Scope operator, changed to (Scope)
ACPI-0697: *** Warning: Type override - [SBID] had invalid type (String) 
for Scope operator, changed to (Scope)
ACPI-0697: *** Warning: Type override - [SWCE] had invalid type (String) 
for Scope operator, changed to (Scope)
ACPI-0697: *** Warning: Type override - [SMIR] had invalid type (String) 
for Scope operator, changed to (Scope)
ioapic0 Version 2.0 irqs 0-23 on motherboard
ioapic1 Version 2.0 irqs 24-47 on motherboard
ioapic2 Version 2.0 irqs 48-71 on motherboard
lapic0: Forcing LINT1 to edge trigger
acpi0: INTEL SBR20 on motherboard
acpi0: Power Button (fixed)
acpi_ec0: Embedded Controller: GPE 0x8 port 0xca7,0xca6 on acpi0
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x408-0x40b on acpi0
cpu0: ACPI CPU on acpi0
acpi_button0: Sleep Button on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pci0: unknown at device 0.1 (no driver attached)
pcib1: ACPI PCI-PCI bridge at device 3.0 on pci0
pcib1: could not get PCI interrupt routing table for \\_SB_.PCI0.P0P5 - 
AE_NOT_FOUND
pci2: ACPI PCI bus on pcib1
pci2: base peripheral, interrupt controller at device 28.0 (no driver 
attached)
pcib2: ACPI PCI-PCI bridge at device 29.0 on pci2
pci4: ACPI PCI bus on pcib2
pcib3: PCI-PCI bridge at device 2.0 on pci4
pci5: PCI bus on pcib3
amr0: LSILogic MegaRAID mem 0xfea8-0xfeaf,0xfc3f-0xfc3f irq 
52 at device 0.0 on pci5
amr0: [GIANT-LOCKED]
amr0: LSILogic Intel(R) RAID