IPFW+DUMMYNET UPLOAD PROBLEM

2005-10-06 Thread Daniel Dias Gonçalves

I have the following rules:

$fwcmd add 600 pipe 602 src-ip 192.168.0.0/24 out
$fwcmd add 601 pipe 603 dst-ip 192.168.0.0/24 in
$fwcmd pipe 602 config mask src-ip 0x00ff bw 128Kbit/s queue 10KBytes
$fwcmd pipe 603 config mask dst-ip 0x00ff bw 128Kbit/s queue 10KBytes


And my test speed from ip 192.168.0.5 is:
Down 123.66kbps
Up 766.24kbps

Which the problem?

--
Daniel Dias Gonçalves
DGNET Network Solutions
[EMAIL PROTECTED]
(37) 99824809 


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


Re: IPFW+DUMMYNET UPLOAD PROBLEM

2005-10-06 Thread Jeremie Le Hen
Hi Daniel,

> I have the following rules:
> 
> $fwcmd add 600 pipe 602 src-ip 192.168.0.0/24 out
> $fwcmd add 601 pipe 603 dst-ip 192.168.0.0/24 in
> $fwcmd pipe 602 config mask src-ip 0x00ff bw 128Kbit/s queue 10KBytes
> $fwcmd pipe 603 config mask dst-ip 0x00ff bw 128Kbit/s queue 10KBytes
> 
> And my test speed from ip 192.168.0.5 is:
> Down 123.66kbps
> Up 766.24kbps

What's the output of 
% ipfw show 600 601

Regards,
-- 
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: IPFW+DUMMYNET UPLOAD PROBLEM

2005-10-06 Thread Daniel Dias Gonçalves

Jeremie Le Hen escreveu:


Hi Daniel,

 


I have the following rules:

$fwcmd add 600 pipe 602 src-ip 192.168.0.0/24 out
$fwcmd add 601 pipe 603 dst-ip 192.168.0.0/24 in
$fwcmd pipe 602 config mask src-ip 0x00ff bw 128Kbit/s queue 10KBytes
$fwcmd pipe 603 config mask dst-ip 0x00ff bw 128Kbit/s queue 10KBytes

And my test speed from ip 192.168.0.5 is:
Down 123.66kbps
Up 766.24kbps
   



What's the output of 
% ipfw show 600 601


Regards,
 


# ipfw show 600 601
00600 2  210 pipe 602 ip from any to any src-ip 192.168.0.0/24 out
0060126 9301 pipe 603 ip from any to any dst-ip 192.168.0.0/24 in
#

--
Daniel Dias Gonçalves
DGNET Network Solutions
[EMAIL PROTECTED]
(37) 99824809 


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


problems with disk geometry

2005-10-06 Thread Kamal R. Prasad

hello,

 Im trying to install FreeBSD 6.0 beta5 on a samsung SP1604N hard  
disk of about 160 GB.
The installer complains that it has a problem with the disk geometry.  
The exact message is given below:-

--
A geometry of 310101/16/63 is incorrect for ad1. Using a more likely  
geometry. If this geometry is incorrect.. pl. consult the hardware guide

---
fdisk goes through the process of creating the reqd slices and when I  
try to commit the new partition table -it says it cannot write to / 
dev/ad1.


Can someone tell me how to get past this problem?

thanks
-kamal

Kamal R. Prasad
UNIX systems consultant
http://www.kamalprasad.com/
[EMAIL PROTECTED]



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


RE: problems with disk geometry

2005-10-06 Thread Gayn Winters
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Kamal 
> R. Prasad
> Sent: Thursday, October 06, 2005 8:56 AM
> To: freebsd-hackers@freebsd.org
> Subject: problems with disk geometry
> 
> 
> hello,
> 
>   Im trying to install FreeBSD 6.0 beta5 on a samsung SP1604N hard  
> disk of about 160 GB.
> The installer complains that it has a problem with the disk 
> geometry.  
> The exact message is given below:-
> --
> A geometry of 310101/16/63 is incorrect for ad1. Using a more likely  
> geometry. If this geometry is incorrect.. pl. consult the 
> hardware guide
> ---
> fdisk goes through the process of creating the reqd slices 
> and when I  
> try to commit the new partition table -it says it cannot write to / 
> dev/ad1.
> 
> Can someone tell me how to get past this problem?
> 
> thanks
> -kamal

I doubt it is your disk geometry.  You will probably need to provide a
little more information.  I assume you've got another OS on /dev/ad0 and
that you are letting sysinstall put 6.0 onto /dev/ad1 as a (dangerously)
dedicated drive?  What does the BIOS report?  How old are the machine
and its BIOS?  What does fdisk say when run either standalone or from
the first OS?

-gayn


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


Re: problems with disk geometry

2005-10-06 Thread Kamal R . Prasad

[snip]





I doubt it is your disk geometry.  You will probably need to provide a
little more information.  I assume you've got another OS on /dev/ 
ad0 and
that you are letting sysinstall put 6.0 onto /dev/ad1 as a  
(dangerously)

dedicated drive?  What does the BIOS report?  How old are the machine



ad0 is running windows XP and that works fine. ad1 is a new drive (I  
delted the windows partition that existed on it) on which i wish to  
install freebsd. I inserted the CD for 6.0-i386-disc1.iso and it gave  
the msg I mentioned before going to fdisk. fdisk allows me tocreate  
slices and then I can select mount pt etc.. on the next screen. When  
we try to write that information, the operation fails. I mean, there  
is a problem with doing an I/O operation on that hard disk





and its BIOS?  What does fdisk say when run either standalone or from
the first OS?


