devd usage

2006-12-16 Thread Maxim Vetrov

Hi,

 I'm running 6.1 on Toshiba notebook SAtellite L100. Get stuck with 
auto config of wireless cardbus adapter (D-Link DWL-G650). I want to 
load kernel module (if_ath.ko) automatically when I insert it into the 
slot. I found that I need /etc/devd.conf to be configured properly. 
There is a Deqna example that is quite self-explaining excluding those 
magic numbers assigned to manufacturer and product. Where I can get 
these?


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


Need help restoring from filesystem failure

2006-06-26 Thread Maxim Vetrov

Hi to all,

I'm running 6.1 release compiled from source. For a half of june it run 
smoothly. But then somehow I got a filesystem crash - it just refused to 
start after reaching fstab mounts, saying that fs (/data) was not 
properly dismounted:

...
WARNING: /data was not properly dismounted
/data: bad dir ino 2 at offset 16384: mangled entry
panic: ufs_dir_bad: bad dir
...

I rebooted in single user mode and run fsck -f on each filesystem. All 
but one were clean.  I agreed on automatic correction suggested by fsck 
(shame on me, I do not remember what the message was about). Fsck 
applied suggested change and marked fs as clean. Then I tried to mount 
the fs:

 mount /dev/ad0s1f /data
Instead I got complains about not properly dismounting and page fault 
while at kernel mode (page not present).
I run fsck one more time (it didn't find any problem this time) and 
rebooted the system. The first problem showed up. Now I have vicious 
circle: mangled entry and page fault.


Is there any way to correct the problem? I was not so excited if it 
had been /var or even /usr, but it was /data with all of my personal 
projects and I do not have backups!!!


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


Re: Slow floppy operation

2006-03-17 Thread Maxim Vetrov

Hi,
From dmesg:

fdc0: floppy drive controller port 0x3f0-0x3f5,0x3f7 irq6 drq 2 on acpi0
fdc0: [FAST]
fd0: 1440-KB 3,5 drive on fdc0 drive0

As you can see, it's usual floppy drive for 3.5. After I'd bought that 
notbook, I installed FreeBSD 5.4 and used floppy quite often, the speed 
was about ten times faster To be sure that the same diskette is good 
I've dd'ed it on my desktop, the stats is:


2880+0 records in
2880+0 records out
1474560 bytes transferred in 48.589449 secs (30347 bytes/sec)

So, it's a matter of some configuration hints (let's exclude hardware 
for a while). I know that it's not possible to find a solution for my 
strange problem not having my notebook. So I'll be thankful if you 
suggest some checklist to follow to be sure it's configured properly... 
or not properly :-)

It might include kernel options, device.hints, etc.

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


Slow floppy operation

2006-03-16 Thread Maxim Vetrov

Hi,

I've not used floppy in my notebook for a while, then when I did, I 
found that it worked very slowly :-)

Here is the stats:

 dd if=boot.flp of=/dev/fd0
2880+0 records in
2880+0 records out
1474560 bytes transferred in 607.571848 secs (2427 bytes/sec)
...

Notebook is a Sharp Mebius PC-MJ730P, system is 6.0-RELEASE, compiled 
from sources. I don't know where to dig.

Any suggestions are welcome.

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


[was Re: IPFILTER rule error]

2006-02-16 Thread Maxim Vetrov
Yes, that's it! Thanks! I've managed to miss somehow your message, 
Giorgos, and flooded a bit :-)


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


Re: IPFILTER rule error

2006-02-15 Thread Maxim Vetrov

Hi!

Thahks for your attention!

 First of all you really need to read the ipfilter section of the 
FreeBSD handbook...

 [EMAIL PROTECTED]

I've read the handbook. Good starting point! :-) Given that I just 
_TEST_ ipf config ported from 5.4 to 6.0 on local LAN, I do not violate 
theoretical background of firewalling. Grouping is used to differentiate 
inbound\outbound traffic, probably I will use it to diff interfaces.


 I don't know if you posted the whole ruleset or if you cut out what 
seemed irrelevant to keep the post short...

 Erik Norgaard

Yes, I do not show you the whole story about ipf.rules, only the 
skeleton and the problematic lines. The reason for that is that ipfilter 
works with basic ipf.rules, and ipfstat confirms that. But no logs as 
expected (but eventually I've found where log info went: it appeared at 
/var/log/messages, and not in /var/log/security as configured!). By the 
way, I prefer to use syslogd because it allows for log rotation, which 
is god! :-)


Problem with no such process appeared when I added to ipf.rules line
 pass out quick on rl0 \
 proto udp from any to any port = sunrpc keep state group 20

It doesn't matter whether port parameter is expressed as a name or a 
number. I have other lines written both types and all of that works! 
Again, the error is presented only when I insert the above line in 
ipf.rules. This is an outbound rule; I've had the inbound rule in basic 
setup (you can see it in my previous post) and it ran just well!


