how to compile kernel with options NETGRAPH ?

2004-03-20 Thread manish gautam
how can i compile my kernel with netgraph 

Actually i want to attach my own created node to the
existed ether node. so for that i need ether node.

For that i need to compile my kernel with optins
NETGRAPH.

plz explain elaborately. Reply asap

Best regards
Manish Gautam


Yahoo! India Insurance Special: Be informed on the best policies, services, tools and 
more. 
Go to: http://in.insurance.yahoo.com/licspecial/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to compile kernel with options NETGRAPH ?

2004-03-20 Thread Julian Elischer

On Sat, 20 Mar 2004, [iso-8859-1] manish gautam wrote:

> how can i compile my kernel with netgraph 
> 
> Actually i want to attach my own created node to the
> existed ether node. so for that i need ether node.
> 
> For that i need to compile my kernel with optins
> NETGRAPH.
> 
> plz explain elaborately. Reply asap

Add some of the following options to your kernel config file:
[EMAIL PROTECTED]:grep NETG /sys/conf/options
# Netgraph(4). Use option NETGRAPH to enable the base netgraph code.
NETGRAPH
NETGRAPH_ASYNC  opt_netgraph.h
NETGRAPH_ATMLLC opt_netgraph.h
NETGRAPH_BPFopt_netgraph.h
NETGRAPH_BRIDGE opt_netgraph.h
NETGRAPH_CISCO  opt_netgraph.h
NETGRAPH_ECHO   opt_netgraph.h
NETGRAPH_ETHER  opt_netgraph.h
NETGRAPH_FRAME_RELAYopt_netgraph.h
NETGRAPH_GIFopt_netgraph.h
NETGRAPH_GIF_DEMUX  opt_netgraph.h
NETGRAPH_HOLE   opt_netgraph.h
NETGRAPH_IFACE  opt_netgraph.h
NETGRAPH_IP_INPUT   opt_netgraph.h
NETGRAPH_KSOCKETopt_netgraph.h
NETGRAPH_L2TP   opt_netgraph.h
NETGRAPH_LMIopt_netgraph.h
NETGRAPH_MPPC_COMPRESSION   opt_netgraph.h
NETGRAPH_MPPC_ENCRYPTIONopt_netgraph.h
NETGRAPH_ONE2MANY   opt_netgraph.h
NETGRAPH_PPPopt_netgraph.h
NETGRAPH_PPPOE  opt_netgraph.h
NETGRAPH_PPTPGREopt_netgraph.h
NETGRAPH_RFC1490opt_netgraph.h
NETGRAPH_SOCKET opt_netgraph.h
NETGRAPH_SPLIT  opt_netgraph.h
NETGRAPH_TEEopt_netgraph.h
NETGRAPH_TTYopt_netgraph.h
NETGRAPH_UI opt_netgraph.h
NETGRAPH_VJCopt_netgraph.h
NETGRAPH_ATM_ATMPIF opt_netgraph.h

or  
kldload netgraph
kldload ng_ether
kldload "mymodule"


> 
> Best regards
> Manish Gautam
> 
> 
> Yahoo! India Insurance Special: Be informed on the best policies, services, tools 
> and more. 
> Go to: http://in.insurance.yahoo.com/licspecial/index.html
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 

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


[Re: [Mpd-users] crash]

2004-03-20 Thread Evgenii Davidov

dear freebsd-wizards!

i have installed mpd from ports and it seems that it crashes the kernel via bpf:

On Wed, Mar 17, 2004 at 07:51:55PM +0100, Michael Bretterklieber пишет:

> Mpd-3.16 had a bad bug (but it shouldn't crash the machine), make sure you
> have installed 3.17 on both machines.

yes:

mpd -v
Version 3.17 ([EMAIL PROTECTED] 13:18 16-Mar-2004)

uname -a
FreeBSD black 5.2.1-RELEASE-p3 FreeBSD 5.2.1-RELEASE-p3 #3: Thu Mar 18 11:57:57 MSK 
2004 [EMAIL PROTECTED]:/ad0/usr/obj/usr/src/sys/B3  i386

finally I've got such a core:

panic: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x2ea10689
fault code  = supervisor read, page not present
instruction pointer = 0x8:0xc0588dd8
stack pointer   = 0x10:0xd76b1410
frame pointer   = 0x10:0xd76b1478
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 = 29 (swi1: net)
trap number = 12
panic: page fault

syncing disks, buffers remaining... 3756 3756 3756 3756 3756 3756 3756 3756 3756 3756 
3756 3756 3756 3756 3756 3756 3756 3756 3756 3756
giving up on 2881 buffers
Uptime: 1d0h6m51s
Dumping 510 MB
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 352 368 
384 400 416 432 448 464 480 496
---
Reading symbols from /boot/kernel/acpi.ko...done.
Loaded symbols for /boot/kernel/acpi.ko
Reading symbols from /boot/kernel/green_saver.ko...done.
Loaded symbols for /boot/kernel/green_saver.ko
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
240 dumping++;

(kgdb) list *0xc0588dd8
0xc0588dd8 is in bpf_filter (/usr/src/sys/net/bpf_filter.c:347).
342 continue;
343 #else
344 return 0;
345 #endif
346 }
347 A = p[k];
348 continue;
349
350 case BPF_LDX|BPF_MSH|BPF_B:
351 k = pc->k;


Evgenii V Davidov


- End forwarded message -

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


Firewall - why not just block everything not to/from me?

2004-03-20 Thread Idar Tollefsen
Hello,

I'll admit that networking isn't my strongest
side, but I hope to learn some more, and this
has been bugging me a little, so I hope someone
will bear over with me and explain this.
I have a firewall setup based on the "simple"
setup in rc.firewall.
I was wondering why the blocks for RFC1918 and
other "illegal" nets on both sides of natd are as
they are? Or rather, why not just block everything
not destined for the address(es) on the external
interface(s) before natd and everything not from
the same address(es) after natd? What would I miss
that should, or shouldn't, have let in/out if I do
that?
Another question is why I need to block incoming
traffic to addresses not associated with my machine
at all? Why would, for example, my box ever receive
request destined for 192.168.0.1 when that's not my
address?
Thank your for your time.



- IT

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


How can I do this on DHCP server ?

2004-03-20 Thread Supote Leelasupphakorn
Hi list,

   I've set up a DHCP server but I'd like to know
which address (from address pool) hasn't assigned
to any machine. Is there command line to accomplish
this.

PS. I use ISC-DHCP v.3 installed from ports.

TIA,
Pote


Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


WEP problems with ndis and ath drivers

2004-03-20 Thread Kenneth D. Merry

I have a Dell Inspiron 8500 laptop with an onboard TrueMobile 1300
(Broadcom, b/g chipset) and a Netgear WAG511 cardbus card (Atheros, a/b/g
chipset).

I have a Netgear FWAG114 firewall/access point.  (Atheros based, does a, b
and g.)

I'm running FreeBSD-current from Friday, March 19th.  Both cards talk to
the access point under FreeBSD when I'm not running WEP, and neither card
works with WEP enabled.  (i.e., neither card will associate with the base
station with WEP enabled.)

I have tried putting the key in as both hex digits and as the passphrase I
used on the router to generate the hex key.  (The router claims it's a 128
bit key, but it only generates 26 hex digits, so it's really a 104 bit key
I suppose.)

Both cards work under Windows with WEP, with either the hex key or the
passphrase entered.

I have attached ifconfig and wicontrol output from both cards, and dmesg
output from the laptop.

To enable the adapter, I've been doing things like this:

ifconfig {ath0|ndis0} ssid [my ssid] wepmode on wepkey `cat wepkey`

(where wepkey is a file with the 26 digit hex key, starting with 0x)

