Re: UDP packet spoofed LAN source address?

2010-10-18 Thread Morgan Wesström
On 2010-10-17 19:36, Robert Bonomi wrote: >> From owner-freebsd-questi...@freebsd.org Sun Oct 17 09:04:59 2010 >> Date: Sun, 17 Oct 2010 16:06:12 +0200 >> From: =?ISO-8859-1?Q?Morgan_Wesstr=F6m?= >> >> To: Nerius Landys >> Cc: FreeBSD Mailing List >> Subject: Re: UDP packet spoofed LAN sourc

Re: UDP packet spoofed LAN source address?

2010-10-17 Thread Morgan Wesström
On 2010-10-17 06:56, Nerius Landys wrote: > This is really more of a networking question. > I'm wondering, in a typical scenario, for example my server is in a data > center with a typical colocation company. > > I am editing someone else's code, and this code handles incoming UDP > packets. The

Re: Disappearing available space with ZFS...what am I missing?

2010-09-29 Thread Morgan Wesström
On 2010-09-29 07:56, Aaron wrote: I've created a ZFS pool with zpool create tank raidz ada0 ada1 ada2 ada3, and then I add some additional mountpoints (I think they're called) using zfs create tank/storage, etc. In zpool list, I see the pool with 3.62T available. With df -h, I see 2.4T available

Re: 8.1 memstick installation

2010-09-12 Thread Morgan Wesström
2010/8/23 Morgan Wesström: On 2010-08-23 19:34, Friedemann Becker wrote: Hello, I have some questions about an installation on a memorystick. I have (a few weeks still) a very poor internet connection at home that's unusable for anything beyond email. I tried some hacking on musescore

Re: Any way to force AHCI mode on ICH8?

2010-09-10 Thread Morgan Wesström
On 2010-09-09 15:51, Morgan Wesström wrote: > On 2010-09-09 13:04, Ivan Voras wrote: >> On 09/09/10 02:10, Morgan Wesström wrote: >>> I run FreeBSD 8.1 on an old Asus P5B-VM motherboard with ICH8. Its AMI >>> BIOS lacks an option to enable AHCI mode. Intel's d

Re: Any way to force AHCI mode on ICH8?

2010-09-09 Thread Morgan Wesström
On 2010-09-09 13:04, Ivan Voras wrote: > On 09/09/10 02:10, Morgan Wesström wrote: >> I run FreeBSD 8.1 on an old Asus P5B-VM motherboard with ICH8. Its AMI >> BIOS lacks an option to enable AHCI mode. Intel's datasheet for the ICH8 >> family specifies that this feature e

Any way to force AHCI mode on ICH8?

2010-09-08 Thread Morgan Wesström
I run FreeBSD 8.1 on an old Asus P5B-VM motherboard with ICH8. Its AMI BIOS lacks an option to enable AHCI mode. Intel's datasheet for the ICH8 family specifies that this feature exists on the ICH8, and the option is available in the BIOS for the identical (apart from form factor) P5B motherboard.

Re: 8.1 memstick installation

2010-08-26 Thread Morgan Wesström
>> Check my old message on how to do this in FreeBSD 7.2. The same >> instructions should work for 8.1 too, just change the version references. >> http://lists.freebsd.org/pipermail/freebsd-questions/2009-July/201928.html >> /Morgan >> > > > Thanks a lot, > this seems to work. Is there any chance t

Re: 8.1 memstick installation

2010-08-23 Thread Morgan Wesström
On 2010-08-23 19:34, Friedemann Becker wrote: > Hello, > > I have some questions about an installation on a memorystick. > > I have (a few weeks still) a very poor internet connection at home > that's unusable for anything beyond email. I tried some hacking on > musescore (yes I know that it can'

Re: Pidfile ends up in /tmp instead of /var/run [SOLVED]

2010-08-21 Thread Morgan Wesström
On 2010-08-22 01:37, Morgan Wesström wrote: > On 2010-08-22 00:58, Morgan Wesström wrote: >> I'm trying to create an rc script for the first time following the guide >> in the handbook. The script works as expected except for the pidfile >> which is created in /tmp for

Re: Pidfile ends up in /tmp instead of /var/run