Ok, in the attachment there is the whole story about ipf.rules as it is. 
As I've found from the handbook this way of firewalling is called 
inclusive %-).


Regards,
Muxas

P.S. I apologize for my message timing, it's the second question i'll 
ask after ipf :-)

#  External interface - ppp0   #


#%% Block-and-log everything that is not allowed explicitly 
#block in log on ppp0 all head 10
#block out log on ppp0 all head 15

#%% Allow DNS requests %
#pass out quick on ppp0 \
#  proto tcp/udp from any to any port = domain keep state group 15

#%% Allow outbound HTTP packets 
#pass out quick on ppp0 \
#  proto tcp from any to any port = 80 keep state keep frags group 15

#%% Allow outbound FTP packets %
#pass out quick on ppp0 \
#  proto tcp from any to any port = 21 keep state group 15

#%% Allow inbound FTP-data packets %
#pass in quick on ppp0 \
#  proto tcp/udp from any port = 20 to any port  1024 keep state group 10

#%% Allow outbound Jabber connections %%
#pass out quick on ppp0 \
#  proto tcp from any to any port = 5222 keep state group 15

#%% Allow POP3 outgoing connections 
#pass out quick on ppp0 \
#  proto tcp/udp from any to any port = 110 keep state group 15

#%% Allow SMTP outgoing connections 
#pass out quick  on ppp0 \
#  proto tcp/udp from any to any port = 25 keep state group 15

#%% Allow outgoing CVS connections %
#pass out quick on ppp0 \
#  proto tcp/udp from any to any port = 5999 keep state group 15 


#  Internal interface #1 - rl0 (10.0.1.0/29)   #


#% Block-and-log everything that is not allowed explicitly %
block in log on rl0 all head 20
block out log on rl0 all head 25
#pass in  on rl0 from 10.0.1.1/29 to any group 20
#pass out on rl0 from any to 10.0.1.1/29 group 25

#% Allow ping %%
pass in quick on rl0 \
  proto icmp all keep state group 20
pass out quick on rl0 \
  proto icmp all keep state group 25

#% Allow DNS requests %%
pass in quick on rl0 \
  proto tcp/udp from any to any port = domain keep state group 20

#% Allow DHCP requests %
pass in quick on rl0 \
  proto tcp/udp from any port = 68 to any port = 67 group 20

#% Allow HTTP requests from local network %%
pass in quick on rl0 \
  proto tcp from any to any port = 80 keep state keep frags group 20

#% Allow FTP requests from local network %%%
pass in quick on rl0 proto tcp from any to any port = 21 keep state group 20

#% Allow inbound FTP-data packets 

Re: IPFILTER rule error

2006-02-14 Thread Maxim Vetrov

Hi,

Sorry, I really do not want you to guess! Here is what you asked:

kernel conf:
---
...
optionsIPFILTER
optionsIPFILTER_LOG
#optionsIPFILTER_DEFAULT_BLOCK
#optionsIPSTEALTH
...
---

rc.conf:
---
...
ifconfig_rl0=inet 10.0.1.1 netmask 255.255.255.248
...
ipnat_enable=YES
ipfilter_enable=YES
ipmon_enable=YES
...
---

services:
---
...
sunrpc  111/tcprpcbind  #SUN Remote Procedure Call
sunrpc  111/udprpcbind  #SUN Remote Procedure Call
...
---

ipf.rules:
---
block in log on rl0 all head 20
block out log on rl0 all head 25


pass in quick on rl0 \
 proto tcp/udp from any to any port = sunrpc keep state group 20
pass in quick on rl0 \
 proto tcp/udp from any to any port = 717 keep state group 20
pass out quick on rl0 \
 proto udp from any to any port = 111 keep state group 20


Steps to load the rules:

ipf -Fa
ipf -f /etc/ipf.rules

1:ioctl (add/insert rule): No such process

And there is one more problem - despite that I have packet logging
enabled by default (-Ds) through syslogd, log is empty!

syslog.conf:

...
security.*  /var/log/security
...

That file exists and have root rw permissions.

If this help: after I'd moved to 6.0 from 5.4
(backup-format-install-restore), this config stopped to work. I know
that I'm doing something wrong but what exactly?

Regards,
Muxas

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


IPFILTER rule error

2006-02-13 Thread Maxim Vetrov

Hi,

I'm running FreeBSD 6.0, IPFilter 4.1.8(416).

Setting line for rpc outbound calls

pass out quick on rl0 \
 proto udp from any to any port = sunrpc keep state group 20

gives me this error:

ioctl (add/insert rule): No such process

What is the process i'm missing?

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


Re: dhclient fixed leases

2006-01-15 Thread Maxim Vetrov

Erik Nørgaard wrote:


Maxim Vetrov wrote:

I'm on 6.0 release. The default will not help - I have several 
networks without dhcpd. So 'default option routers 10.0.1.5;' will 
work only for one and fail for others.



Well, in that case I have dificult seeing how fixed leases will help 
you, how should dhclient choose which fixed lease to use? One fixed 
lease or one default would work.



Hi,

This is an excerpt from 'man dhclient.conf':

The DHCP client may decide after some period of time (see PROTOCOL
TIMING) that it is not going to succeed in contacting a server.  At 
that
time, it consults its own database of old leases and tests each one 
that
has not yet timed out by pinging the listed router for that lease 
to see

if that lease could work.  It is possible to define one or more fixed
leases in the client configuration file for networks where there is no
DHCP or BOOTP service, so that the client can still automatically 
config-

ure its address...

I excluded other fixed lease declarations from my conf for clarity.

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


dhclient fixed leases

2006-01-13 Thread Maxim Vetrov

Hi to all,

I can't configure dhclient to use fixed lease on a network with no dhcp 
server. I use my notebook to connect to several different networks. Some 
of them have dhcp servers, some do not. Just tired of manual config on 
the latter. I've done man dhclient.conf and found that I can cope with 
that. so there is my dhclient.conf:


timeout 15;
retry 180;
reboot 5;

lease {
   interface sis0;
   fixed-address 10.0.1.4;
   option routers 10.0.1.5;
   option host-name mobile;
   option subnet-mask 255.255.255.248;
   expire 5 2010/1/1 00:00:00;
   renew 5 2010/1/1 0:0:0;
   rebind 5 2010/1/1 0:0:0;
}

interface sis0 {
   send dhcp-lease-time 600;
   send host-name mobile;
   request 
broadcast-address,routers,subnet-mask,domain-name,domain-name-servers,time-servers,netbios-name-servers;

}

When it boots these messages are displayed:
Trying recorded lease 10.0.1.4
bound: renewal in 125116757 seconds.
and nothing happen.

The peer's address on the othe side of cross-wired cable is 10.0.1.5 
netmask 255.255.255.248. When I

 ifconfig sis0 inet 10.0.1.4 netmask 255.255.255.248 up
and ping connection is alive.

What do I do wrong?

Muxas

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


Re: dhclient fixed leases

2006-01-13 Thread Maxim Vetrov

Erik Norgaard wrote:


Maxim Vetrov wrote:

I can't configure dhclient to use fixed lease on a network with no 
dhcp server. I use my notebook to connect to several different 
networks. Some of them have dhcp servers, some do not. Just tired of 
manual config on the latter. I've done man dhclient.conf and found 
that I can cope with that. so there is my dhclient.conf:


timeout 15;
retry 180;
reboot 5;

lease {
   interface sis0;
   fixed-address 10.0.1.4;
   option routers 10.0.1.5;
   option host-name mobile;
   option subnet-mask 255.255.255.248;
   expire 5 2010/1/1 00:00:00;
   renew 5 2010/1/1 0:0:0;
   rebind 5 2010/1/1 0:0:0;
}

interface sis0 {
   send dhcp-lease-time 600;
   send host-name mobile;
   request 
broadcast-address,routers,subnet-mask,domain-name,domain-name-servers,time-servers,netbios-name-servers; 


}

When it boots these messages are displayed:
Trying recorded lease 10.0.1.4
bound: renewal in 125116757 seconds.
and nothing happen.

The peer's address on the othe side of cross-wired cable is 10.0.1.5 
netmask 255.255.255.248. When I

  ifconfig sis0 inet 10.0.1.4 netmask 255.255.255.248 up
and ping connection is alive.

What do I do wrong?



1st: Which version of FreeBSD do you use? There is significant 
difference between 5.x and prior and 6.x and posterior.


There was a discussion a few weeks ago, see Wireless NIC in FreeBSD 
6.0, I suggested to try to include a default section in the 
interface section, but the I never got an answer if this worked.


Regards, Erik

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



I'm on 6.0 release. The default will not help - I have several 
networks without dhcpd. So 'default option routers 10.0.1.5;' will work 
only for one and fail for others.


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


make release error

2005-11-15 Thread Maxim Vetrov

Hi,

I'm running 5.4 and trying to make release of 6.0. While making release, 
I got next error:


...
cvs checkout: Updating doc/zh_TW.Big5/share
cvs checkout: Updating doc/zh_TW.Big5/share/sgml
if [ -d /usr/src/release/../../ports/distfiles/ ]; then  cp -rp 
/usr/src/release/../../ports/distfiles 
/data/RELEASE_60/bin/usr/ports/distfiles;  else  mkdir -p 
/data/RELEASE_60/bin/usr/ports/distfiles;  fi

make: don't know how to make checksum-recursive. Stop
*** Error code 2

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

What might cause it?

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