For what it's worth, I've tried setting the authmode to shared (instead of
"open"), but all I get is the following:

ifconfig ath0 authmode shared
ifconfig: SIOCS80211: Invalid argument

The ath driver spits out the following diagnostics when I try to associate
with either the a or g part of the base station with WEP on:


ath0: authentication failed (reason 13) for 00:09:5b:66:0d:f9
ath0: authentication failed (reason 13) for 00:09:5b:66:0d:f9
ath0: authentication failed (reason 13) for 00:09:5b:66:0d:f9
ath0: authentication failed (reason 13) for 00:09:5b:66:0d:f9
ath0: authentication failed (reason 13) for 00:09:5b:66:2c:5c
ath0: authentication failed (reason 13) for 00:09:5b:66:2c:5c
ath0: authentication failed (reason 13) for 00:09:5b:66:2c:5c
ath0: authentication failed (reason 13) for 00:09:5b:66:2c:5c

(The first mac address is the a base station, the second is the g base
station.)

The ndis driver (I'm using the Dell/Broadcom Windows drivers for the
onboard chip) doesn't give any error messages, but doesn't associate
either.

If anyone has any clues on how to get this to work, I'd love to hear them.
(Or if you have a similar setup and have managed to get it to work with
WEP, that would be useful to know.)

Thanks,

Ken
-- 
Kenneth Merry
[EMAIL PROTECTED]
ath0: flags=8843 mtu 1500
ether 00:09:5b:68:27:df
media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/6Mbps)
status: no carrier
ssid [802.11a SSID] 1:[802.11a SSID]
channel 36 authmode OPEN powersavemode OFF powersavesleep 100
wepmode MIXED weptxkey 1
wepkey 1:104-bit
NIC serial number:  [  ]
Station name:   [ erebor.kdm.org ]
SSID for IBSS creation: [ 802.11a SSID ]
Current netname (SSID): [  ]
Desired netname (SSID): [ 802.11a SSID ]
Current BSSID:  [ 00:00:00:00:00:00 ]
Channel list:   [ ffe 0 1510 1515 1 0 0 0 0 2320 23 ]
IBSS channel:   [ 40 ]
Current channel:[ 40 ]
Comms quality/signal/noise: [ 0 29 0 ]
Promiscuous mode:   [ Off ]
Intersil-Prism2 based card: [ 1 ]
Port type (1=BSS, 3=ad-hoc):[ 1 ]
MAC address:[ 00:09:5b:68:27:df ]
TX rate (selection):[ 0 ]
TX rate (actual speed): [ 6 ]
RTS/CTS handshake threshold:[ 2312 ]
Create IBSS:[ Off ]
Access point density:   [ 1 ]
Power Mgmt (1=on, 0=off):   [ 0 ]
Max sleep time: [ 100 ]
WEP encryption: [ On ]
TX encryption key:  [ 1 ]
Encryption keys:[ 26 hex digit WEP key ][  ][  ][  ]
ndis0: flags=8843 mtu 1500
ether 00:90:4b:24:59:9c
media: IEEE 802.11 Wireless Ethernet autoselect
status: no carrier
ssid ""
channel 11 authmode OPEN powersavemode OFF powersavesleep 100
wepmode MIXED weptxkey 1
wepkey 1:104-bit wepkey 2:104-bit
NIC serial number:  [  ]
Station name:   [ erebor.kdm.org ]
SSID for IBSS creation: [ 802.11g SSID ]
Current netname (SSID): [  ]
Desired netname (SSID): [ 802.11g SSID ]
Current BSSID:  [ 00:00:00:00:00:00 ]
Channel list:   [          
      3fff ]
IBSS channel:   [ 11 ]
Current channel:[ 11 ]
Comms quality/signal/noise: [ 0 0 0 ]
Promiscuous mode:   [ Off ]
Intersil-Prism2 based card: [ 1 ]
Port type (1=BSS, 3=ad-hoc):