2010-08-21 Thread Morgan Wesström
On 2010-08-22 00:58, Morgan Wesström wrote: > I'm trying to create an rc script for the first time following the guide > in the handbook. The script works as expected except for the pidfile > which is created in /tmp for some reason I can't figure out. The daemon > I try to

Pidfile ends up in /tmp instead of /var/run

2010-08-21 Thread Morgan Wesström
I'm trying to create an rc script for the first time following the guide in the handbook. The script works as expected except for the pidfile which is created in /tmp for some reason I can't figure out. The daemon I try to run is a Linux program if that matters. Any help to solve this would be appr

Re: mrtg-2.16.2_6,1 does not run with perl-5.12.1_1

2010-08-02 Thread Morgan Wesström
On 2010-08-02 10:49, Jon Theil Nielsen wrote: > 2010/8/2 Jon Theil Nielsen > >> Hi list >> >> After upgrading perl according to UPDATING, I cannot use mrtg anymore. The >> error message is: >> >> Bareword "P_DETACH" not allowed while "strict subs" in use at >> /usr/local/lib/perl5/site_perl/5.12.

Re: Upgrading Apache fails - I don't understand why, exactly

2010-07-27 Thread Morgan Wesström
On 2010-07-27 23:47, Kurt Buff wrote: > Trying to do the following on a couple of machines: > > # portupgrade apache-2.2.14_5 > > > I've grepped through the port and haven't found anything that mentions this. > > Anyone got a clue for me? > > Thanks, > > Kurt Check /usr/ports/UPDATING.

Re: Online gaming and file downloads - latency hell!

2010-06-21 Thread Morgan Wesström
On 2010-06-21 07:50, Ian Smith wrote: > In freebsd-questions Digest, Vol 315, Issue 11, Message: 9 > On Fri, 18 Jun 2010 12:11:48 +0200 > Morgan Wesstr?m wrote: > > On 2010-06-16 02:51, Modulok wrote: > > > Yo, > > > > > > I have a FreeBSD box acting as a router between me and the Internet. >

Re: Online gaming and file downloads - latency hell!

2010-06-18 Thread Morgan Wesström
On 2010-06-16 02:51, Modulok wrote: > Yo, > > I have a FreeBSD box acting as a router between me and the Internet. > Whenever someone on the local network downloads something, the other > connections have a really high latency. A second or more. For people > who like to download large files and pl

Re: Log rotation / newsyslog / apache not reloaded