The motherboard is an "American Megatrends Corp" board with a pentium  
4 chip on it

they ahve  a propreitary bios on it -but its all post 2003 stuff.

Its the same result for fdisk whether you run standalone or from the  
installer.

regards
-kamal



-gayn






Kamal R. Prasad
UNIX systems consultant
http://www.kamalprasad.com/
[EMAIL PROTECTED]




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


Call for FreeBSD Status Reports

2005-10-06 Thread Max Laier
All,

again three month went by and exiting stuff has happend in FreeBSD.  Many 
subtle bugs have been identified and fixed during the most productive QA-work 
in preparation for FreeBSD 6.0 (now entering final RC-phase).  The Google 
Summer of Code has produced a lot of exiting projects; either finished (most 
visibly the new website) or still worked on enthusiastically.  Work in HEAD 
is also taking off and promises to bring even more exiting stuff for the 
future ...

I am sure you have interesting things to share for this round and we are 
looking forward to your reports.  Please send status reports about your 
project's progess between July and now to [EMAIL PROTECTED]

To help you with fileing your report you will find a webform[1] or 
xml-template[2] linked from http://www.freebsd.org/news/status/

Submissions are due October 15.  Thanks a lot, and we are hoping for a big 
turn-out.

-- 
/"\  Best regards,  | [EMAIL PROTECTED]
\ /  Max Laier  | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | [EMAIL PROTECTED]
/ \  ASCII Ribbon Campaign  | Against HTML Mail and News

[1] http://www.freebsd.org/cgi/monthly.cgi
[2] http://www.freebsd.org/news/status/report-sample.xml
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: IPFW+DUMMYNET UPLOAD PROBLEM

2005-10-06 Thread David S. Madole

From: "Daniel Dias Gonçalves" <[EMAIL PROTECTED]>


I have the following rules:

$fwcmd add 600 pipe 602 src-ip 192.168.0.0/24 out
$fwcmd add 601 pipe 603 dst-ip 192.168.0.0/24 in
$fwcmd pipe 602 config mask src-ip 0x00ff bw 128Kbit/s queue 
10KBytes
$fwcmd pipe 603 config mask dst-ip 0x00ff bw 128Kbit/s queue 
10KBytes


And my test speed from ip 192.168.0.5 is:
Down 123.66kbps
Up 766.24kbps


Do you have additional rules that you haven't shown, such as a divert 
rule for NAT?


Perhaps because of NAT the source address is not what you think it is at 
rule 600 and you need to move that rule before your divert rule.


David

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


[Fwd: date set to epoch when booting from cd]

2005-10-06 Thread Dario Freni
Ideas here?
--- Begin Message ---
Hi guys,
  me and other testers have encountered a strange problem when booting
from CDroms created with freesbie2 toolkit: the date is set to
epoch. This don't happens with ufs image, only with iso with cd9660
root set.

The iso is created with:

mkisofs -b boot/cdboot -no-emul-boot -J -r -ldots -l -L -V ${LABEL} -p FreeSBIE 
-o $ISOPATH .

which is almost the same way used in release scripts.

How can I help debugging this?

Thanks to everybody,
Dario

-- 
Dario Freni ([EMAIL PROTECTED])
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc


pgpgYA3EA8kYV.pgp
Description: PGP signature
--- End Message ---


signature.asc
Description: OpenPGP digital signature


struct timeval: why is tv_sec long?

2005-10-06 Thread Andreas Kohn
Hi,

is there any special reason for timeval.tv_sec being long?

--- sys/_timeval.h
/*
 * Structure returned by gettimeofday(2) system call, and used in other
calls.
 */
struct timeval {
longtv_sec; /* seconds (XXX should be
time_t) */
suseconds_t tv_usec;/* and microseconds */
};
---

I just stumbled across this code in an application,
---
timeval tv;
gettimeofday(&tv, 0);

char tbuf[64];
struct tm tmp;
strftime(tbuf, sizeof(tbuf), "%b %d %H:%M:%S", localtime_r(&tv.tv_sec,
&tmp));
---

and this fails to compile on FreeBSD. I fixed the application code now,
but I do wonder why that XXX in sys/_timeval.h is there.
_timeval.h came into existence on 31-Dec-2002, before that timeval was
defined in sys/time.h with both tv_sec and tv_usec as long.

Could anyone offer any pointers?

Best regards,
--
Andreas

-- 
 was macht man eigentlich auf einer linux-gamer lan ? hl server
aufsetzen und freuen ? *duck* ^^
-- 
 was macht man eigentlich auf einer linux-gamer lan ? hl server
aufsetzen und freuen ? *duck* ^^


signature.asc
Description: This is a digitally signed message part


Re: How to duplicate a copy of all incoming and outgoing mail

2005-10-06 Thread Billy Newsom

Patrick Dung wrote:

It is system wide, not specific user (~/.forward)
Is it possble with Sendmail?
How about Postfix and Qmail?


qmail:

qmailtap

http://www.inter7.com/?page=qmailtap

Other than that, see also maildrop (same people) or fetchmail. Google 
that or try the ports tree.


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


RE: How to duplicate a copy of all incoming and outgoing mail

2005-10-06 Thread Rob MacGregor
On Tuesday, October 04, 2005 10:00 AM, Patrick Dung <> unleashed the infinite
monkeys and produced:

> It is system wide, not specific user (~/.forward)
> Is it possble with Sendmail?

If you trawl the archives for comp.mail.sendmail you will find many solutions.
One of these is MIMEDefang, but there are a large number of others.

-- 
 Rob | Oh my God! They killed init! You bastards!

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