Proper way to shutdown a USB ethernet adapter?
I'm running i386 5.2-CURRENT and using the axe driver to run a Netgear FA120 USB ethernet adapter. 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Tue May 18 16:11:06 PDT 2004 It works great. I even figured out how to run usbd and modify usbd.conf to run ifconfig automatically to give it an ip address when I plug it in and take away the ip address when I unplug it. When it's up and running, ifconfig shows: axe0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 inet6 fe80::209:5bff:febd:d01a%axe0 prefixlen 64 scopeid 0x1 inet 192.168.10.100 netmask 0xff00 broadcast 192.168.10.255 ether 00:09:5b:bd:d0:1a media: Ethernet autoselect (100baseTX) status: active The problem is that no matter what I try, every time I try to shut down the system, if this device is plugged in, the system will panic with a page fault when init terminates. I get the same panic whenever I run ifconfig axe0 down. This happens regardless of whether I'm running usbd or not. This happens even if I ifconfig axe0 delete to remove the IP address before I shut down. The only way I've found to avoid the panic is to unplug the device before shutdown, and that's difficult to do remotely... Page faults during shutdowns are usually just a simple matter of memory being deallocated in the wrong order. If that's what this is, it may be something I could fix. Any suggestions on how I might trace this down? The panic looks like this: Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0xdeadc0e1 fault code = supervisor read, page not present instruction pointer = 0x8 : 0xc0487e6e stack pointer = 0x10 : 0xc4888acc frame pointer = 0x10 : 0xc4888ae0 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 = 1 (init) kernel: type 12 trap, code = 0 stopped at usb_transfer_complete+0xba: movzbl 0x3(%eax),%eax ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Proper way to shutdown a USB ethernet adapter?
I'm running i386 5.2-CURRENT and using the axe driver to run a Netgear FA120 USB ethernet adapter. 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Tue May 18 16:11:06 PDT 2004 The problem is that no matter what I try, every time I try to shut down the system, if this device is plugged in, the system will panic with a page fault when init terminates. Sorry, I can't answer your question. Just another question to you: is your USB chipset on the motherboard a VIA 83C572 ? The motherboard is a decrepit old American Megatrends Titan 3 PCI EISA Pentium motherboard from the mid-90s that doesn't have native USB support. I'm using a Belkin F5U219 PCI card to give me USB 2.0 support. I've got a USB mouse and a USB storage device, but I haven't gotten around to setting those up yet. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
pf synproxy and fragments
I'm running 5.3 stable. I've recently switched from ipfilter to pf to take advantage of the traffic shaping, and I've run into something I don't understand. I read the documentation on the synproxy option and it sounded good to me, so I replaced my keep state rules with synproxy state. After doing this, I noticed that my filesharing programs stopped downloading. I switched back to keep state for the rules that handled my filesharing traffic and the problem went away. Today my brother called and told me that he couldn't get to my website anymore because his firewall said that my http service was sending a fragment attack. I replaced synproxy state with keep state for the rules pertaining to httpd and the problem went away. Specifically, the http traffic rule was (formatted): pass in quick on $ext_if proto tcp from any to any port 80 flags S/SAFR synproxy state queue(http_out,ack_out) Having tried a few other firewalls in the past, I know that some of them don't like fragmented packets at all. This week's events make me believe that pf's synproxy option is causing my server to send out fragments, and those fragments aren't well-received. Is this normal with synproxy? Am I misusing synproxy? Is this just a coincidence? Luke Dean ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: help with pf
On Sun, 3 Apr 2005, Brian John wrote: altq on $ext_if priq queue mail priority 13 queue ssh priority 12 queue web priority 14 I see one syntactical thing you missed. You have to define your child queues in your altq declaration. Something like: altq on $ext_if priq queue {mail, ssh, web} Also, after you get the syntax right, unless the maximum bandwidth of your outside line is the same as the maximum bandwidth of your network card (does this ever happen?) you're going to want to use the bandwidth keyword in that declaration also, and pick a proper value for it. Picking the right bandwidth value seems to be an art form that requires a lot of trial and error and liberal use of pfctl -vvs queue If traffic shaping isn't working and your queues are always empty, then the number is too high. If the queues are filling up and dropping too many packets, then either the number is too low or you're just generating more traffic than you can handle well. Luke Dean ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How can I log every login via telnet?
On Thu, 7 Apr 2005, Anthony Atkielski wrote: Is there a way to log every login via telnet? The system already records all logins in /var/log/auth.log. You could pull out the telnet entries with grep if those are the only ones you're interested in. If you're wanting to build your own log then I don't know. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: messages from dhclient
I have installed dhcp to get my FreeBSD system on line, a machine which I am trying to set up as a web server. I used sysinstall and it seems to work correctly (this e-mail is coming from my Linux workstation). However, when working on the FreeBSD machine I keep getting the following message: date time dhclient: send_packet: permission denied. What does this mean? I cannot find a reference to it in the man files. It is a nuisance. When I am editing a config file with vi, this message get written into the file, and over cofig file lines. How can I turn it off. This happened to me briefly last week when my ISP decided to replace the router/DHCPserver that I happened to be connected to with a new one with a new IP address. dhclient wasn't too happy about that. I rebooted and all was fine, but in the meantime I got this message. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Reusing a port after a crash
From time to time, my torrent filesharing application will crash or need to be killed. The application is configured to listen on a specific port. If I try to restart the application after improper termination, I receive a fatal error message stating that the port is already in use. Before restarting the application, I verify that the application did indeed shut down (via 'ps -aux') and 'sockstat -l' shows that no application is using the port in question, so I don't understand how the port could still be 'in use'. The only way I've found to restart the application after improper termination is to reboot the whole system. Is there something else I could try? Does this kind of thing tend to happen to network applications when they crash or could this be specific to my application? Luke Dean ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]