2010-04-15 Thread Morgan Wesström
On 2010-04-15 12:08, Zbigniew Szalbot wrote: > On 15 Apr 2010 at 8:30, Zbigniew Szalbot wrote: > >> Hello, >> >> I have the following lines in my /etc/newsyslog.conf >> >> /var/log/*-access.log 644 30*@T00 JCG >> /var/log/*-error.log644 30*@

Re: how to control upload data in bittorrent clients

2010-02-07 Thread Morgan Wesström
RW wrote: > On Sun, 07 Feb 2010 10:51:20 +0100 > Morgan Wesström wrote: > >> RW wrote: >>> On Sat, 06 Feb 2010 23:14:45 +0100 >>> Morgan Wesström wrote: >>> >>> >>>>> 1) in the transmission web it showing downloading is 10

Re: how to control upload data in bittorrent clients

2010-02-07 Thread Morgan Wesström
RW wrote: > On Sat, 06 Feb 2010 23:14:45 +0100 > Morgan Wesström wrote: > > >>> 1) in the transmission web it showing downloading is 10 kbps >>> to 30 kbpsbut uploading it shows 50 to 92 kbps my question >>> is is it possible to limit the uplo

Re: how to control upload data in bittorrent clients

2010-02-06 Thread Morgan Wesström
>I am using transmission-daemon and tr > ansmission web for accessing bittorrent sites. > > I have a slow connection, the problem is that > > > 1) in the transmission web it showing downloading is 10 kbps to 30 kbps > but uploading it shows 50 to 92 kbps > my question is

Re: Backward compatibility libraries?

2010-01-23 Thread Morgan Wesström
John wrote: > The GENERIC 8.0 kernel and the kernel I built for my new FreeBSD 8.0 > system both contain > options COMPAT_FREEBSD4 # Compatible with FreeBSD4 > > yet, when I try to run a program compiled on the FreeBSD 4.3 system on > the new system, I get > /usr/libexec/ld-elf.so.

Re: Missing all ttyv* device nodes after upgrade 7.0 -> 7.2

2010-01-20 Thread Morgan Wesström
Michael Powell wrote: >> agp0: on hostb0 >> agp0: allocating GATT for aperture of size 128M >> vgapci0: mem >> 0xf800-0xf8ff,0xe000-0xefff,0xf900-0xf9ff irq 3 >> at device 0.0 on pci1 > > This is an odd IRQ for a video card to come up on, as this is usually > reserved f

Re: Missing all ttyv* device nodes after upgrade 7.0 -> 7.2

2010-01-20 Thread Morgan Wesström
>> These dmesg lines are from another 7.2 machine and I am missing them >> from the output of this newly upgraded machine: >> >> sc0: at flags 0x100 on isa0 >> sc0: VGA <16 virtual consoles, flags=0x300> >> vga0: at port 0x3c0-0x3df iomem 0xa-0xb on isa0 >> >> Both devices are in the kern

Re: Missing all ttyv* device nodes after upgrade 7.0 -> 7.2

2010-01-19 Thread Morgan Wesström
Morgan Wesström wrote: > Morgan Wesström wrote: >> I obviously did something wrong somewhere but I can't figure out what. >> All console device nodes /dev/ttyv0 - /dev/ttyvf are missing after I >> upgraded a machine from 7.0 to 7.2. The serial console node /dev/ttyd0

Re: Missing all ttyv* device nodes after upgrade 7.0 -> 7.2

2010-01-19 Thread Morgan Wesström
Morgan Wesström wrote: > I obviously did something wrong somewhere but I can't figure out what. > All console device nodes /dev/ttyv0 - /dev/ttyvf are missing after I > upgraded a machine from 7.0 to 7.2. The serial console node /dev/ttyd0 > is there though if that rings a bell.

Missing all ttyv* device nodes after upgrade 7.0 -> 7.2

2010-01-19 Thread Morgan Wesström
I obviously did something wrong somewhere but I can't figure out what. All console device nodes /dev/ttyv0 - /dev/ttyvf are missing after I upgraded a machine from 7.0 to 7.2. The serial console node /dev/ttyd0 is there though if that rings a bell. What controls the creation of the console device n

Re: immense delayed write to file system (ZFS and UFS2), performance issues

2010-01-19 Thread Morgan Wesström
Emil Mikulic wrote: > (off-list) > > On Tue, Jan 19, 2010 at 04:32:34PM +0100, Morgan Wesstr?m wrote: >> Emil Mikulic wrote: >>> On Tue, Jan 19, 2010 at 09:16:41AM +0100, Gerrit K?hn wrote: Thanks for bringing up this topic here. I have drives showing up close to 80 load cycle counts

Re: immense delayed write to file system (ZFS and UFS2), performance issues

2010-01-18 Thread Morgan Wesström
O. Hartmann wrote: > I realise a strange behaviour of several FreeBSD 8.0-STABLE/amd64 boxes. > All boxes have the most recent STABLE. One box is a UP system, two > others SMP boxes, one with a Q6600 4-core, another XEON with 2x 4-cores > (Dell Poweredge III). > > Symptome: All boxes have ZFS and

Re: Problem with USB serial in linux emulation

2010-01-14 Thread Morgan Wesström
Morgan Wesström wrote: > Dear list. > > I have an USB smartcard reader that emulates a serial port. It uses the > uftdi.ko kernel module and creates the following device nodes when > plugged in. System is FreeBSD 7.2-RELEASE-p3 amd64. > > crw-rw 1 uucp dialer0,

Problem with USB serial in linux emulation

2010-01-14 Thread Morgan Wesström
Dear list. I have an USB smartcard reader that emulates a serial port. It uses the uftdi.ko kernel module and creates the following device nodes when plugged in. System is FreeBSD 7.2-RELEASE-p3 amd64. crw-rw 1 uucp dialer0, 110 Jan 14 19:27 /dev/cuaU0 crw-rw 1 uucp dialer0, 1

Re: pf headaches: why won' t it let me fetch from ftp servers?

2010-01-08 Thread Morgan Wesström
Dino Vliet wrote: > Dear freebsd list, > I have the following pf.conf file: > tcp_services = "{ ftp, ssh, domain, www, auth, https }" > udp_services = "{ ftp, domain, ntp }" > icmp_types = "echoreq" > block all > pass inet proto icmp all icmp-type $icmp_types keep state > #pass in proto tcp to an

Re: Get the cwd of a process?

2009-12-10 Thread Morgan Wesström
patrick wrote: > I've made some headway... perl supports "sitecustomize.pl" which can > be used to execute code when any perl script is run. It doesn't seem > to be enabled by default, so I had to add the following line to > /usr/ports/lang/perl5.8/Makefile's CONFIGURE_ARGS: > > -Dusesit

Re: SMP and ALTQ_NOPCC

2009-12-10 Thread Morgan Wesström
APseudoUtopia wrote: > Hello, > > With the improvements in SMP in FreeBSD 8.0, is the ALTQ_NOPCC option > still required? In the handbook and other older documentation, it says > ALTQ_NOPCC is in fact required on SMP systems because the TSC is > unstable. I was wondering if this is still the case

Re: FreeBSD 7.1 as a router - poor download speed, but normal upload

2009-10-08 Thread Morgan Wesström
.kkursor wrote: > Hello everybody! Please help me if you can. > I have a home server built on Gigabyte MiniITX motherboard with VIA C3 > 800MHz CPU and 512M RAM aboard. The server acts as a file server, > torrent downloader, router and mail and HTTP server. > I have a PPTP connection to my ISP th

Re: what www perl script is running?

2009-08-26 Thread Morgan Wesström
Jonathan McKeown wrote: > On Wednesday 26 August 2009 15:44:41 Adam Vande More wrote: > > [450 lines including multiple signatures and twelve levels of quoting, all to > say:] > >> Specifically what am I confused on? Or are you just going to continue >> with the personal attacks? You've offere

Re: Recover deleted file

2009-07-18 Thread Morgan Wesström
Leonardo M. Ramé wrote: > Hi, I deleted a directory using "rm -rf directory" in a mounted NTFS volume > (with ntfs-3g) and I'm wondering if is there a way to recover this directory? > > Thanks in advance, > Leonardo. > > sysutils/testdisk I haven't used it in FreeBSD but I have used it success

Re: FreeBSD 7.2 o/s on a flash stick

2009-07-04 Thread Morgan Wesström
think geom_label is unnecessary in FreeBSD 7+ but it doesn't hurt. Also remember that the displayed time is dependent on whether your computer's CMOS clock is UTC or local time. Maybe someone has a nice trick to correct for both options. Finally some credit to t

Re: mysql error

2009-06-28 Thread Morgan Wesström
thanos trompoukis wrote: > Hi all, I am new with FreeBSD and I have a problem with mysql. > > I have 6.2Release i386 > I am running mysql 5.0.27 and It worked perfectly until the time that I > formated /tmp (for some other reason) > and now when I am trying to connect on mysql *I get this:* >

Re: Other browsers show the same behaviour (Firefox crashes on yahoo.com)

2009-06-27 Thread Morgan Wesström
Manish Jain wrote: > The problem is not restricted to firefox or yahoo.com. There are other > sites too where this happens. I built Galeon from ports, and it shows > exactly the same behaviour as firefox2/firefox3 for those sites. So does > Epiphany (installed from the distribution media). > >

Python 2.6 and upgrade-site-packages

2009-06-10 Thread Morgan Wesström
I haven't performed the upgrade from 2.5 to 2.6 yet but I notice my /usr/local/lib/python2.5/site-packages is empty. Does that mean I can skip running upgrade-site-packages afterwards and avoid the problems with portmaster, currently discussed on the list? /Morgan __

vmstat questions

2009-06-01 Thread Morgan Wesström
Hi. This is my "vmstat -i" from my newly installed 7.2-RELEASE-amd64: # vmstat -i interrupt total rate irq4: sio0 1105 0 irq17: em1 uhci1+ 10921807182 irq19: uhci3++ 8196905136 cpu0: ti

Re: What do ASCII codes 128-159 stand for?

2009-05-25 Thread Morgan Wesström
> Lars Eighner wrote: >> That is all the ASCII codes there are. ASCII is a a seven-bit standard. > >> There is no such thing as ASCII codes from 160-255. ASCII is a 7-bit >> standard. You cannot express 160 in seven bits. > > >> No, because there are no ASCII codes between 128 and 159. ASCI

Re: how to rotate a tcpdump file

2009-05-23 Thread Morgan Wesström
Frank Shute wrote: > On Sat, May 23, 2009 at 02:57:08PM +0300, Yavuz Ma?lak wrote: >> I wish tcpdump to rotate tcpdump file whose size reaches 10Mbyte. >> >> Which command should I use ? >> > > You should be able to set up newsyslog(8) to rotate the dumps. > > You want to have a look at newsyslog

Re: bsnmpd vs net-snmp

2009-04-30 Thread Morgan Wesström
>> 2) Is there anyway to enable these two options during make without >> editing the Makefile? >> > 2. The easiest way is to set the define upon running make > > [/usr/ports/net-mgmt/net-snmp]$ make -DWITH_MFD_REWRITES install clean Thanks Steve, I actually tried that before posting but thought

Re: bsnmpd vs net-snmp

2009-04-29 Thread Morgan Wesström
> net-snmp has no problems providing 64-bit counters (interface and > disk). You must build it with -DWITH_MFD_REWRITES (passes > --with-mfd-rewrites to ./configure). I do not know why this is not the > default. It works just fine. I also have a PR open to make this define > a ports 'make confi

Re: ipfw, pf and ALTQ on outbound traffic? (or: "The net is slow when I upload!")

2009-03-24 Thread Morgan Wesström
CyberLeo Kitsana wrote: > Morgan Wesström wrote: >> Jubal Kessler wrote: >>> (To put it another way: When I max out my upstream, and my upstream is >>> capped lower than my downstream, my downstream becomes useless and I am >>> forced to wait until the upload fi

Re: {Classmates#889-142}read it immediately

2009-03-23 Thread Morgan Wesström
Paul Procacci wrote: > To unsubscribe, send any mail to > "freebsd-questions-unsubscr...@freebsd.org" > Darn, here I was expecting a completely different kind of answer. Now I have to find something else to brighten up my day... ;-) /M ___ freebsd-quest

Re: ipfw, pf and ALTQ on outbound traffic? (or: "The net is slow when I upload!")

2009-03-23 Thread Morgan Wesström
>> http://homerouters.info/wiki/Main_Page >> >> Be aware that I'm not a very good teacher... ;-) > > On the contrary, you're an excellent teacher, and I now have a working > pf configuration handling my NAT duties as well as outbound traffic > shaping (and handy graphs, too). Thank you very much

Re: ipfw, pf and ALTQ on outbound traffic? (or: "The net is slow when I upload!")

2009-03-22 Thread Morgan Wesström
Jubal Kessler wrote: > Greetings, > > Is there a general how-to, or a set of coherent instructions, for > shaping outbound traffic such that when I upload something over my > asymmetric cable-modem pipe, doing so doesn't completely kill my Web > browsing or any other attempts to use my Internet co

Re: Cron Not Sending Mail

2009-03-04 Thread Morgan Wesström
> Yeah, I am aware what "dnl" does. The reason I commented that stuff > out is because I have no use for any of it - all those files (access, > local-host-names, mailertable, virtusertable, etc) are all empty by > default and I had no reason to add anything to them. I'll try going > back to the de

Re: Cron Not Sending Mail

2009-03-04 Thread Morgan Wesström
APseudoUtopia wrote: >> In my case I only see either "local" there or my smart host as defined >> in /var/mail/{hostname}.mc >> Can you provide a "diff -u" between /etc/mail/freebsd.mc and >> /etc/mail/{hostname}.mc ? >> >> /Morgan > > I'd switch over to postfix, but I'm only using this to send ou

Re: Cron Not Sending Mail

2009-03-03 Thread Morgan Wesström
> relay=...@localhost >>> Isn't "w...@localhost" a very weird hostname for a relay? Can you really >>> resolve that into an IP address? >>> /Morgan >> Hm, I'm not sure where it's getting that from. The MAILTO variable is >> set in the crontab, so it shouldn't be going to or relaying through >>

Re: Cron Not Sending Mail

2009-03-03 Thread Morgan Wesström
Glen Barber wrote: > On Tue, Mar 3, 2009 at 4:10 PM, APseudoUtopia wrote: >> Thanks for the tips. I've put the following line in my normal user >> account's crontab (This account does have a shell, it's one I use on a >> daily basis): >> >> SHELL=/bin/sh >> mailto=my_email_acco...@gmail.com >> *

Re: Is there a trick to boot 7.1 install CD with USB keyboard?

2009-01-28 Thread Morgan Wesström
> -Original Message- > From: Morgan Wesström [mailto:freebsd-questi...@pp.dyndns.biz] > Sent: 28 January 2009 13:27 > To: FreeBSD Questions > Subject: Is there a trick to boot 7.1 install CD with USB keyboard? > > Dell OptiPlex 745 - no PS/2 connectors. > >

Is there a trick to boot 7.1 install CD with USB keyboard?

2009-01-28 Thread Morgan Wesström
Dell OptiPlex 745 - no PS/2 connectors. USB keyboard works on boot menu but during kernel initialization I see this: usb1: host controller halted uhub1: device problem (IOERROR), disabling port 2 Keyboard is non-working when SYSINSTALL starts. Upgraded to latest BIOS and error disappears but key

Re: default CFLAGS

2009-01-24 Thread Morgan Wesström
RW wrote: > On Sat, 24 Jan 2009 21:13:00 +0100 > Morgan Wesström wrote: > >> gcc 4.2 and later will figure out the correct -march and -mtune for >> you automatically if you use CPUTYPE=native. > > The point I was making before, is that CPUTYPE isn't just pas

Re: default CFLAGS

2009-01-24 Thread Morgan Wesström
Saifi Khan wrote: > On Sat, Jan 24, 2009 at 5:57 PM, Pojken Purken wrote: >> RW wrote: >>> On Sat, 24 Jan 2009 15:27:02 +0100 >>> Morgan Wesström wrote: >>> >>> >>>> The section "options enabled" will list them all. I usually

Re: default CFLAGS

2009-01-24 Thread Morgan Wesström
RW wrote: > On Sat, 24 Jan 2009 12:51:32 + > Saifi Khan wrote: > > >> on running the command 'make -V CFLAGS', the output is >> >> -O2 -fno-strict-aliasing -pipe >> >> i haven't setup the CPUTYPE anywhere (not as an env variable nor in >> /etc/make.conf) >> So are these default settings for

Re: PHP 5.2.8 crash (segmentation fault 11)

2009-01-24 Thread Morgan Wesström
Saifi Khan wrote: > Hi all: > > Freshly compiled PHP 5.2.8 with PECL and PHP5-extensions support > on FreeBSD 7.1 (i386) seems to be crashing in > > #0 0x28e3e006 in hash_lookup (hashtab=0x29ea2f70, > key=0xbfbfea30 "\221Û\222)À{\206)p/ê)ì\r\226)`Qp(") at misc.c:349 > 349 for (ret = ha

Re: PHP Apache module no longer loads /usr/local/etc/php.ini

2009-01-07 Thread Morgan Wesström
APseudoUtopia wrote: > On Tue, Jan 6, 2009 at 12:26 AM, Morgan Wesström > wrote: >> Hi. >> >> I have two almost identical FreeBSD servers with FreeBSD 7.0, Apache >> 2.2.11 and PHP 5.2.8. After a restart of Apache four days ago, the PHP >> module on one o

PHP Apache module no longer loads /usr/local/etc/php.ini

2009-01-05 Thread Morgan Wesström
Hi. I have two almost identical FreeBSD servers with FreeBSD 7.0, Apache 2.2.11 and PHP 5.2.8. After a restart of Apache four days ago, the PHP module on one of those servers no longer loads /usr/local/etc/php.ini and I can't for my world figure out what's preventing it. My workaround right now is