From owner-freebsd-net Sun Jun 4 18:55: 4 2000 Delivered-To: freebsd-net@freebsd.org Received: from esebh02nok.ntc.nokia.com (esebh02nok.ntc.nokia.com [131.228.118.151]) by hub.freebsd.org (Postfix) with ESMTP id 8CE2C37B67F for ; Sun, 4 Jun 2000 18:55:00 -0700 (PDT) (envelope-from yu.shi@nokia.com) Received: by esebh02nok with Internet Mail Service (5.5.2650.10) id ; Mon, 5 Jun 2000 04:52:51 +0300 Message-ID: <95A2D1413F29D311B3450008C773628901204375@beeis03nok> From: yu.shi@nokia.com To: freebsd-net@FreeBSD.ORG Subject: unsubscribe Date: Mon, 5 Jun 2000 04:52:39 +0300 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.10) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org unsubscribe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Jun 4 19:35: 9 2000 Delivered-To: freebsd-net@freebsd.org Received: from esebh02nok.ntc.nokia.com (esebh02nok.ntc.nokia.com [131.228.118.151]) by hub.freebsd.org (Postfix) with ESMTP id 57BEF37BC98 for ; Sun, 4 Jun 2000 19:35:07 -0700 (PDT) (envelope-from yu.shi@nokia.com) Received: by esebh02nok with Internet Mail Service (5.5.2650.10) id ; Mon, 5 Jun 2000 05:34:53 +0300 Message-ID: <95A2D1413F29D311B3450008C773628901204413@beeis03nok> From: yu.shi@nokia.com To: freebsd-net@FreeBSD.ORG Subject: unsubscribe Date: Mon, 5 Jun 2000 05:34:45 +0300 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.10) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org unsubscribe freebsd-net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Jun 5 6:34:56 2000 Delivered-To: freebsd-net@freebsd.org Received: from proton.hexanet.fr (proton.hexanet.fr [194.98.140.18]) by hub.freebsd.org (Postfix) with ESMTP id 9DB1637BBB4 for ; Mon, 5 Jun 2000 06:34:51 -0700 (PDT) (envelope-from nighty@proton.hexanet.fr) Received: from proton.hexanet.fr (localhost [127.0.0.1]) by proton.hexanet.fr (8.9.3/8.9.3) with ESMTP id PAA05402 for ; Mon, 5 Jun 2000 15:34:51 +0200 (CEST) (envelope-from nighty@proton.hexanet.fr) Message-Id: <200006051334.PAA05402@proton.hexanet.fr> X-Mailer: exmh version 2.1.1 10/15/1999 Reply-To: chris@hexanet.fr From: "Christophe Prevotaux" To: freebsd-net@freebsd.org Subject: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 05 Jun 2000 15:34:51 +0200 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi I bought some DLINK DFE 530 TX Ethernet boards (the one with the Wake on LAN function ). These cards are not recognized by FreeBSD 4-STABLE I had previously bought the same cards with no WAKE ON LAN function and they worked just fine. Does anyone knows how I can make these cards works ? -- -- =================================================================== Christophe Prevotaux Email: chris@hexanet.fr HEXANET SARL URL: http://www.hexanet.fr/ Z.A Farman Sud Tel: +33 (0)3 26 79 30 05 9 rue Roland Coffignot Direct: +33 (0)3 26 79 08 02 BP415 Fax: +33 (0)3 26 79 30 06 51689 Reims Cedex 2 FRANCE =================================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Jun 5 10:56:11 2000 Delivered-To: freebsd-net@freebsd.org Received: from ns1.infowest.com (ns1.infowest.com [204.17.177.10]) by hub.freebsd.org (Postfix) with ESMTP id 4AFC437B586 for ; Mon, 5 Jun 2000 10:56:04 -0700 (PDT) (envelope-from agifford@infowest.com) Received: from ns1.infowest.com (ns1.infowest.com [204.17.177.10]) by ns1.infowest.com (Postfix) with SMTP id D853620F77 for ; Mon, 5 Jun 2000 11:55:59 -0600 (MDT) From: "Aaron Gifford" To: freebsd-net@freebsd.org Subject: ipfw per-rule keep-state dynamic rule lifetime Message-Id: <20000605175559.D853620F77@ns1.infowest.com> Date: Mon, 5 Jun 2000 11:55:59 -0600 (MDT) Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello, Recently on my home FreeBSD 4.0-STABLE box I rewrote my ipfw rules to utilize ipfw's stateful dynamic rules. I discovered, however that I needed and wanted finer control over how the rules expired than was available through the sysctl variables. I prefer the default values of the expiration control variables for most of my TCP and other IP traffic: net.inet.ip.fw.dyn_ack_lifetime: 300 net.inet.ip.fw.dyn_syn_lifetime: 20 net.inet.ip.fw.dyn_fin_lifetime: 20 net.inet.ip.fw.dyn_rst_lifetime: 5 net.inet.ip.fw.dyn_short_lifetime: 5 But in a few cases (like ICQ UDP traffic and SSH TCP traffic) I need a longer expiration lifetime on the dynamic rules. That's how the patch to ip_fw.h, ip_fw.c, and ipfw.c included below was born. The patch does several things: 1. It adds a new ipfw optional extention to rules with keep-state in them, the keyword "lifetime" followed by a number specifying a number of seconds that dynamic stateful rules will live, overriding the value net.inet.ip.fw.dyn_ack_lifetime in the case of TCP rules, and net.inet.ip.fw.dyn_short_lifetime in the case of other IP protocols. For example, I wanted a 2-hour rule lifetime for my SSH sessions and a 5 min. timeout for my ICQ UDP traffic: ipfw add pass tcp from ${myip} to any 22 out setup \ keep-state lifetime 7200 ipfw add pass udp from ${myip} to ${icqnet} 4000 out \ keep-state lifetime 300 2. In order to store this new per-rule value, the patch adds a new field to the struct ip_fw member union fw_un and to the struct ipfw_dyn_rule where the new lifetime value is stored. If the rule does NOT specify an overriding dynamic rule expiration lifetime, zero is stored in these new members and the normal sysctl variables are used to set the dynamic rule lifetime expiration timeouts as usual. If a value IS specified, then it will override net.inet.ip.fw.dyn_ack_lifetime in the case of TCP dynamic rules, or net.inet.ip.fw.dyn_short_lifetime in the case of non-TCP dynamic rules. 3. The ipfw command is modified to permit the new keyword and value and fill in the new structure members accordingly. 4. Lastly, it looks like the original ipfw code in 4.0-STABLE would set the expiration for non-TCP traffic to the value of the sysctl variable net.inet.ip.fw.dyn_syn_lifetime even though subsequent matching non-TCP traffic would update the expiration using the variable net.inet.ip.fw.dyn_short_lifetime. I modified it while adding the above functionality to use the same sysctl variable net.inet.ip.fw.dyn_short_lifetime for initial expiration value and subsequent updates for non-TCP traffic that does NOT have an explicitly set lifetime value specified by ipfw on the command line. Was there a reason that non-TCP traffic was not using the net.inet.ip.fw.dyn_short_lifetime value initially? If so, I had probably better change back to using the sysctl variable net.inet.ip.fw.dyn_syn_lifetime for initial expiration lifetime of non-TCP traffic. The patch applies to three files: /usr/src/sys/netinet/ip_fw.c /usr/src/sys/netinet/ip_fw.h /usr/src/sbin/ipfw/ipfw.c Once all three were successfully patched, I copied the ip_fw.h file to /usr/include/netinet/ip_fw.h and recompiled the ipfw command and installed the modified version, recompiled a new kernel and installed it, and rebooted. It is wonderful to be able to override the default expirations on a per rule basis. Now my SSH sessions don't get clobbered by the dymamic rule expiring too soon, my ICQ connection (UDP) lives on (it looks like my ICQ client sends traffic regularly every 4 minutes) with a 5 minute timeout, and the rest of my traffic uses the very sensible default sysctl variables. Oh, I should say that the new code ONLY overrides the two variables mentioned before and that TCP sessions still use the remaining sysctl variable values for the other states. I suspect that the way the patches currently work may not be the best way to store the overriding value. I see that the next_rule_ptr struct member is used to store a numeric dynamic rule type but it looks like the type is not yet really used. I considered stealing the existing dynamic type code and using that value as the overriding expiration, but then thought better of it. Having two separate structure members (one in the actual ipfw chain rule, and one in the resulting dynamic rule) may not be the most efficient way to do it, but I don't have enough experience with the ipfw structures and code to know if there's a quick way during dynamic processing to look up a value in the structure of the chain rule from which the dynamic rule was born (which would permit the addition of only one new structure member instead of two separate members in two separate structures). After the changes, I did not rebuild world on my boxen. I only updated ipfw and the kernel. Do I need to rebuild anything else? I don't know what else may utilize the modified structures in ip_fw.h. While my limited use on several FreeBSD boxen has been stable and useful, I really don't know if these patches break anything else. Likewise I don't know if they'll be useful to anyone else, but in case they are, I thought I'd post. I hope that the maintainer(s) of the ipfw code consider(s) adding per-rule expiration lifetime overriding in future updates (so my patches become obsolete) since it is a very useful feature. Aaron out. === NOW FOR THE PATCHES === *** ip_fw.c.orig Sun Jun 4 17:42:24 2000 --- ip_fw.c Sun Jun 4 18:06:30 2000 *************** found: *** 651,657 **** break ; case TH_SYN | (TH_SYN << 8) : /* move to established */ ! q->expire = time_second + dyn_ack_lifetime ; break ; case TH_SYN | (TH_SYN << 8) | TH_FIN : case TH_SYN | (TH_SYN << 8) | (TH_FIN << 8) : --- 651,657 ---- break ; case TH_SYN | (TH_SYN << 8) : /* move to established */ ! q->expire = time_second + (q->lifetime ? q->lifetime : dyn_ack_lifetime) ; break ; case TH_SYN | (TH_SYN << 8) | TH_FIN : case TH_SYN | (TH_SYN << 8) | (TH_FIN << 8) : *************** found: *** 673,679 **** } } else { /* should do something for UDP and others... */ ! q->expire = time_second + dyn_short_lifetime ; } if (match_direction) *match_direction = dir ; --- 673,679 ---- } } else { /* should do something for UDP and others... */ ! q->expire = time_second + (q->lifetime ? q->lifetime : dyn_short_lifetime) ; } if (match_direction) *match_direction = dir ; *************** add_dyn_rule(struct ipfw_flow_id *id, st *** 721,727 **** if (mask) r->mask = *mask ; r->id = *id ; ! r->expire = time_second + dyn_syn_lifetime ; r->chain = chain ; r->type = ((struct ip_fw_ext *)chain->rule)->dyn_type ; --- 721,733 ---- if (mask) r->mask = *mask ; r->id = *id ; ! r->lifetime = chain->rule->fw_dyn_lifetime ; ! if (r->lifetime) ! r->expire = time_second + r->lifetime ; ! else if (r->id.proto == IPPROTO_TCP) ! r->expire = time_second + dyn_syn_lifetime ; ! else ! r->expire = time_second + dyn_short_lifetime ; r->chain = chain ; r->type = ((struct ip_fw_ext *)chain->rule)->dyn_type ; *** ip_fw.h.orig Sun Jun 4 17:42:28 2000 --- ip_fw.h Sun Jun 4 18:07:50 2000 *************** struct ip_fw { *** 73,78 **** --- 73,79 ---- u_short fu_skipto_rule; /* SKIPTO command rule number */ u_short fu_reject_code; /* REJECT response code */ struct sockaddr_in fu_fwd_ip; + u_int32_t fu_dyn_lifetime; /* Explicit dynamic rule lifetime */ } fw_un; u_char fw_prot; /* IP protocol */ /* *************** struct ip_fw_ext { /* extend *** 121,126 **** --- 122,128 ---- #define fw_reject_code fw_un.fu_reject_code #define fw_pipe_nr fw_un.fu_pipe_nr #define fw_fwd_ip fw_un.fu_fwd_ip + #define fw_dyn_lifetime fw_un.fu_dyn_lifetime struct ip_fw_chain { LIST_ENTRY(ip_fw_chain) chain; *************** struct ipfw_dyn_rule { *** 147,152 **** --- 149,155 ---- struct ipfw_flow_id mask ; struct ip_fw_chain *chain ; /* pointer to parent rule */ u_int32_t type ; /* rule type */ + u_int32_t lifetime ; /* per-rule specified lifetime */ u_int32_t expire ; /* expire time */ u_int64_t pcnt, bcnt; /* match counters */ u_int32_t bucket ; /* which bucket in hash table */ *** ipfw.c.orig Sun Jun 4 18:09:37 2000 --- ipfw.c Sun Jun 4 18:16:10 2000 *************** show_ipfw(struct ip_fw *chain, int pcwid *** 381,386 **** --- 381,388 ---- printf(" keep-state %d", (int)chain->next_rule_ptr); else printf(" keep-state"); + if (chain->fw_dyn_lifetime) + printf(" lifetime %d", (int)chain->fw_dyn_lifetime); } /* Direction */ if (chain->fw_flg & IP_FW_BRIDGED) *************** add(ac,av) *** 1553,1558 **** --- 1555,1569 ---- (int)rule.next_rule_ptr = type ; av++; ac--; } + if (ac > 0 && !strncmp(*av,"lifetime",strlen(*av))) { + u_long lifetime ; + + av++; ac--; + if (ac > 0 && (lifetime = atoi(*av)) != 0) { + rule.fw_dyn_lifetime = lifetime; + av++; ac--; + } + } continue; } if (!strncmp(*av,"bridged",strlen(*av))) { === END OF PATCHES === To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Jun 5 13: 6:41 2000 Delivered-To: freebsd-net@freebsd.org Received: from yagosys.com (mail.yagosys.com [207.135.89.130]) by hub.freebsd.org (Postfix) with ESMTP id CF12337B630 for ; Mon, 5 Jun 2000 13:06:38 -0700 (PDT) (envelope-from shiva@yagosys.com) Received: from yagosys.com by yagosys.com (8.8.8+Sun/SMI-SVR4-Yago) id NAA16453; Mon, 5 Jun 2000 13:05:07 -0700 (PDT) Message-ID: <393C084D.C6D2BAB3@yagosys.com> Date: Mon, 05 Jun 2000 13:06:37 -0700 From: Shiva Shenoy Reply-To: shiva@yagosys.com Organization: Cabletron Systems, Inc. X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.5.1 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: [Q]: Src address in the icmp_reflect() Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following comment in icmp_reflect() in ip_icmp.c explains it all. /* * If the incoming packet was addressed directly to us, * use dst as the src for the reply. Otherwise (broadcast * or anonymous), use the address which corresponds * to the incoming interface. */ My question is: If the reply can take a different interface than the packet that came in on, then the src address as seen in the icmp error packet is different from the interface from which it is sourced. If the packet is not addressed to us, then can we set the source address to be the address of the outgoing interface? If so,this can be achieved by setting the ip->ip_src to INADDR_ANY. Does anybody see a problem with this approach? Thanks Shiva Shenoy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Jun 5 13:59:52 2000 Delivered-To: freebsd-net@freebsd.org Received: from imo-d08.mx.aol.com (imo-d08.mx.aol.com [205.188.157.40]) by hub.freebsd.org (Postfix) with ESMTP id 2283F37BCE9 for ; Mon, 5 Jun 2000 13:59:50 -0700 (PDT) (envelope-from SKirbyGOLF@aol.com) Received: from SKirbyGOLF@aol.com by imo-d08.mx.aol.com (mail_out_v27.9.) id n.b4.630c03b (8977) for ; Mon, 5 Jun 2000 16:59:46 -0400 (EDT) From: SKirbyGOLF@aol.com Message-ID: Date: Mon, 5 Jun 2000 16:59:45 EDT Subject: DOMEX SCSI CARD /436P-9814 002-D436P-001(REV:A S/N:H6808481986 To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: AOL 5.0 for Windows sub 81 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org DEAR SIR: I have a SCSI Card which I have never used. It came with my Iomega 1GB acouple of years ago. I had a MAC before and did not need a SCSI. I have a new DELL 600 and need to use my Jaz 1GB. Will this SCSI work and if so can you tell me what Driver to get. Iomega says they need this or I must buy a SCSI from them. Thank you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Jun 6 10: 5:41 2000 Delivered-To: freebsd-net@freebsd.org Received: from bmah-freebsd-0.cisco.com (bmah-freebsd-0.cisco.com [171.70.84.42]) by hub.freebsd.org (Postfix) with ESMTP id E287E37B6F9 for ; Tue, 6 Jun 2000 10:05:28 -0700 (PDT) (envelope-from bmah@cisco.com) Received: (from bmah@localhost) by bmah-freebsd-0.cisco.com (8.10.1/8.10.1) id e56H5S720774; Tue, 6 Jun 2000 10:05:28 -0700 (PDT) (envelope-from bmah) Message-Id: <200006061705.e56H5S720774@bmah-freebsd-0.cisco.com> X-Mailer: exmh version 2.1.1+ 05/08/2000 To: freebsd-net@freebsd.org Cc: bmah@acm.org Subject: pchar-1.2 available From: bmah@acm.org (Bruce A. Mah) Reply-To: bmah@acm.org X-Face: g~c`.{#4q0"(V*b#g[i~rXgm*w;:nMfz%_RZLma)UgGN&=j`5vXoU^@n5v4:OO)c["!w)nD/!!~e4Sj7LiT'6*wZ83454H""lb{CC%T37O!!'S$S&D}sem7I[A 2V%N&+ X-Url: http://www.ca.sandia.gov/~bmah/ Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 06 Jun 2000 10:05:28 -0700 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org NOTE: The URL for pchar's Web page has changed, as well as the author's contact email address. I'm pleased to announce the release of pchar-1.2, a reimplementation of Van Jacobson's pathchar utility for characterizing the individual hops of a path between two network hosts. pchar works on both IPv4 and IPv6 networks. pchar has been tested on various versions of FreeBSD, NetBSD, OpenBSD, Linux, Solaris, OSF/1, and IRIX, with the primary development on FreeBSD and Solaris. pchar is written is C++, primarily using recent versions of gcc, but with some testing also on the SparcWorks C++ compiler. Recent additions to pchar include: An SNMP query feature, better IPv6 detection at configure-time, and a number of bugfixes. The CHANGES file included in the pchar distribution provides more details. More information, as well as downloadable source code, can be found at: http://www.employees.org/~bmah/Software/pchar/ Questions and comments are welcome, and can be emailed to . To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Jun 6 21:46:15 2000 Delivered-To: freebsd-net@freebsd.org Received: from sasi.com (sasi.com [164.164.56.2]) by hub.freebsd.org (Postfix) with ESMTP id ABBAF37BC6F; Tue, 6 Jun 2000 21:45:59 -0700 (PDT) (envelope-from gbnaidu@sasi.com) Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id KAA28396; Wed, 7 Jun 2000 10:13:53 +0530 (IST) Received: from pcd75.sasi.com ([10.0.16.75]) by sasi.com; Wed, 07 Jun 2000 10:13:52 +0000 (IST) Received: from localhost (gbnaidu@localhost) by pcd75.sasi.com (8.9.3/8.9.3) with ESMTP id KAA01789; Wed, 7 Jun 2000 10:13:26 +0530 Date: Wed, 7 Jun 2000 10:13:26 +0530 (IST) From: "G.B.Naidu" To: hackers@freebsd.org Cc: net@freebsd.org Subject: [REPOST] Re: How do I get port inside kernel.... (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Have posted this question yesterday. But no reply. Hope to et a reply to day. thanks for your time --gb -- ---------- Forwarded message ---------- Date: Tue, 6 Jun 2000 11:55:18 +0530 (IST) From: G.B.Naidu To: Alfred Perlstein Cc: hackers@FreeBSD.ORG, Deepika Kakrania , Madhavi Suram Subject: Re: How do I get port inside kernel.... Hi, Thanks a lot for your reply. It's quite useful. But I have some more questions generated of this study of nfs code and sendfile(2) code. The question is about getting a proc structure. Here it is. As you all know that every system call in side kernel needs a process structure to be passed. So to call socreate, sobind or getsocket we need a proc structure. My doubt is which process structure to pass? In nfs code, at some places it is passing the curproc structure which is nothing but currently running process. At other places example for socreate() and sobind(), it is using proc0 structure which is nothing but of the swap process. So when I am executing the kernel, what is the current process? Is it safe if I use proc0 to pass the proc structure to call socreate() and sobind()? How safe it is to use curproc structure? Somebody mentioned that it will not work in interrupt handlers. So somebody out there throw some light on the currently running process when inside kernel? thanks a lot --gb On Mon, 5 Jun 2000, Alfred Perlstein wrote: > * G.B.Naidu [000605 05:37] wrote: > > > > Hi, > > > > If I want to get a port inside kernel, how do I do that? In user land we > > will call socket(), bind() to get a port. But in kernel, is there any way > > to get a new port? > > > > Any ideas are appreciated. > > Check the nfsd code. src/sys/nfs > > -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jun 7 2:56:43 2000 Delivered-To: freebsd-net@freebsd.org Received: from smtp0.internetway.net (smtp0.internetway.net [212.155.223.4]) by hub.freebsd.org (Postfix) with ESMTP id 7EB1637B92A for ; Wed, 7 Jun 2000 02:56:40 -0700 (PDT) (envelope-from spe@bsdfr.org) Received: from pulsar.internetway.net (pulsar.internetway.net [212.155.223.24]) by smtp0.internetway.net (Postfix) with ESMTP id 6786D38 for ; Wed, 7 Jun 2000 11:56:40 +0200 (CEST) Content-Length: 547 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Wed, 07 Jun 2000 11:56:03 +0200 (CEST) Reply-To: spe@bsdfr.org Organization: IntellNet From: Sebastien Petit To: freebsd-net@FreeBSD.org Subject: Ethernet Firewall project Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I'm just release version 0.2 of EthFW (an ethernet firewall for FreeBSD) that filter MAC adresses and ethernet protocols. Rules have similar syntax to IPfw. Ethfw is a kernel patch and an utility to control rules on the kernel. Can anyone say to me if a similar project exists on FreeBSD 4.0 or 5.X ? And if not, how can I merge my code with the source tree ? URL of my project: http://spe.kakito.com/ Download ETHFW-0.2 for FreeBSD 4.0: http://spe.kakito.com/ethfw-0.2.tar.gz spe. -- E-Mail: spe@bsdfr.org Date: 07-Jun-00 Time: 11:50:43 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jun 7 7:39: 6 2000 Delivered-To: freebsd-net@freebsd.org Received: from lucifer.bart.nl (lucifer.bart.nl [194.158.168.74]) by hub.freebsd.org (Postfix) with ESMTP id E82FA37B55A; Wed, 7 Jun 2000 07:38:54 -0700 (PDT) (envelope-from asmodai@lucifer.bart.nl) Received: (from asmodai@localhost) by lucifer.bart.nl (8.9.3/8.9.3) id QAA74353; Wed, 7 Jun 2000 16:38:38 +0200 (CEST) (envelope-from asmodai) Date: Wed, 7 Jun 2000 16:38:38 +0200 From: Jeroen Ruigrok van der Werven To: "G.B.Naidu" Cc: hackers@FreeBSD.ORG, net@FreeBSD.ORG Subject: Re: [REPOST] Re: How do I get port inside kernel.... (fwd) Message-ID: <20000607163837.P70054@lucifer.bart.nl> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from gbnaidu@sasi.com on Wed, Jun 07, 2000 at 10:13:26AM +0530 Organisation: VIA Net.Works The Netherlands Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org -On [20000607 06:50], G.B.Naidu (gbnaidu@sasi.com) wrote: > >Have posted this question yesterday. But no reply. Hope to et a reply to >day. Sorry, but not everyone has the ability to read the list every day the whole day. Have you tried searching the mailinglist archives? Possibly because no-one answered it might not even be possible. -- Jeroen Ruigrok van der Werven Network- and systemadministrator VIA Net.Works The Netherlands BSD: Technical excellence at its best http://www.via-net-works.nl No one can find me, here in my Soul... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jun 7 11:52: 1 2000 Delivered-To: freebsd-net@freebsd.org Received: from web204.mail.yahoo.com (web204.mail.yahoo.com [128.11.68.104]) by hub.freebsd.org (Postfix) with SMTP id 9CEE037B9CA for ; Wed, 7 Jun 2000 11:51:58 -0700 (PDT) (envelope-from bsd_usr@yahoo.com) Received: (qmail 26849 invoked by uid 60001); 7 Jun 2000 18:51:58 -0000 Message-ID: <20000607185158.26848.qmail@web204.mail.yahoo.com> Received: from [209.179.135.4] by web204.mail.yahoo.com; Wed, 07 Jun 2000 11:51:58 PDT Date: Wed, 7 Jun 2000 11:51:58 -0700 (PDT) From: Joey Garcia Subject: Any good books on IP? To: questions@freebsd.org, net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hey all! I have gain a certain interest in becoming an IP guru. I figured it's about time that I stop just plugging the numbers in and actually take an understanding of what the numbers mean. I was wondering if anyone can direct me to some good books related to IP addressing, subnetting, and routing, and anything else related to IP. I realize that there's alot of binary math involved (math == my worst subject) so something that has alot of examples, problems to work out, and stuff like that would be helpfull. I'd like to get a full understanding of IPv4 down so I can start working at understanding IPv6. :) TIA, Joey __________________________________________________ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jun 7 12:33: 4 2000 Delivered-To: freebsd-net@freebsd.org Received: from gateway.sitel.net (gateway.sitel.net [206.24.48.67]) by hub.freebsd.org (Postfix) with SMTP id 50D2C37BAF6; Wed, 7 Jun 2000 12:32:58 -0700 (PDT) (envelope-from jsw@iwww.sitel.net) Received: from [206.24.49.5] by gateway.sitel.net via smtpd (for hub.FreeBSD.ORG [204.216.27.18]) with SMTP; 7 Jun 2000 19:32:58 UT Received: (from jsw@localhost) by iwww.sitel.net (8.9.2/8.9.2) id OAA29795; Wed, 7 Jun 2000 14:32:04 -0500 (CDT) Message-Id: <200006071932.OAA29795@iwww.sitel.net> Subject: Re: Any good books on IP? In-Reply-To: <20000607185158.26848.qmail@web204.mail.yahoo.com> from Joey Garcia at "Jun 7, 0 11:51:58 am" To: bsd_usr@yahoo.com (Joey Garcia) Date: Wed, 7 Jun 2000 14:32:03 -0500 (CDT) Cc: questions@FreeBSD.ORG, net@FreeBSD.ORG From: jsw@cywub.sitel.net Reply-To: jsw@cywub.sitel.net X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I was wondering if anyone can direct me to some good > books related to IP addressing, subnetting, and > routing, and anything else related to IP. The bible of networking is _Computer_Networks_ by Andrew Tanenbaum. This covers not only IP but others as well and provides a good basis for additional readings. It's now in its third (maybe 4th or more) edition. Each edition has less and less math and hardcore theory. Comer (Comar?) and Stevens have an excellent in-depth three-volume set that focuses entirely on IP. VERY detailed. Any B&N/Borders should have these. Good day JSW To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jun 7 12:41:33 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail-out2.apple.com (mail-out2.apple.com [17.254.0.51]) by hub.freebsd.org (Postfix) with ESMTP id 80AD737B797; Wed, 7 Jun 2000 12:41:26 -0700 (PDT) (envelope-from justin@rhapture.apple.com) Received: from mailgate1.apple.com (A17-128-100-225.apple.com [17.128.100.225]) by mail-out2.apple.com (8.9.3/8.9.3) with ESMTP id MAA06371; Wed, 7 Jun 2000 12:41:25 -0700 (PDT) Received: from scv2.apple.com (scv2.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.1.5) with ESMTP id ; Wed, 7 Jun 2000 12:41:23 -0700 Received: from rhapture.apple.com (rhapture.apple.com [17.202.40.59]) by scv2.apple.com (8.9.3/8.9.3) with ESMTP id MAA03787; Wed, 7 Jun 2000 12:41:24 -0700 (PDT) Received: (from justin@localhost) by rhapture.apple.com (8.9.1/8.9.1) id MAA00735; Wed, 7 Jun 2000 12:41:24 -0700 (PDT) Message-Id: <200006071941.MAA00735@rhapture.apple.com> To: jsw@cywub.sitel.net Subject: Re: Any good books on IP? Cc: bsd_usr@yahoo.com (Joey Garcia), questions@freebsd.org, net@freebsd.org In-Reply-To: <20000607185158.26848.qmail@web204.mail.yahoo.com> Date: Wed, 7 Jun 2000 12:41:22 -0700 From: "Justin C. Walker" Reply-To: justin@apple.com X-Mailer: by Apple MailViewer (2.105.dev) Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > From: jsw@cywub.sitel.net > Date: 2000-06-07 12:33:35 -0700 > To: bsd_usr@yahoo.com (Joey Garcia) > Subject: Re: Any good books on IP? > Cc: questions@FreeBSD.ORG, net@FreeBSD.ORG > In-reply-to: <20000607185158.26848.qmail@web204.mail.yahoo.com> > X-Loop: FreeBSD.org > Delivered-to: freebsd-net@freebsd.org > X-Mailer: ELM [version 2.4ME+ PL38 (25)] > > > I was wondering if anyone can direct me to some good > > books related to IP addressing, subnetting, and > > routing, and anything else related to IP. > > The bible of networking is _Computer_Networks_ by Andrew Tanenbaum. > This covers not only IP but others as well and provides a good basis > for additional readings. > > It's now in its third (maybe 4th or more) edition. Each edition has > less and less math and hardcore theory. > > Comer (Comar?) and Stevens have an excellent in-depth three-volume set that > focuses entirely on IP. VERY detailed. I'll also recommend the work of W. Richard Stevens: TCP/IP Illusstrated, V1 and 2 (Addison Wesley); and Unix Network Programming, 2nd Ed, V1. The former deals with the protocol definitions (V1) and a code walkthrough of the BSD 'lite' IP stack code (V2); the latter deals with network programming from an application/utility point of view, is very detailed, and full of interesting insights. Regards, Justin -- Justin C. Walker, Curmudgeon-At-Large * Institute for General Semantics | Manager, CoreOS Networking | When crypto is outlawed, Apple Computer, Inc. | Only outlaws will have crypto. 2 Infinite Loop | Cupertino, CA 95014 | *-------------------------------------*-------------------------------* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jun 7 13: 9:35 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.cicely.de (cicely.de [194.231.9.142]) by hub.freebsd.org (Postfix) with ESMTP id BC33037B786; Wed, 7 Jun 2000 13:09:26 -0700 (PDT) (envelope-from ticso@cicely8.cicely.de) Received: from cicely8.cicely.de (cicely8.cicely.de [10.1.2.10]) by mail.cicely.de (8.11.0.Beta1/8.11.0.Beta1) with ESMTP id e57K9BC30722; Wed, 7 Jun 2000 22:09:11 +0200 (CEST) Received: (from ticso@localhost) by cicely8.cicely.de (8.9.3/8.9.2) id WAA98853; Wed, 7 Jun 2000 22:09:07 +0200 (CEST) (envelope-from ticso) Date: Wed, 7 Jun 2000 22:09:06 +0200 From: Bernd Walter To: "G.B.Naidu" Cc: hackers@FreeBSD.ORG, net@FreeBSD.ORG Subject: Re: [REPOST] Re: How do I get port inside kernel.... (fwd) Message-ID: <20000607220906.A98783@cicely8.cicely.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from gbnaidu@sasi.com on Wed, Jun 07, 2000 at 10:13:26AM +0530 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Jun 07, 2000 at 10:13:26AM +0530, G.B.Naidu wrote: > > Thanks a lot for your reply. It's quite useful. But I have some more > questions generated of this study of nfs code and sendfile(2) code. The > question is about getting a proc structure. Here it is. > > As you all know that every system call in side kernel needs a process > structure to be passed. So to call socreate, sobind or getsocket we need a > proc structure. My doubt is which process structure to pass? > > In nfs code, at some places it is passing the curproc structure which is > nothing but currently running process. At other places example for > socreate() and sobind(), it is using proc0 structure which is nothing but > of the swap process. So when I am executing the kernel, what is the > current process? Is it safe if I use proc0 to pass the proc structure to > call socreate() and sobind()? How safe it is to use curproc > structure? Somebody mentioned that it will not work in interrupt > handlers. Sockets depend on a specific process. Interrupt handlers can interrupt any process, so you don't know to which curproc points to. In general it is best to use proc0 as long as you don't need to share the socket with any application. If you need to - you can use it only when called from this process. Remembering the process won't help much, because it will invalidate if the process it belongs to dies. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jun 7 13:49:36 2000 Delivered-To: freebsd-net@freebsd.org Received: from apollo.ocsny.com (apollo.ocsny.com [204.107.76.2]) by hub.freebsd.org (Postfix) with ESMTP id AD35C37BB1F; Wed, 7 Jun 2000 13:49:23 -0700 (PDT) (envelope-from mikel@ocsny.com) Received: from ocsny.com (thoth.upan.org [204.107.76.16]) by apollo.ocsny.com (8.9.2/8.9.3) with ESMTP id QAA01004; Wed, 7 Jun 2000 16:50:31 -0400 (EDT) Message-ID: <393EB629.E41AD6EB@ocsny.com> Date: Wed, 07 Jun 2000 16:52:57 -0400 From: Mikel Organization: Optimized Computer Solutions, Inc. X-Mailer: Mozilla 4.73 [en] (Win98; U) X-Accept-Language: en,it MIME-Version: 1.0 To: Joey Garcia Cc: questions@FreeBSD.ORG, net@FreeBSD.ORG Subject: Re: Any good books on IP? References: <20000607185158.26848.qmail@web204.mail.yahoo.com> Content-Type: multipart/mixed; boundary="------------7D10A59F6F8488DEFCDED55F" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------7D10A59F6F8488DEFCDED55F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit try www.syngress.com they have a book call something like IP ADDRESSING and SUBNETTING (including IPV6) There are alot of nice worksheets...and such...and it is a fairly well written book on well you know a rather dry subject... Hey just found it....here's the isbn: 1-928994-01-6 good luck... Joey Garcia wrote: > Hey all! > > I have gain a certain interest in becoming an IP guru. > I figured it's about time that I stop just plugging > the numbers in and actually take an understanding of > what the numbers mean. > > I was wondering if anyone can direct me to some good > books related to IP addressing, subnetting, and > routing, and anything else related to IP. > > I realize that there's alot of binary math involved > (math == my worst subject) so something that has alot > of examples, problems to work out, and stuff like that > would be helpfull. > > I'd like to get a full understanding of IPv4 down so I > can start working at understanding IPv6. :) > > TIA, > > Joey > > __________________________________________________ > Do You Yahoo!? > Yahoo! Photos -- now, 100 FREE prints! > http://photos.yahoo.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message -- Cheers, Mikel +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ | Optimized Computer Solutions, Inc http://www.ocsny.com | 39 W14th Street, Suite 203 212 727 2238 x132 | New York, NY 10011 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ --------------7D10A59F6F8488DEFCDED55F Content-Type: text/x-vcard; charset=us-ascii; name="mikel.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Mikel Content-Disposition: attachment; filename="mikel.vcf" begin:vcard n:King;Mikel tel;fax:2124638402 tel;home:http://www.upan.org tel;work:2127272100 x-mozilla-html:TRUE org:Optimized Computer Solutions version:2.1 email;internet:mikel@ocsny.com title:Director of Network Operations & Technology adr;quoted-printable:;;39 W14th St.=0D=0ASte 203;New York;NY;10011;US note;quoted-printable:fBSD, PHP, MySql and OCS Rule!!!=0D=0A=0D=0AGoal is to be MS free by the end of 2k. x-mozilla-cpt:;7312 fn:Mikel King end:vcard --------------7D10A59F6F8488DEFCDED55F-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jun 7 13:58:48 2000 Delivered-To: freebsd-net@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 8699A37B51F; Wed, 7 Jun 2000 13:58:44 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id QAA72060; Wed, 7 Jun 2000 16:58:41 -0400 (EDT) (envelope-from wollman) Date: Wed, 7 Jun 2000 16:58:41 -0400 (EDT) From: Garrett Wollman Message-Id: <200006072058.QAA72060@khavrinen.lcs.mit.edu> To: Bernd Walter Cc: "G.B.Naidu" , hackers@FreeBSD.ORG, net@FreeBSD.ORG Subject: Re: [REPOST] Re: How do I get port inside kernel.... (fwd) In-Reply-To: <20000607220906.A98783@cicely8.cicely.de> References: <20000607220906.A98783@cicely8.cicely.de> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org < said: >> current process? Is it safe if I use proc0 to pass the proc structure to >> call socreate() and sobind()? How safe it is to use curproc >> structure? Somebody mentioned that it will not work in interrupt >> handlers. proc0 is passed because I didn't think things completely through when the socket layer was taught not to accept process arguments. In most if not all cases the process parameter should be passed as nil, rather than &proc0, because the code uses this value to determine whether or not it is safe to sleep. Some of the code, however, is buggy in that it does not check for a null process pointer and proceeds to dereference it. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jun 7 14:35:30 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.cicely.de (cicely.de [194.231.9.142]) by hub.freebsd.org (Postfix) with ESMTP id 684E437B8BE; Wed, 7 Jun 2000 14:35:17 -0700 (PDT) (envelope-from ticso@cicely8.cicely.de) Received: from cicely8.cicely.de (cicely8.cicely.de [10.1.2.10]) by mail.cicely.de (8.11.0.Beta1/8.11.0.Beta1) with ESMTP id e57LZ2C31008; Wed, 7 Jun 2000 23:35:02 +0200 (CEST) Received: (from ticso@localhost) by cicely8.cicely.de (8.9.3/8.9.2) id XAA98964; Wed, 7 Jun 2000 23:34:58 +0200 (CEST) (envelope-from ticso) Date: Wed, 7 Jun 2000 23:34:57 +0200 From: Bernd Walter To: Garrett Wollman Cc: "G.B.Naidu" , hackers@FreeBSD.ORG, net@FreeBSD.ORG Subject: Re: [REPOST] Re: How do I get port inside kernel.... (fwd) Message-ID: <20000607233457.B98783@cicely8.cicely.de> References: <20000607220906.A98783@cicely8.cicely.de> <200006072058.QAA72060@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200006072058.QAA72060@khavrinen.lcs.mit.edu>; from wollman@khavrinen.lcs.mit.edu on Wed, Jun 07, 2000 at 04:58:41PM -0400 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Jun 07, 2000 at 04:58:41PM -0400, Garrett Wollman wrote: > < said: > > >> current process? Is it safe if I use proc0 to pass the proc structure to > >> call socreate() and sobind()? How safe it is to use curproc > >> structure? Somebody mentioned that it will not work in interrupt > >> handlers. > > proc0 is passed because I didn't think things completely through when > the socket layer was taught not to accept process arguments. In most > if not all cases the process parameter should be passed as nil, > rather than &proc0, because the code uses this value to determine > whether or not it is safe to sleep. Some of the code, however, is > buggy in that it does not check for a null process pointer and > proceeds to dereference it. Mmmhh - that also means that it is not valid to use proc0 within an upcall function because it may sleep :( Are the fuctions using the same table with proc0 as with nil or must all calls use the same value? -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jun 7 18:16:58 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail1.toronto.istar.net (mail1.toronto.istar.net [209.89.75.17]) by hub.freebsd.org (Postfix) with ESMTP id 2A7D337B7D6; Wed, 7 Jun 2000 18:16:54 -0700 (PDT) (envelope-from genisis@istar.ca) Received: from ip234.kingston.dialup.canada.psi.net ([154.5.64.234]) by mail1.toronto.istar.net with esmtp (Exim 2.02 #1) id 12zqx0-0007Jj-00; Wed, 7 Jun 2000 21:17:39 -0400 Date: Wed, 7 Jun 2000 21:19:34 -0400 (EDT) From: Dru To: Joey Garcia Cc: questions@FreeBSD.ORG, net@FreeBSD.ORG Subject: Re: Any good books on IP? In-Reply-To: <20000607185158.26848.qmail@web204.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 7 Jun 2000, Joey Garcia wrote: > Hey all! > > I have gain a certain interest in becoming an IP guru. > I figured it's about time that I stop just plugging > the numbers in and actually take an understanding of > what the numbers mean. > > I was wondering if anyone can direct me to some good > books related to IP addressing, subnetting, and > routing, and anything else related to IP. > > I realize that there's alot of binary math involved > (math == my worst subject) so something that has alot > of examples, problems to work out, and stuff like that > would be helpfull. > > I'd like to get a full understanding of IPv4 down so I > can start working at understanding IPv6. :) Not exactly a book, but 3COM's tutorial on Everything You Ever Wanted To Know About IP Addressing is an excellent read: http://www.3com.com/nsc/501302.html Actually, a search on IP subnetting at 3COM's site would keep you reading and practicing for quite a bit :) Dru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jun 7 18:21:28 2000 Delivered-To: freebsd-net@freebsd.org Received: from mta01.onebox.com (mta01.onebox.com [216.33.158.208]) by hub.freebsd.org (Postfix) with ESMTP id E8AC237B84C; Wed, 7 Jun 2000 18:21:22 -0700 (PDT) (envelope-from chutima_s@zdnetonebox.com) Received: from onebox.com ([216.33.158.146]) by mta01.onebox.com (InterMail v4.01.01.07 201-229-111-110) with SMTP id <20000608012122.FWOT23976.mta01@onebox.com>; Wed, 7 Jun 2000 18:21:22 -0700 Received: from [203.107.232.70] by onebox.com with HTTP; Wed, 07 Jun 2000 18:21:22 -0700 Date: Wed, 07 Jun 2000 18:21:22 -0700 Subject: How to automatic transfer file without security weakness. From: "Chutima S." To: freebsd-net@FreeBSD.ORG, freebsd-security@FreeBSD.ORG Message-Id: <20000608012122.FWOT23976.mta01@onebox.com> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dear all, Currently in my all system I used rcp and rsh with cron to automatatic transfer file. But I think it may be some weakness of security. I read man page of rcp and rsh found something like kerboros authentication. And someone mention about ssh. How could I deploy them in my system. Thks, -- Chutima Subsirin chutima_s@zdnetonebox.com - email ___________________________________________________________________ To get your own FREE ZDNet Onebox - FREE voicemail, email, and fax, all in one place - sign up today at http://www.zdnetonebox.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jun 7 19:16:19 2000 Delivered-To: freebsd-net@freebsd.org Received: from server1.mich.com (server1.mich.com [198.108.16.2]) by hub.freebsd.org (Postfix) with ESMTP id 3F50837B5F5; Wed, 7 Jun 2000 19:16:15 -0700 (PDT) (envelope-from will@almanac.yi.org) Received: from almanac.yi.org (pm012-013.dialup.bignet.net [64.79.82.29]) by server1.mich.com (8.9.3/8.9.3) with ESMTP id WAA09130; Wed, 7 Jun 2000 22:16:11 -0400 Received: by almanac.yi.org (Postfix, from userid 1000) id 92BAC195D; Wed, 7 Jun 2000 22:15:15 -0400 (EDT) Date: Wed, 7 Jun 2000 22:15:15 -0400 From: Will Andrews To: "Chutima S." Cc: freebsd-net@FreeBSD.ORG, freebsd-security@FreeBSD.ORG Subject: Re: How to automatic transfer file without security weakness. Message-ID: <20000607221515.G20875@argon.gryphonsoft.com> References: <20000608012122.FWOT23976.mta01@onebox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000608012122.FWOT23976.mta01@onebox.com>; from chutima_s@zdnetonebox.com on Wed, Jun 07, 2000 at 06:21:22PM -0700 X-Operating-System: FreeBSD 5.0-CURRENT i386 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Jun 07, 2000 at 06:21:22PM -0700, Chutima S. wrote: > Currently in my all system I used rcp and rsh with cron > to automatatic transfer file. But I think it may be some > weakness of security. man 1 scp ..with ssh installed. -- Will Andrews GCS/E/S @d- s+:+>+:- a--->+++ C++ UB++++ P+ L- E--- W+++ !N !o ?K w--- ?O M+ V-- PS+ PE++ Y+ PGP+>+++ t++ 5 X++ R+ tv+ b++>++++ DI+++ D+ G++>+++ e->++++ h! r-->+++ y? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jun 7 22:27:23 2000 Delivered-To: freebsd-net@freebsd.org Received: from ms1.meiway.com (ms1.meiway.com [212.73.210.73]) by hub.freebsd.org (Postfix) with ESMTP id D0BB937B9EB for ; Wed, 7 Jun 2000 22:27:20 -0700 (PDT) (envelope-from lconrad@Go2France.com) Received: from sv.Go2France.com [212.73.210.79] by ms1.meiway.com with ESMTP (SMTPD32-5.05) id A0A04AE01F0; Thu, 08 Jun 2000 07:35:28 +0200 Message-Id: <4.3.1.2.20000608072430.02cf5c10@mail.Go2France.com> X-Sender: lconrad%Go2France.com@mail.Go2France.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Thu, 08 Jun 2000 07:25:56 +0200 To: freebsd-net@freebsd.org From: Len Conrad Subject: Re: Any good books on IP? In-Reply-To: <200006071941.MAA00735@rhapture.apple.com> References: <20000607185158.26848.qmail@web204.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I just bought a new book (Feb 2000) from O'Reilly on "Internet Core Protocols" if you want to get down to the bit bashing level. Len > > I was wondering if anyone can direct me to some good > > > books related to IP addressing, subnetting, and > > > routing, and anything else related to IP. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 8 1:14:59 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.alpha.net.au (mail2.alpha.net.au [203.41.44.8]) by hub.freebsd.org (Postfix) with ESMTP id 93CFD37BF60; Thu, 8 Jun 2000 01:14:46 -0700 (PDT) (envelope-from dannyh@idx.com.au) Received: from desktop.freebsd.org (surry-pool-215.alpha.net.au [203.41.44.215] (may be forged)) by mail.alpha.net.au (8.9.3/8.9.3) with SMTP id SAA16065; Thu, 8 Jun 2000 18:16:13 +1000 From: Danny To: Dru , Joey Garcia Subject: Re: Any good books on IP? Date: Fri, 9 Jun 2000 18:21:53 +1000 X-Mailer: KMail [version 1.0.21] Content-Type: text/plain Cc: questions@FreeBSD.ORG, net@FreeBSD.ORG References: MIME-Version: 1.0 Message-Id: <00060918223602.00887@desktop.freebsd.org> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org www.data.com is also a good web sites that explains about IP address and the latest in DataComs technology. On Thu, 08 Jun 2000, Dru wrote: > On Wed, 7 Jun 2000, Joey Garcia wrote: > > > Hey all! > > > > I have gain a certain interest in becoming an IP guru. > > I figured it's about time that I stop just plugging > > the numbers in and actually take an understanding of > > what the numbers mean. > > > > I was wondering if anyone can direct me to some good > > books related to IP addressing, subnetting, and > > routing, and anything else related to IP. > > > > I realize that there's alot of binary math involved > > (math == my worst subject) so something that has alot > > of examples, problems to work out, and stuff like that > > would be helpfull. > > > > I'd like to get a full understanding of IPv4 down so I > > can start working at understanding IPv6. :) > > Not exactly a book, but 3COM's tutorial on Everything You Ever Wanted To > Know About IP Addressing is an excellent read: > > http://www.3com.com/nsc/501302.html > > Actually, a search on IP subnetting at 3COM's site would keep you reading > and practicing for quite a bit :) > > Dru > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 8 6:48:53 2000 Delivered-To: freebsd-net@freebsd.org Received: from info.iet.unipi.it (info.iet.unipi.it [131.114.9.184]) by hub.freebsd.org (Postfix) with ESMTP id DD71937BFC6; Thu, 8 Jun 2000 06:48:42 -0700 (PDT) (envelope-from luigi@info.iet.unipi.it) Received: (from luigi@localhost) by info.iet.unipi.it (8.9.3/8.9.3) id PAA03955; Thu, 8 Jun 2000 15:48:17 +0200 (CEST) (envelope-from luigi) From: Luigi Rizzo Message-Id: <200006081348.PAA03955@info.iet.unipi.it> Subject: HEADS UP- WF2Q and RED now available in -current To: net@freebsd.org Date: Thu, 8 Jun 2000 15:48:17 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org [Bcc to -current and -isp as relevant for them as well] Hi, as the subject says, i have just committed some new code to dummynet (and related hooks and documentation for ipfw) to implement RED (thanks to Gianluca Iannaccone) and a variant of Weighted Fair Queueing called WF2Q+ I have tested it locally and would like to have this code in -STABLE and hopefully -RELENG_3 before 3.5 if time permits. Read the manpage for more details. An updated PicoBSD image should appear soon at http://www.iet.unipi.it/~luigi/ip_dummynet/ In order to test WFQ you can try the following: ipfw add 100 queue 10 icmp from any to any out ipfw add 200 queue 11 ip from any to any out ipfw queue 10 config weight 1 pipe 2 ipfw queue 11 config weight 10 pipe 2 mask all ipfw pipe 2 config bw 200Kbit/s and then see how a ping -f to the outside will not disturb other IP traffic, while still being able to use the full bandwidth configured for the pipe. Please email me if you make use of this feature, or you find bugs, etc. cheers luigi -----------------------------------+------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) Mobile +39-347-0373137 -----------------------------------+------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 8 7:36:45 2000 Delivered-To: freebsd-net@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 64B6537BB22 for ; Thu, 8 Jun 2000 07:36:42 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.9.3/8.9.3) with SMTP id KAA33746; Thu, 8 Jun 2000 10:35:48 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Thu, 8 Jun 2000 10:35:47 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Luigi Rizzo Cc: freebsd-net@freebsd.org Subject: Re: HEADS UP- WF2Q and RED now available in -current In-Reply-To: <200006081348.PAA03955@info.iet.unipi.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Luigi, I was perusing your ip_dummynet web page, and noticed the following: ipfw add prob 0.33 pipe 1 ip from A to B ipfw add prob 0.5 pipe 2 ip from A to B ipfw add pipe 3 ip from A to B ipfw pipe 1 config ... ipfw pipe 2 config ... ipfw pipe 3 config ... afterwards, you describe: Given the right packet, the first rule will match with probability 1/3; in the remaining 2/3 of occurrence we move to the second rule, which will match with prob 1/2 (so overall 1/2*1/3 = 1/3), and the remaining 1/3 of occurrence will move to the third rule, which has a deterministic match. We can then configure the three pipes as desired to emulate phenomena such as packet reordering etc. My impression was that, at the IP level, a pipe match resulted in packets being reinserted into the ruleset following the pipe rule. With the BRIDGE implementation, this would behave exclusively (one pipe per packet) as a pipe implies an accept, but in the non-BRIDGE implementation, it would allow multiple pipes per packet. I.e., a packet will always get hit by the last rule, will be hit by the first rule 33% of the time, and by the second 50% of the time. As a result with IP level forwarding, 16.5% of packets will hit all three pipes. Robert N M Watson robert@fledge.watson.org http://www.watson.org/~robert/ PGP key fingerprint: AF B5 5F FF A6 4A 79 37 ED 5F 55 E9 58 04 6A B1 TIS Labs at Network Associates, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 8 7:39: 2 2000 Delivered-To: freebsd-net@freebsd.org Received: from vtopus.cs.vt.edu (vtopus.cs.vt.edu [128.173.40.24]) by hub.freebsd.org (Postfix) with ESMTP id 2B78037BB22; Thu, 8 Jun 2000 07:38:53 -0700 (PDT) (envelope-from dhagan@cs.vt.edu) Received: from localhost (dhagan@localhost) by vtopus.cs.vt.edu (8.10.1/8.10.1) with ESMTP id e58Ecoo01870; Thu, 8 Jun 2000 10:38:51 -0400 (EDT) Date: Thu, 8 Jun 2000 10:38:50 -0400 (EDT) From: Daniel Hagan To: "Chutima S." Cc: freebsd-net@FreeBSD.ORG, freebsd-security@FreeBSD.ORG Subject: Re: How to automatic transfer file without security weakness. In-Reply-To: <20000608012122.FWOT23976.mta01@onebox.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 7 Jun 2000, Chutima S. wrote: > Currently in my all system I used rcp and rsh with cron > to automatatic transfer file. But I think it may be some > weakness of security. Check rdist(1) also. Under FreeBSD you can use -P to specify a rsh replacement (i.e. -P ssh) which would give you the benefits of rdist's semi-smart updates and using ssh for security. Daniel -- Daniel Hagan Computer Science CSE dhagan@cs.vt.edu http://www.cs.vt.edu/~dhagan/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 8 7:40:32 2000 Delivered-To: freebsd-net@freebsd.org Received: from info.iet.unipi.it (info.iet.unipi.it [131.114.9.184]) by hub.freebsd.org (Postfix) with ESMTP id 7943137BFAC; Thu, 8 Jun 2000 07:40:15 -0700 (PDT) (envelope-from luigi@info.iet.unipi.it) Received: (from luigi@localhost) by info.iet.unipi.it (8.9.3/8.9.3) id QAA04240; Thu, 8 Jun 2000 16:39:36 +0200 (CEST) (envelope-from luigi) From: Luigi Rizzo Message-Id: <200006081439.QAA04240@info.iet.unipi.it> Subject: Re: HEADS UP- WF2Q and RED now available in -current In-Reply-To: from Robert Watson at "Jun 8, 2000 10:35:47 am" To: Robert Watson Date: Thu, 8 Jun 2000 16:39:36 +0200 (CEST) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Luigi, > > I was perusing your ip_dummynet web page, and noticed the following: ... > My impression was that, at the IP level, a pipe match resulted in packets > being reinserted into the ruleset following the pipe rule. With the it depends on how you configure net.inet.ip.fw.one_pass (also documented in that page). The default setting is to act as for bridging (and btw forcing one pass for bridging is just because i did not have the time to check that it works otherwise, but it really should). cheers luigi > BRIDGE implementation, this would behave exclusively (one pipe per packet) > as a pipe implies an accept, but in the non-BRIDGE implementation, it > would allow multiple pipes per packet. I.e., a packet will always get hit > by the last rule, will be hit by the first rule 33% of the time, and by > the second 50% of the time. As a result with IP level forwarding, 16.5% > of packets will hit all three pipes. > > Robert N M Watson > > robert@fledge.watson.org http://www.watson.org/~robert/ > PGP key fingerprint: AF B5 5F FF A6 4A 79 37 ED 5F 55 E9 58 04 6A B1 > TIS Labs at Network Associates, Safeport Network Services > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 8 11:33:56 2000 Delivered-To: freebsd-net@freebsd.org Received: from mta02-svc.server.ntlworld.com (mta02-svc.ntlworld.com [62.253.162.42]) by hub.freebsd.org (Postfix) with ESMTP id 9DF3E37C0B0; Thu, 8 Jun 2000 11:33:36 -0700 (PDT) (envelope-from topper.harley@ntlworld.com) Received: from conax ([62.253.84.15]) by mta02-svc.server.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with SMTP id <20000608193311.WXWW10065.mta02-svc.server.ntlworld.com@conax>; Thu, 8 Jun 2000 19:33:11 +0000 From: "Steve" To: "Listar@Isc. Org" , "Freebsd-Net" , "Freebsd-Net" , "FreeBSD-ISP" , "Freebsd-ISP" , "Freebsd-Hackers" , "Freebsd-Current" , "Cvs-All" , "Current" , "Comp-Protocols-Dns-Bind" , "Bind-Users-Bounce" , "Bind-Users" Subject: Stupid Bonzi program Date: Thu, 8 Jun 2000 19:32:53 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Please accept my sincere apologies for sending this mail, I at least thought that the program would give a conformation of the addresses sent to. Apologies Steve. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 8 11:33:58 2000 Delivered-To: freebsd-net@freebsd.org Received: from mta02-svc.server.ntlworld.com (mta02-svc.ntlworld.com [62.253.162.42]) by hub.freebsd.org (Postfix) with ESMTP id 9DF3E37C0B0; Thu, 8 Jun 2000 11:33:36 -0700 (PDT) (envelope-from topper.harley@ntlworld.com) Received: from conax ([62.253.84.15]) by mta02-svc.server.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with SMTP id <20000608193311.WXWW10065.mta02-svc.server.ntlworld.com@conax>; Thu, 8 Jun 2000 19:33:11 +0000 From: "Steve" To: "Listar@Isc. Org" , "Freebsd-Net" , "Freebsd-Net" , "FreeBSD-ISP" , "Freebsd-ISP" , "Freebsd-Hackers" , "Freebsd-Current" , "Cvs-All" , "Current" , "Comp-Protocols-Dns-Bind" , "Bind-Users-Bounce" , "Bind-Users" Subject: Stupid Bonzi program Date: Thu, 8 Jun 2000 19:32:53 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Please accept my sincere apologies for sending this mail, I at least thought that the program would give a conformation of the addresses sent to. Apologies Steve. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 8 12:32:24 2000 Delivered-To: freebsd-net@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 5054937B681 for ; Thu, 8 Jun 2000 12:32:21 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id PAA76727; Thu, 8 Jun 2000 15:32:16 -0400 (EDT) (envelope-from wollman) Date: Thu, 8 Jun 2000 15:32:16 -0400 (EDT) From: Garrett Wollman Message-Id: <200006081932.PAA76727@khavrinen.lcs.mit.edu> To: Bernd Walter Cc: net@FreeBSD.ORG Subject: Re: [REPOST] Re: How do I get port inside kernel.... (fwd) In-Reply-To: <20000607233457.B98783@cicely8.cicely.de> References: <20000607220906.A98783@cicely8.cicely.de> <200006072058.QAA72060@khavrinen.lcs.mit.edu> <20000607233457.B98783@cicely8.cicely.de> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org < said: > Are the fuctions using the same table with proc0 as with nil or must all > calls use the same value? There are two different purposes for the process argument in the network stack. In some functions (e.g., bind, setsockopt), it is used to gain access to the calling process's credentials. In other functions, it is used as a binary flag indicating whether there is a calling process or not. Some functions of the former flavor know enough to accept a null pointer as meaning ``process is root'', but in general You Just Have To Know. &proc0 should never be passed to functions of the latter type. Sorry. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 8 13: 6:56 2000 Delivered-To: freebsd-net@freebsd.org Received: from ihemlsrv.firewall.lucent.com (ihemail1.lucent.com [192.11.222.161]) by hub.freebsd.org (Postfix) with ESMTP id ED46937C116 for ; Thu, 8 Jun 2000 13:06:48 -0700 (PDT) (envelope-from gcorcoran@lucent.com) Received: from ihemlsrv.firewall.lucent.com (localhost [127.0.0.1]) by ihemlsrv.firewall.lucent.com (Pro-8.9.3/8.9.3) with ESMTP id QAA10726 for ; Thu, 8 Jun 2000 16:06:48 -0400 (EDT) Received: from mhmail.mh.lucent.com (h135-3-115-8.lucent.com [135.3.115.8]) by ihemlsrv.firewall.lucent.com (Pro-8.9.3/8.9.3) with ESMTP id QAA10715; Thu, 8 Jun 2000 16:06:47 -0400 (EDT) Received: from lucent.com by mhmail.mh.lucent.com (8.8.8+Sun/EMS-1.5 sol2) id QAA00608; Thu, 8 Jun 2000 16:06:45 -0400 (EDT) Message-ID: <393FFC53.B3C82CFD@lucent.com> Date: Thu, 08 Jun 2000 16:04:35 -0400 From: "Gary T. Corcoran" Organization: Lucent Microelectronics - Client Access Broadband Systems X-Mailer: Mozilla 4.72 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Luigi Rizzo Cc: net@FreeBSD.ORG Subject: Re: HEADS UP- WF2Q and RED now available in -current References: <200006081348.PAA03955@info.iet.unipi.it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Luigi, > as the subject says, i have just committed some new code to > dummynet (and related hooks and documentation for ipfw) to > implement RED (thanks to Gianluca Iannaccone) and a > variant of Weighted Fair Queueing called WF2Q+ I checked your web page, but didn't find anything describing what "RED" is. And I'm afraid if I just put "red" into a search engine I'll get a zillion results... ;-) So could you just very briefly explain what "RED" is, and/or point me to a URL which describes it? Thanks, Gary -- ========================================================= Gary Corcoran - Distinguished Member of Technical Staff Lucent Microelectronics - Client Access Broadband Systems Communications Protocol & Driver Development Group "We make the drivers that make communications work" Email: gcorcoran@lucent.com --------------------------------------------------------- There are only two kinds of machines - those that fail little by little, and those that fail all at once. ========================================================= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 8 13:23:16 2000 Delivered-To: freebsd-net@freebsd.org Received: from herbelot.dyndns.org (r148m178.cybercable.tm.fr [195.132.148.178]) by hub.freebsd.org (Postfix) with ESMTP id 5A0B737C142 for ; Thu, 8 Jun 2000 13:23:08 -0700 (PDT) (envelope-from herbelot@cybercable.fr) Received: from cybercable.fr (multi.herbelot.nom [192.168.1.2]) by herbelot.dyndns.org (8.9.3/8.9.3) with ESMTP id WAA16074; Thu, 8 Jun 2000 22:25:12 +0200 (CEST) (envelope-from herbelot@cybercable.fr) Message-ID: <393FFF36.BE411C54@cybercable.fr> Date: Thu, 08 Jun 2000 22:16:54 +0200 From: Thierry Herbelot X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: "Gary T. Corcoran" Cc: Luigi Rizzo , net@FreeBSD.ORG Subject: Re: HEADS UP- WF2Q and RED now available in -current References: <200006081348.PAA03955@info.iet.unipi.it> <393FFC53.B3C82CFD@lucent.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "Gary T. Corcoran" wrote: > > Luigi, > > > as the subject says, i have just committed some new code to > > dummynet (and related hooks and documentation for ipfw) to > > implement RED (thanks to Gianluca Iannaccone) and a > > variant of Weighted Fair Queueing called WF2Q+ > > I checked your web page, but didn't find anything describing > what "RED" is. And I'm afraid if I just put "red" into a > search engine I'll get a zillion results... ;-) > > So could you just very briefly explain what "RED" is, and/or > point me to a URL which describes it? Random Early Discard : if the channel has not enough bandwidth, just throw away some frames (randomly) TfH -- Thierry Herbelot ASCII RIBBON CAMPAIGN /"\ Dir. technique LUCCAS AGAINST HTML MAIL & NEWS \ / tout le cable sur http://www.luccas.org PAS DE HTML DANS X un CV : http://perso.cybercable.fr/herbelot LES COURRIELS / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 8 19:21:18 2000 Delivered-To: freebsd-net@freebsd.org Received: from urban.iinet.net.au (urban.iinet.net.au [203.59.24.231]) by hub.freebsd.org (Postfix) with ESMTP id 5CE3E37BD2C for ; Thu, 8 Jun 2000 19:21:00 -0700 (PDT) (envelope-from julian@elischer.org) Received: from popserver-02.iinet.net.au (popserver-02.iinet.net.au [203.59.24.148]) by urban.iinet.net.au (8.8.7/8.8.7) with ESMTP id KAA23504; Fri, 9 Jun 2000 10:20:39 +0800 Received: from jules.elischer.org (reggae-02-19.nv.iinet.net.au [203.59.91.19]) by popserver-02.iinet.net.au (8.9.3/8.9.3) with SMTP id KAA08876; Fri, 9 Jun 2000 10:20:35 +0800 Message-ID: <3940541F.446B9B3D@elischer.org> Date: Thu, 08 Jun 2000 19:19:11 -0700 From: Julian Elischer X-Mailer: Mozilla 3.04Gold (X11; I; FreeBSD 5.0-CURRENT i386) MIME-Version: 1.0 To: duan Cc: julian@whistle.com, freebsd-net@FreeBSD.ORG Subject: Re: a problem of PPPOE References: <200006090130.SAA04371@whistle.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org note: new address for Julian: Duan, No-where here do you mention where the FreeBSD machine is or how it is used.. Julian > From: "duan" > To: > Cc: , > Hi brian, > I am sorry to troble u . > Our company is in shanghai, China,and I met a problem of pppoe. > There is a LAN in our office(all win98), and depend on wingate .we adapt > the pppoe of the Shanghai Telephone Office, but the speed of client is > more slower than Modem, and the client couldnt send the email, but it > can receive.the server (pc, win98 ) is ok, the speed is normal and can > receive and send email. > they use NTS Enternet 300 software. but they met the same problem and > couldnt solve it. > > please help me, for this problem effect the normal work for a week's > time. > > Thanx & Rgds. > > Duan > > aussino shanghai e-shop > -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ presently in: Perth v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 9 0:49: 1 2000 Delivered-To: freebsd-net@freebsd.org Received: from penguin.wise.edt.ericsson.se (penguin-ext.wise.edt.ericsson.se [194.237.142.110]) by hub.freebsd.org (Postfix) with ESMTP id A92AE37C2AD for ; Fri, 9 Jun 2000 00:48:47 -0700 (PDT) (envelope-from mats.cullberg@ericsson.com) Received: from etxb.ericsson.se (avx6.etxb.ericsson.se [130.100.180.16]) by penguin.wise.edt.ericsson.se (8.10.1/8.10.1/WIREfire-1.9) with ESMTP id e597mQr12146; Fri, 9 Jun 2000 09:48:26 +0200 (MET DST) Received: from avc023.etxb.ericsson.se (avc023 [130.100.190.101]) by etxb.ericsson.se (8.9.3+Sun/8.9.3/eri-dom-1.1) with ESMTP id JAA15042; Fri, 9 Jun 2000 09:48:25 +0200 (MET DST) Received: from ericsson.com (localhost [127.0.0.1]) by avc023.etxb.ericsson.se (8.9.3+Sun/8.9.3/client-1.0) with ESMTP id JAA27542; Fri, 9 Jun 2000 09:48:25 +0200 (MET DST) Message-ID: <3940A149.BC8D2755@ericsson.com> Date: Fri, 09 Jun 2000 09:48:25 +0200 From: Mats Cullberg X-Mailer: Mozilla 4.61 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: "Gary T. Corcoran" Cc: Thierry Herbelot , Luigi Rizzo , net@freebsd.org Subject: Re: HEADS UP- WF2Q and RED now available in -current References: <200006081348.PAA03955@info.iet.unipi.it> <393FFC53.B3C82CFD@lucent.com> <393FFF36.BE411C54@cybercable.fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thierry Herbelot wrote: > "Gary T. Corcoran" wrote: > > > > Luigi, > > > > > as the subject says, i have just committed some new code to > > > dummynet (and related hooks and documentation for ipfw) to > > > implement RED (thanks to Gianluca Iannaccone) and a > > > variant of Weighted Fair Queueing called WF2Q+ > > > > I checked your web page, but didn't find anything describing > > what "RED" is. And I'm afraid if I just put "red" into a > > search engine I'll get a zillion results... ;-) > > > > So could you just very briefly explain what "RED" is, and/or > > point me to a URL which describes it? You can find a lot of info at: http://www.aciri.org/floyd/red.html > > > Random Early Discard : if the channel has not enough bandwidth, just > throw away some frames (randomly) I think is it Detection, not Discard. > > > TfH > > -- > Thierry Herbelot ASCII RIBBON CAMPAIGN /"\ > Dir. technique LUCCAS AGAINST HTML MAIL & NEWS \ / > tout le cable sur http://www.luccas.org PAS DE HTML DANS X > un CV : http://perso.cybercable.fr/herbelot LES COURRIELS / \ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message /Mats MPLS design Ericsson Telecom AB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 9 11: 3: 1 2000 Delivered-To: freebsd-net@freebsd.org Received: from pail.ircache.net (pail.scd.ucar.edu [128.117.28.5]) by hub.freebsd.org (Postfix) with ESMTP id BB47637C478 for ; Fri, 9 Jun 2000 11:02:56 -0700 (PDT) (envelope-from rousskov@ircache.net) Received: from localhost (rousskov@localhost) by pail.ircache.net (8.9.2/8.8.7) with ESMTP id MAA09403 for ; Fri, 9 Jun 2000 12:02:55 -0600 (MDT) (envelope-from rousskov@ircache.net) Date: Fri, 9 Jun 2000 12:02:55 -0600 (MDT) From: Alex Rousskov To: freebsd-net@FreeBSD.ORG Subject: corrupted poll(2) results? In-Reply-To: <20000305161638.A85421@prism.flugsvamp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi there, I am looking at a possible bug in poll(2) implementation on FreeBSD 3.3-RELEASE. It seems that, under heavy network load, poll(2) sometimes writes garbage into the user-supplied array of pollfd's. Here is a simple check that I have added deep inside Web Polygraph benchmark (quoted with simplifications): // set first fds_count items of hot_fds array... for (int i = 0; i < fds_count; ++i) // pre-call check Assert(hot_fds[i].fd >= 0); const int res = poll(hot_fds, fds_count, timeout); for (int i = 0; i < fds_count; ++i) // post-call check Assert(hot_fds[i].fd >= 0); The second loop sometimes fails indicating a negative file descriptor on return. Coredump shows that probably all FDs after the failed one are also corrupted. Not all corrupted entries have negative FDs, it is just easier to check for negative ones. Res is 184. Failed "i" is 4608. Fds_count is 4966. Hot_fds array has memory allocated for 32768 entries. The bug can be seen on several hosts so it is probably not a faulty memory problem. I also have seen a coredump with what looks like poll(2) writing response into memory not pointed by hot_fds. A completely different structure was corrupted with what looks like a poll(2) response. Note that hot_fds is allocated only once, so I doubt I am corrupting my own memory (still possible of course). Can anybody offer any insight? Is there anything that can make poll fail when more than 4K FDs are in use? Thank you, Alex. P.S. FreeBSD was patched with http://polygraph.ircache.net/Tips/FreeBSD-3.3/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 9 12:39:43 2000 Delivered-To: freebsd-net@freebsd.org Received: from auemlsrv.firewall.lucent.com (auemail1.lucent.com [192.11.223.161]) by hub.freebsd.org (Postfix) with ESMTP id 4406837BC83 for ; Fri, 9 Jun 2000 12:39:29 -0700 (PDT) (envelope-from gcorcoran@lucent.com) Received: from auemlsrv.firewall.lucent.com (localhost [127.0.0.1]) by auemlsrv.firewall.lucent.com (Pro-8.9.3/8.9.3) with ESMTP id PAA27688 for ; Fri, 9 Jun 2000 15:39:25 -0400 (EDT) Received: from mhmail.mh.lucent.com (h135-3-115-8.lucent.com [135.3.115.8]) by auemlsrv.firewall.lucent.com (Pro-8.9.3/8.9.3) with ESMTP id PAA27683; Fri, 9 Jun 2000 15:39:24 -0400 (EDT) Received: from lucent.com by mhmail.mh.lucent.com (8.8.8+Sun/EMS-1.5 sol2) id PAA11570; Fri, 9 Jun 2000 15:39:22 -0400 (EDT) Message-ID: <3941425C.591BB84B@lucent.com> Date: Fri, 09 Jun 2000 15:15:40 -0400 From: "Gary T. Corcoran" Organization: Lucent Microelectronics - Client Access Broadband Systems X-Mailer: Mozilla 4.72 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Mats Cullberg Cc: Thierry Herbelot , Luigi Rizzo , net@freebsd.org Subject: Re: HEADS UP- WF2Q and RED now available in -current References: <200006081348.PAA03955@info.iet.unipi.it> <393FFC53.B3C82CFD@lucent.com> <393FFF36.BE411C54@cybercable.fr> <3940A149.BC8D2755@ericsson.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Mats Cullberg wrote: > > > So could you just very briefly explain what "RED" is, and/or > > > point me to a URL which describes it? > > You can find a lot of info at: > http://www.aciri.org/floyd/red.html Indeed, there are links to *lots* of papers there... Probably more than I want to know... :) ;-) Thanks, Gary To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 9 13:14:45 2000 Delivered-To: freebsd-net@freebsd.org Received: from overcee.netplex.com.au (peter1.corp.yahoo.com [208.48.107.4]) by hub.freebsd.org (Postfix) with ESMTP id 2E72737C518 for ; Fri, 9 Jun 2000 13:14:33 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 3D4DC1CE4; Fri, 9 Jun 2000 13:14:32 -0700 (PDT) (envelope-from peter@netplex.com.au) X-Mailer: exmh version 2.1.1 10/15/1999 To: Thierry Herbelot Cc: "Gary T. Corcoran" , Luigi Rizzo , net@FreeBSD.ORG Subject: Re: HEADS UP- WF2Q and RED now available in -current In-Reply-To: Message from Thierry Herbelot of "Thu, 08 Jun 2000 22:16:54 +0200." <393FFF36.BE411C54@cybercable.fr> Date: Fri, 09 Jun 2000 13:14:32 -0700 From: Peter Wemm Message-Id: <20000609201432.3D4DC1CE4@overcee.netplex.com.au> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thierry Herbelot wrote: > "Gary T. Corcoran" wrote: > > > > Luigi, > > > > > as the subject says, i have just committed some new code to > > > dummynet (and related hooks and documentation for ipfw) to > > > implement RED (thanks to Gianluca Iannaccone) and a > > > variant of Weighted Fair Queueing called WF2Q+ > > > > I checked your web page, but didn't find anything describing > > what "RED" is. And I'm afraid if I just put "red" into a > > search engine I'll get a zillion results... ;-) > > > > So could you just very briefly explain what "RED" is, and/or > > point me to a URL which describes it? > > Random Early Discard : if the channel has not enough bandwidth, just > throw away some frames (randomly) More to the point, it takes advantage of TCP backoff to slow down all the TCP sessions so that you don't quite get to the point of hitting the 100% limit and losing a large chunk of in-flight data. If you drop a few packets earlier you can "shape" the tcp connection(s) so that they don't hit the wall hard. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 9 13:43:10 2000 Delivered-To: freebsd-net@freebsd.org Received: from turtle.looksharp.net (cc360882-a.strhg1.mi.home.com [24.2.221.22]) by hub.freebsd.org (Postfix) with ESMTP id 2701437B80E for ; Fri, 9 Jun 2000 13:43:08 -0700 (PDT) (envelope-from bsdx@looksharp.net) Received: from localhost (bsdx@localhost) by turtle.looksharp.net (8.9.3/8.9.3) with ESMTP id QAA06634 for ; Fri, 9 Jun 2000 16:43:07 -0400 (EDT) (envelope-from bsdx@looksharp.net) Date: Fri, 9 Jun 2000 16:43:07 -0400 (EDT) From: Adam To: net@freebsd.org Subject: Re: HEADS UP- WF2Q and RED now available in -current In-Reply-To: <20000609201432.3D4DC1CE4@overcee.netplex.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 9 Jun 2000, Peter Wemm wrote: >Thierry Herbelot wrote: >> "Gary T. Corcoran" wrote: >> > >> > Luigi, >> > >> > > as the subject says, i have just committed some new code to >> > > dummynet (and related hooks and documentation for ipfw) to >> > > implement RED (thanks to Gianluca Iannaccone) and a >> > > variant of Weighted Fair Queueing called WF2Q+ >> > >> > I checked your web page, but didn't find anything describing >> > what "RED" is. And I'm afraid if I just put "red" into a >> > search engine I'll get a zillion results... ;-) >> > >> > So could you just very briefly explain what "RED" is, and/or >> > point me to a URL which describes it? >> >> Random Early Discard : if the channel has not enough bandwidth, just >> throw away some frames (randomly) > >More to the point, it takes advantage of TCP backoff to slow down all the >TCP sessions so that you don't quite get to the point of hitting the 100% >limit and losing a large chunk of in-flight data. If you drop a few packets >earlier you can "shape" the tcp connection(s) so that they don't hit the >wall hard. > >Cheers, >-Peter This sounds like _exactly_ what I need for my link :) Anyone have any information on how to set that up? It might just be enough reason to upgrade my firewall ;> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 9 14:35:33 2000 Delivered-To: freebsd-net@freebsd.org Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by hub.freebsd.org (Postfix) with SMTP id 8A43437B659 for ; Fri, 9 Jun 2000 14:35:30 -0700 (PDT) (envelope-from fgont@softhome.net) Received: (qmail 807 invoked by uid 417); 9 Jun 2000 21:36:56 -0000 Received: from unknown (HELO fernandg.softhome.net) (200.42.103.197) by smtpb.softhome.net with SMTP; 9 Jun 2000 21:36:56 -0000 Message-Id: <4.3.2.7.0.20000609133728.00aa1c20@pop.softhome.net> X-Sender: fgont@pop.softhome.net X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Fri, 09 Jun 2000 13:53:25 -0300 To: freebsd-net@freebsd.org From: Fernando Ariel Gont Subject: DNS setup Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi! I'm having problems setting up named. What I want to do is to set named up so that the domains *.ariel.com are translated to the IP address 127.0.0.* (locally on my computer) For example: a IN A 127.0.0.1 b IN A 127.0.0.2 c IN A 127.0.0.3 and so on... (a.ariel.com should be translated to 127.0.0.1, b.ariel.com to 127.0.0.2, and so on) I configured named to do the reverse translation (to get the domain name, by means of the IP number), and it works Ok, but I couldn't use it for doing the "forward" translations. I updated the named.boot file and the named.conf and pointed the ones I put in /var/named in these files. I've read "TCP/IP Illustrated" (Stevens) chapter about the DNS, and have read some FAQs and HOWTOs, but I couldn't make it work. If anyone could give me any help, it'd be much appreciated. [If you have any config files for doing what I'm trying to do, I'd be glad to receive them in at fgont@softhome.net , so that I could have a look at them] Thank you very much in advance, Fernando Ariel Gont e-mail: fgont@softhome.net Greetings, Fernando Ariel Gont e-mail: fgont@softhome.net Web-site: http://members.xoom.com/gont Web-site: http://www.ingroup.com.ar/fgont ISK site: http://members.xoom.com/iskcgi "Show me your flowcharts and conceal your tables, and I shall continue to be mystified. Show me your tables, and I won't usually need your flowcharts; they'll be obvious" - Frederick P. Brooks, Jr., The Mytical Man Month To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 9 15: 5:40 2000 Delivered-To: freebsd-net@freebsd.org Received: from mcbi-32.med.nyu.edu (mcs01-ext.med.nyu.edu [128.122.2.2]) by hub.freebsd.org (Postfix) with ESMTP id 8CB4837B756; Fri, 9 Jun 2000 15:05:31 -0700 (PDT) (envelope-from xuc@mcbi-32.med.nyu.edu) Received: (from xuc@localhost) by mcbi-32.med.nyu.edu (8.9.3/8.9.3) id SAA01174; Fri, 9 Jun 2000 18:05:04 -0400 Date: Fri, 9 Jun 2000 18:05:04 -0400 From: Chen Xu To: Brian Somers Cc: freebsd-net@freebsd.org, questions@freebsd.org Subject: ppp delete the line "nameserver 127.0.0.1" in resolv.conf Message-ID: <20000609180504.A993@saturn.med.nyu.edu> Reply-To: xuc@mcbi-34.med.nyu.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i X-Arbitrary-Number-Of-The-Day: 42 X-Sender: xuc@saturn.med.nyu.edu Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Greetings, I guess you can give me the anwser. I have two FreeBSD boxes at home as LAN. Like this: ppp ether my ISP <---> box1 -------- box2 box1(FreeBSD3.2) is the gateway, connecting outside "ppp -auto -alias myisp". Works fine. It also runs DNS server for the local host names resolving. Box2 running 4.0-stable. Everything worked fine without connecting via ppp (both boxes can see each other by DNS). BUT, after ppp connection to outside after 1 minute or so, the line (in the /etc/resolv.conf) "nameserver 127.0.0.1" will be deleted from the file. The next to entries will stay. /etc/resolv.conf ========================= domain home <---- stay nameserver 127.0.0.1 <------- this line will be deleted nameserver 11.22.33.44 < --- stay nameserver 55.66.77.88 < --- stay ========================= the lone added here "nameserver 127.0.0.1" is just the the local DNS. In the box1 which is the NDS server, it makes sense as it points to itself. The domian "home" is the actaul name I give to my home LAN. Don't know if that's something wrong. After ppp connection is established for 1 or 2 minutes, the first line is deleted box1 cannnot see box2 anymore. Seeing outside still OK. Box2 can see box1 and outside. Even I set the mode of /etc/resolv.conf as read-only, it still changes every time I make ppp connection. What's wrong? -- Chen Xu xuchen66@yahoo.com, xuc@saturn.med.nyu.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 9 16:45:19 2000 Delivered-To: freebsd-net@freebsd.org Received: from Awfulhak.org (tun.AwfulHak.org [194.242.139.173]) by hub.freebsd.org (Postfix) with ESMTP id 52FC837C1F2 for ; Fri, 9 Jun 2000 16:45:13 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.awfulhak.org [172.16.0.12]) by Awfulhak.org (8.9.3/8.9.3) with ESMTP id AAA14266; Sat, 10 Jun 2000 00:45:29 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id XAA00463; Fri, 9 Jun 2000 23:37:34 +0100 (BST) (envelope-from brian@Awfulhak.org) Message-Id: <200006092237.XAA00463@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Adam Cc: net@FreeBSD.ORG, brian@hak.lan.Awfulhak.org Subject: Re: HEADS UP- WF2Q and RED now available in -current In-Reply-To: Message from Adam of "Fri, 09 Jun 2000 16:43:07 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 09 Jun 2000 23:37:33 +0100 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > On Fri, 9 Jun 2000, Peter Wemm wrote: > >Thierry Herbelot wrote: > >> "Gary T. Corcoran" wrote: > >> > > >> > Luigi, > >> > > >> > > as the subject says, i have just committed some new code to > >> > > dummynet (and related hooks and documentation for ipfw) to > >> > > implement RED (thanks to Gianluca Iannaccone) and a > >> > > variant of Weighted Fair Queueing called WF2Q+ > >> > > >> > I checked your web page, but didn't find anything describing > >> > what "RED" is. And I'm afraid if I just put "red" into a > >> > search engine I'll get a zillion results... ;-) > >> > > >> > So could you just very briefly explain what "RED" is, and/or > >> > point me to a URL which describes it? > >> > >> Random Early Discard : if the channel has not enough bandwidth, just > >> throw away some frames (randomly) > > > >More to the point, it takes advantage of TCP backoff to slow down all the > >TCP sessions so that you don't quite get to the point of hitting the 100% > >limit and losing a large chunk of in-flight data. If you drop a few packets > >earlier you can "shape" the tcp connection(s) so that they don't hit the > >wall hard. > > > >Cheers, > >-Peter > > This sounds like _exactly_ what I need for my link :) Anyone have any > information on how to set that up? It might just be enough reason to > upgrade my firewall ;> Luigi's description started this thread :-) Briefly: : In order to test WFQ you can try the following: : : ipfw add 100 queue 10 icmp from any to any out : ipfw add 200 queue 11 ip from any to any out : : ipfw queue 10 config weight 1 pipe 2 : ipfw queue 11 config weight 10 pipe 2 mask all : : ipfw pipe 2 config bw 200Kbit/s : : and then see how a ping -f to the outside will not disturb : other IP traffic, while still being able to use the full bandwidth : configured for the pipe. -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 9 18: 0:18 2000 Delivered-To: freebsd-net@freebsd.org Received: from Awfulhak.org (tun.AwfulHak.org [194.242.139.173]) by hub.freebsd.org (Postfix) with ESMTP id C2C9837B6E8; Fri, 9 Jun 2000 18:00:10 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.awfulhak.org [172.16.0.12]) by Awfulhak.org (8.9.3/8.9.3) with ESMTP id CAA14801; Sat, 10 Jun 2000 02:01:22 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id CAA01989; Sat, 10 Jun 2000 02:01:19 +0100 (BST) (envelope-from brian@Awfulhak.org) Message-Id: <200006100101.CAA01989@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: xuc@mcbi-34.med.nyu.edu Cc: Brian Somers , freebsd-net@FreeBSD.ORG, questions@FreeBSD.ORG, brian@hak.lan.awfulhak.org Subject: Re: ppp delete the line "nameserver 127.0.0.1" in resolv.conf In-Reply-To: Message from Chen Xu of "Fri, 09 Jun 2000 18:05:04 EDT." <20000609180504.A993@saturn.med.nyu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 10 Jun 2000 02:01:17 +0100 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org You need to remove the line saying ``enable dns'' from your ppp.conf. See the man page. > Greetings, > > I guess you can give me the anwser. > > I have two FreeBSD boxes at home as LAN. Like this: > > ppp ether > my ISP <---> box1 -------- box2 > > box1(FreeBSD3.2) is the gateway, connecting outside "ppp -auto -alias > myisp". Works fine. It also runs DNS server for the local host names > resolving. Box2 running 4.0-stable. Everything worked fine without > connecting via ppp (both boxes can see each other by DNS). BUT, after > ppp connection to outside after 1 minute or so, the line (in the > /etc/resolv.conf) > > "nameserver 127.0.0.1" will be deleted from the file. The next to > entries will stay. > > /etc/resolv.conf > ========================= > domain home <---- stay > nameserver 127.0.0.1 <------- this line will be deleted > nameserver 11.22.33.44 < --- stay > nameserver 55.66.77.88 < --- stay > ========================= > > the lone added here "nameserver 127.0.0.1" is just the the local DNS. In > the box1 which is the NDS server, it makes sense as it points to itself. > The domian "home" is the actaul name I give to my home LAN. Don't know > if that's something wrong. > > After ppp connection is established for 1 or 2 minutes, the first line > is deleted box1 cannnot see box2 anymore. Seeing outside still OK. Box2 > can see box1 and outside. > > Even I set the mode of /etc/resolv.conf as read-only, it still changes > every time I make ppp connection. > > What's wrong? > > -- > Chen Xu > xuchen66@yahoo.com, xuc@saturn.med.nyu.edu -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 9 21: 2:14 2000 Delivered-To: freebsd-net@freebsd.org Received: from rapidnet.com (rapidnet.com [205.164.216.1]) by hub.freebsd.org (Postfix) with ESMTP id 2A12537B7AC for ; Fri, 9 Jun 2000 21:02:11 -0700 (PDT) (envelope-from nick@rapidnet.com) Received: from localhost (nick@localhost) by rapidnet.com (8.9.3/8.9.3) with ESMTP id WAA00308; Fri, 9 Jun 2000 22:02:04 -0600 (MDT) Date: Fri, 9 Jun 2000 22:02:04 -0600 (MDT) From: Nick Rogness To: Fernando Ariel Gont Cc: freebsd-net@freebsd.org Subject: Re: DNS setup In-Reply-To: <4.3.2.7.0.20000609133728.00aa1c20@pop.softhome.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 9 Jun 2000, Fernando Ariel Gont wrote: > Hi! > > I'm having problems setting up named. > > What I want to do is to set named up so that the domains *.ariel.com are > translated to the IP address 127.0.0.* (locally on my computer) > For example: > > a IN A 127.0.0.1 > b IN A 127.0.0.2 > c IN A 127.0.0.3 > > and so on... (a.ariel.com should be translated to 127.0.0.1, b.ariel.com to > 127.0.0.2, and so on) OK. > > I configured named to do the reverse translation (to get the domain name, > by means of the IP number), and it works Ok, but I couldn't use it for > doing the "forward" translations. Did you setup the forward addresses within the zone ariel.com ? What do your config files look like? > > I updated the named.boot file and the named.conf and pointed the ones I put > in /var/named in these files. > What does nslookup say about these problems (debug mode)? > I've read "TCP/IP Illustrated" (Stevens) chapter about the DNS, and have > read some FAQs and HOWTOs, but I couldn't make it work. > Try O-Reilly DNS/Bind, revision 3...great book. > If anyone could give me any help, it'd be much appreciated. > [If you have any config files for doing what I'm trying to do, I'd be glad > to receive them in at fgont@softhome.net , so that I could have a look at > them] // in 0.0.127.in-addr.arpa zone file: 1 IN PTR a.ariel.com. 2 IN PTR b.ariel.com. 3 IN PTR c.ariel.com. . . . // in ariel.com zone file: a.ariel.com. IN A 127.0.0.1 b.ariel.com. IN A 127.0.0.2 c.ariel.com. IN A 127.0.0.3 . . . Update your Serial numbers for those zones. Reload your name server. Nick Rogness - Speak softly and carry a Gigabit switch. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 9 22:15:54 2000 Delivered-To: freebsd-net@freebsd.org Received: from info.iet.unipi.it (info.iet.unipi.it [131.114.9.184]) by hub.freebsd.org (Postfix) with ESMTP id E6D7937B6ED for ; Fri, 9 Jun 2000 22:15:49 -0700 (PDT) (envelope-from luigi@info.iet.unipi.it) Received: (from luigi@localhost) by info.iet.unipi.it (8.9.3/8.9.3) id HAA05837; Sat, 10 Jun 2000 07:17:17 +0200 (CEST) (envelope-from luigi) From: Luigi Rizzo Message-Id: <200006100517.HAA05837@info.iet.unipi.it> Subject: Re: HEADS UP- WF2Q and RED now available in -current In-Reply-To: from Adam at "Jun 9, 2000 04:43:07 pm" To: Adam Date: Sat, 10 Jun 2000 07:17:17 +0200 (CEST) Cc: net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > >> Random Early Discard : if the channel has not enough bandwidth, just > >> throw away some frames (randomly) > > > >More to the point, it takes advantage of TCP backoff to slow down all the > >TCP sessions so that you don't quite get to the point of hitting the 100% > >limit and losing a large chunk of in-flight data. If you drop a few packets > >earlier you can "shape" the tcp connection(s) so that they don't hit the > >wall hard. > > > >Cheers, > >-Peter > > This sounds like _exactly_ what I need for my link :) Anyone have any > information on how to set that up? It might just be enough reason to > upgrade my firewall ;> actually if you have WFQ you should not need RED. The reason there is interest in RED is that it does not require per-flow state so it is cheaper in terms of resources. cheers luigi -----------------------------------+------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) Mobile +39-347-0373137 -----------------------------------+------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Jun 10 0:17:42 2000 Delivered-To: freebsd-net@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 03F7237C2C2 for ; Sat, 10 Jun 2000 00:17:30 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.8.7/8.8.7) with ESMTP id RAA14612; Sat, 10 Jun 2000 17:17:19 +1000 Date: Sat, 10 Jun 2000 17:17:16 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Alex Rousskov Cc: freebsd-net@FreeBSD.ORG Subject: Re: corrupted poll(2) results? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 9 Jun 2000, Alex Rousskov wrote: > Can anybody offer any insight? Is there anything that can make poll fail when > more than 4K FDs are in use? There is a possibly-related kernel bug in FreeBSD-3.3. It sometimes corrupts kernel fd tables and causes the whole kernel to fail. It is sometimes activated by allocating lots of fd's and forking and exiting in a child process. See PRi 16568. Upgrade to FreeBSD-stable (3.x after 3.4-release) yesterday. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Jun 10 14:52: 4 2000 Delivered-To: freebsd-net@freebsd.org Received: from camel.ethereal.net (camel.ethereal.net [216.200.22.209]) by hub.freebsd.org (Postfix) with ESMTP id 9691E37B817 for ; Sat, 10 Jun 2000 14:51:52 -0700 (PDT) (envelope-from jkb@camel.ethereal.net) Received: (from jkb@localhost) by camel.ethereal.net (8.10.0.Beta10/8.10.0.Beta10) id e5ALofJ66598 for freebsd-net@FreeBSD.ORG; Sat, 10 Jun 2000 14:50:41 -0700 (PDT) Date: Sat, 10 Jun 2000 14:50:41 -0700 From: Jan Koum To: freebsd-net@FreeBSD.ORG Subject: Re: Off topic, sorta: home RJ-45 wiring Message-ID: <20000610145041.F63030@ethereal.net> References: <200006011642.MAA22594@larryboy.graphics.cornell.edu> <3936EB42.D53D001C@softweyr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.1i In-Reply-To: <3936EB42.D53D001C@softweyr.com>; from wes@softweyr.com on Thu, Jun 01, 2000 at 05:01:22PM -0600 X-Operating-System: FreeBSD camel.ethereal.net 3.4-RELEASE FreeBSD 3.4-RELEASE X-Unix-Uptime: 5:28PM up 32 days, 4:04, 26 users, load averages: 2.57, 2.31, 2.20 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org while we are on the "off topic" subject here: how hard is to wire a house with cat-5? i want to put ethernet in a couple of rooms. it's a two story, 8 years old house with an attic and crawl space. i just don't want to run ethernet all over the house, but i also don't want to cut walls just to do this. if anyone can point me in the right direction, i'd really appreciated it. if you know any professionals who can do it, pls let me know -- i am in northern california. thanks, -- yan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Jun 10 21: 3:45 2000 Delivered-To: freebsd-net@freebsd.org Received: from alpha.shianet.org (alpha.shianet.org [216.40.132.245]) by hub.freebsd.org (Postfix) with ESMTP id C8A6E37B564 for ; Sat, 10 Jun 2000 21:03:38 -0700 (PDT) (envelope-from wrath@shianet.org) Received: from wrath01 (port35.owosso10.tir.com [216.40.134.36]) by alpha.shianet.org (8.9.1/8.9.1) with SMTP id AAA22438 for ; Sun, 11 Jun 2000 00:02:18 -0400 (EDT) Message-ID: <002901bfd359$f0d53d40$02000a0a@wrath01> From: "CyberSniper" To: References: <200006011642.MAA22594@larryboy.graphics.cornell.edu> <3936EB42.D53D001C@softweyr.com> <20000610145041.F63030@ethereal.net> Subject: Re: Off topic, sorta: home RJ-45 wiring Date: Sun, 11 Jun 2000 00:01:17 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org the kit to do it: http://www2.warehouse.com/product.asp?pf%5Fid=DTK1462&blind=no&cat=datacomm extra wire in case you're running wire to the moon: http://www2.warehouse.com/product.asp?pf%5Fid=DBC1838 you'll also need to acquire an outlet/switch box for each wallplate, a 3/8" drill and a 3/8" to 1/2" paddle bit to drill the holes. if you bought some phone wire/video wire/cat5 staples it'd look more professional. you can do all of it with time and a little ingenuity, especially since you have a crawlspace and an attic to work in. i've never seen an electrician that was qualified to run data cables step in a house for under $500. some things to consider: don't coil excess wire. don't kink or run a staple through the wire(if you bother to secure it). keep wire atleast four inches away from power lines. keep wire atleast eight inches away from transformers like doorbell transformers and fluorescent light ballasts. someone mentioned a site that explains how to terminate a pass through and a cross cable. maybe they could repost? if you've got any other questions, feel free to harass me about it -Brian ----- Original Message ----- From: "Jan Koum" To: Sent: Saturday, June 10, 2000 5:50 PM Subject: Re: Off topic, sorta: home RJ-45 wiring > while we are on the "off topic" subject here: how hard is to wire a house > with cat-5? > > i want to put ethernet in a couple of rooms. it's a two story, 8 years old > house with an attic and crawl space. i just don't want to run ethernet all > over the house, but i also don't want to cut walls just to do this. > > if anyone can point me in the right direction, i'd really appreciated it. > if you know any professionals who can do it, pls let me know -- i am in northern > california. thanks, > > -- yan > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message