From owner-freebsd-net@FreeBSD.ORG Sun Mar 20 10:23:23 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2644E16A4CE for ; Sun, 20 Mar 2005 10:23:23 +0000 (GMT) Received: from note.orchestra.cse.unsw.EDU.AU (note.orchestra.cse.unsw.EDU.AU [129.94.242.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4ECC043D49 for ; Sun, 20 Mar 2005 10:23:22 +0000 (GMT) (envelope-from lukem@cse.unsw.edu.au) Received: From wagner With LocalMail ; Sun, 20 Mar 2005 21:23:14 +1100 From: lukem.freebsd@cse.unsw.edu.au Sender: lukem@cse.unsw.edu.au To: Mike Silbersack Date: Sun, 20 Mar 2005 21:23:14 +1100 (EST) In-Reply-To: <20050318211424.I99115@odysseus.silby.com> Message-ID: References: <20050317221359.GN89312@funkthat.com> <20050318021907.H844@odysseus.silby.com> <20050318092429.GD37984@funkthat.com> <20050318211424.I99115@odysseus.silby.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-net@FreeBSD.org cc: John-Mark Gurney Subject: Re: changes to make ethernet packets able to be unaligned... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2005 10:23:23 -0000 Why not just fix the protocols which do unaligned accesses? Is speedup of doing non-byte-wide reads when manipulating packet headers really larger than the cost of aligning everything? I doubt it. Your average tcp packet shoule only cause a few unaligned accesses anyway, so we are putting in a lot of effort to save re-writing a very small number of spots in the protocol stack. Personally, I think it would be better to just remove the alignment constraints altogether, and re-write the protocols to avoid doing unaligned accesses. An easy way to track them down would be to use an architecture which uses exceptions to handle unaligned accesses, and log all the exceptions in the protocol stack. -- Luke From owner-freebsd-net@FreeBSD.ORG Sun Mar 20 11:37:16 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E38D16A4CE for ; Sun, 20 Mar 2005 11:37:16 +0000 (GMT) Received: from relay02.pair.com (relay02.pair.com [209.68.5.16]) by mx1.FreeBSD.org (Postfix) with SMTP id 7443943D48 for ; Sun, 20 Mar 2005 11:37:15 +0000 (GMT) (envelope-from silby@silby.com) Received: (qmail 3674 invoked from network); 20 Mar 2005 11:37:14 -0000 Received: from unknown (HELO localhost) (unknown) by unknown with SMTP; 20 Mar 2005 11:37:14 -0000 X-pair-Authenticated: 209.68.2.70 Date: Sun, 20 Mar 2005 05:37:13 -0600 (CST) From: Mike Silbersack To: Sten Spans In-Reply-To: Message-ID: <20050320053637.J54298@odysseus.silby.com> References: <20050317221359.GN89312@funkthat.com> <20050318021907.H844@odysseus.silby.com> <20050318092429.GD37984@funkthat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-net@FreeBSD.org cc: John-Mark Gurney Subject: Re: changes to make ethernet packets able to be unaligned... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2005 11:37:16 -0000 On Sat, 19 Mar 2005, Sten Spans wrote: > em with jumboframes is borken atm. > It seems some drivers don't handle the jumboframes - > chained mbufs case quite correctly. > > -- > Sten Spans Totally broken, or broken when used on non-i386 architectures? Mike "Silby" Silbersack From owner-freebsd-net@FreeBSD.ORG Sun Mar 20 12:14:07 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18C7E16A4CE for ; Sun, 20 Mar 2005 12:14:07 +0000 (GMT) Received: from ford.blinkenlights.nl (ford.blinkenlights.nl [213.204.211.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD20943D1F for ; Sun, 20 Mar 2005 12:14:06 +0000 (GMT) (envelope-from sten@blinkenlights.nl) Received: from tea.blinkenlights.nl (tea.blinkenlights.nl [192.168.1.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ford.blinkenlights.nl (Postfix) with ESMTP id A3F263F294; Sun, 20 Mar 2005 13:14:05 +0100 (CET) Received: by tea.blinkenlights.nl (Postfix, from userid 101) id 35BD4265; Sun, 20 Mar 2005 13:14:05 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by tea.blinkenlights.nl (Postfix) with ESMTP id 1BAD425F; Sun, 20 Mar 2005 13:14:05 +0100 (CET) Date: Sun, 20 Mar 2005 13:14:05 +0100 (CET) From: Sten Spans To: Mike Silbersack In-Reply-To: <20050320053637.J54298@odysseus.silby.com> Message-ID: References: <20050317221359.GN89312@funkthat.com> <20050318021907.H844@odysseus.silby.com> <20050318092429.GD37984@funkthat.com> <20050320053637.J54298@odysseus.silby.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-net@FreeBSD.org cc: John-Mark Gurney Subject: Re: changes to make ethernet packets able to be unaligned... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2005 12:14:07 -0000 On Sun, 20 Mar 2005, Mike Silbersack wrote: > > On Sat, 19 Mar 2005, Sten Spans wrote: > >> em with jumboframes is borken atm. >> It seems some drivers don't handle the jumboframes - >> chained mbufs case quite correctly. >> >> -- >> Sten Spans > > Totally broken, or broken when used on non-i386 architectures? Broken on alpha, I haven't had a chance to test other !i386 architectures. But the same problem already has a ( posibly dirty ) fix in openbsd. Alignment is only done for mtu 1500, so jumbo frames are not aligned with causes problems on strict alignment architectures. http://www.freebsd.org/cgi/query-pr.cgi?pr=75794 -- Sten Spans "There is a crack in everything, that's how the light gets in." Leonard Cohen - Anthem From owner-freebsd-net@FreeBSD.ORG Sun Mar 20 12:24:20 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2194716A4CE for ; Sun, 20 Mar 2005 12:24:20 +0000 (GMT) Received: from r-dd.iij4u.or.jp (r-dd.iij4u.or.jp [210.130.0.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7839F43D1F for ; Sun, 20 Mar 2005 12:24:19 +0000 (GMT) (envelope-from demizu@dd.iij4u.or.jp) Received: from localhost (124.117.138.210.xn.2iij.net [210.138.117.124]) by r-dd.iij4u.or.jp (8.11.6+IIJ/8.11.6) with ESMTP id j2KCOIg15826; Sun, 20 Mar 2005 21:24:18 +0900 (JST) Date: Sun, 20 Mar 2005 21:24:59 +0900 (JST) Message-Id: <20050320.212459.21971983.Noritoshi@Demizu.ORG> From: Noritoshi Demizu To: freebsd-net@freebsd.org In-Reply-To: <20050316.215730.84382579.Noritoshi@Demizu.ORG> References: <20050316.215730.84382579.Noritoshi@Demizu.ORG> X-Mailer: Mew version 4.1 on Emacs 21 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: TCP SACK of FreeBSD stable X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2005 12:24:20 -0000 Upon a request, I made two experiments to compare the TCP SACK behaviors when Limited Transmit is on and off. I put the new results at http://www.demizu.org/~noritosi/memo/2005/0320/ 1. In the first RTT of the recovery mode, FreeBSD stable sends one data segment for each duplicate ACK segment. As a result, the outstanding window size may not be halved while a loss is detected. 2. FreeBSD stable retransmits data upon the arrival of the first SACK block higher than the data. As a result, FreeBSD stable would retransmit data segments unnecessarily when data segments are reordered. 3. FreeBSD stable seems not to retransmit data higher than snd_recover even if the data can be infered as lost. Any comments are welcome. Thank you. Regards, Noritoshi Demizu From owner-freebsd-net@FreeBSD.ORG Sun Mar 20 14:53:19 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62D3216A4CE for ; Sun, 20 Mar 2005 14:53:19 +0000 (GMT) Received: from mail.cs.umn.edu (mail.cs.umn.edu [128.101.34.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B1A843D1D for ; Sun, 20 Mar 2005 14:53:19 +0000 (GMT) (envelope-from jhwang@cs.umn.edu) Received: from localhost (localhost [127.0.0.1]) by augustus.cs.umn.edu (Postfix) with ESMTP id 6A3345C372 for ; Sun, 20 Mar 2005 08:53:18 -0600 (CST) Received: from mail.cs.umn.edu ([127.0.0.1]) by localhost (augustus [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12389-01-10 for ; Sun, 20 Mar 2005 08:53:17 -0600 (CST) Received: from sensec.cs.umn.edu (sensec.cs.umn.edu [128.101.189.204]) by mail.cs.umn.edu (Postfix) with ESMTP id 345E55C362 for ; Sun, 20 Mar 2005 08:53:17 -0600 (CST) Received: by sensec.cs.umn.edu (Postfix, from userid 1961) id 049C836CF2; Sun, 20 Mar 2005 08:53:16 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by sensec.cs.umn.edu (Postfix) with ESMTP id EB9173DC38 for ; Sun, 20 Mar 2005 08:53:16 -0600 (CST) Date: Sun, 20 Mar 2005 08:53:16 -0600 (CST) From: Joengmin Hwang To: freebsd-net@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: amavisd-new at cs.umn.edu Subject: Does atheros Hal control CSMA? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2005 14:53:19 -0000 I am finding the part which control carrier sense (CSMA). I've checked atheros source code and related 802.11 source code. But i cannot find it out. Now i am wondering if it is controlled by HAL. But since HAL is only provided as binary code, i cannot figure it out. I would really appreciate if anyone let me know which part is controlling carrier sense. Is it HAL? Thanks. From owner-freebsd-net@FreeBSD.ORG Sun Mar 20 19:20:13 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1FC116A4CE; Sun, 20 Mar 2005 19:20:13 +0000 (GMT) Received: from r2d2.bromirski.net (r2d2.bromirski.net [217.153.57.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id E78EC43D31; Sun, 20 Mar 2005 19:20:12 +0000 (GMT) (envelope-from lbromirski@mr0vka.eu.org) Received: from [127.0.0.1] (shield.wesola.pl [62.111.150.246]) by r2d2.bromirski.net (Postfix) with ESMTP id 29A7C108972; Sun, 20 Mar 2005 20:20:10 +0100 (CET) Message-ID: <423DCD9A.4010401@mr0vka.eu.org> Date: Sun, 20 Mar 2005 20:23:06 +0100 From: =?ISO-8859-2?Q?=A3ukasz_Bromirski?= User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050318) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org, freebsd-pf@freebsd.org References: <42348BDF.2080101@authtec.com> <20050313230915.GF3697@diehard.n-r-g.com> In-Reply-To: <20050313230915.GF3697@diehard.n-r-g.com> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Scan-Module: SMTP[2005.03.18 (2004.11.26)] cc: sam.wun@authtec.com cc: Claudio Jeker Subject: Re: OpenBGPD with FreeBSD X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2005 19:20:13 -0000 Claudio Jeker wrote: >>Had openbgpd ported to freebsd or is it in any progress? >>If I want to install it in FreeBSD, is there any guideline for me to follow? > You have to remove the full pfkey interface and replace it with dummy > functions as it is incompatible. So tcp md5 does not work but I think it > is still broken in FreeBSD anyway. > Here is a diff I created some time ago. Perhaps some other minor changes > are needed. I've created short HOWTO as well as diff to make OpenBGPd easily installable on FreeBSD (tested 5.3/5.4). It works with pf (pushing prefixes to pf tables), but of course lacks MD5 authorization for peers. Claudio, thanks for suggestions about the pfkey. Here's short HOWTO: http://lukasz.bromirski.net/projekty/openbgpd/index-en.html If anyone will push this further and make a port out of it, it would be really nice. -- this space was intentionally left blank | Łukasz Bromirski you can insert your favourite quote here | lukasz:bromirski,net From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 04:08:03 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E7BD16A4CE for ; Mon, 21 Mar 2005 04:08:03 +0000 (GMT) Received: from roadrunner.metaflex.com (roadrunner.metaflex.com [209.246.232.249]) by mx1.FreeBSD.org (Postfix) with SMTP id A6C3843D49 for ; Mon, 21 Mar 2005 04:08:02 +0000 (GMT) (envelope-from nlandys@atrask.lt) Received: (qmail 4547 invoked by uid 511); 21 Mar 2005 04:07:45 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 21 Mar 2005 04:07:45 -0000 Date: Sun, 20 Mar 2005 20:07:45 -0800 (PST) From: Nerius Landys X-X-Sender: nlandys@roadrunner.metaflex.com To: Julian Elischer In-Reply-To: <423A86D1.5090604@elischer.org> Message-ID: References: <423A86D1.5090604@elischer.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: Nerius Landys cc: freebsd-net@freebsd.org Subject: Re: transparent bridge and ARP proxy confusion X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 04:08:03 -0000 > what happens with netgraph bridging? > (/usr/share/examples/netgraph/....) With netgraph bridging (using the ether.bridge example) everything works as expected - the "local" interface promiscuously uses the same MAC address out every physical interface. From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 10:28:27 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9E4316A4CE for ; Mon, 21 Mar 2005 10:28:27 +0000 (GMT) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id B16A943D46 for ; Mon, 21 Mar 2005 10:28:26 +0000 (GMT) (envelope-from andre@freebsd.org) Received: (qmail 55626 invoked from network); 21 Mar 2005 09:59:44 -0000 Received: from unknown (HELO freebsd.org) ([62.48.0.53]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 21 Mar 2005 09:59:44 -0000 Message-ID: <423EA1CB.58BE5E27@freebsd.org> Date: Mon, 21 Mar 2005 11:28:27 +0100 From: Andre Oppermann X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: =?iso-8859-1?Q?=A3ukasz?= Bromirski References: <42348BDF.2080101@authtec.com> <423DCD9A.4010401@mr0vka.eu.org> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit cc: freebsd-net@freebsd.org cc: Claudio Jeker cc: sam.wun@authtec.com cc: freebsd-pf@freebsd.org Subject: Re: OpenBGPD with FreeBSD X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 10:28:27 -0000 Łukasz Bromirski wrote: > > Claudio Jeker wrote: > > >>Had openbgpd ported to freebsd or is it in any progress? > >>If I want to install it in FreeBSD, is there any guideline for me to follow? > > You have to remove the full pfkey interface and replace it with dummy > > functions as it is incompatible. So tcp md5 does not work but I think it > > is still broken in FreeBSD anyway. > > Here is a diff I created some time ago. Perhaps some other minor changes > > are needed. > > I've created short HOWTO as well as diff to make OpenBGPd easily > installable on FreeBSD (tested 5.3/5.4). It works with pf (pushing > prefixes to pf tables), but of course lacks MD5 authorization for > peers. Claudio, thanks for suggestions about the pfkey. > > Here's short HOWTO: > http://lukasz.bromirski.net/projekty/openbgpd/index-en.html > > If anyone will push this further and make a port out of it, it > would be really nice. You could make a port and I can commit it. -- Andre From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 11:01:26 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 551CA16A50C for ; Mon, 21 Mar 2005 11:01:26 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26F4E43D6B for ; Mon, 21 Mar 2005 11:01:26 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2LB1QBf013537 for ; Mon, 21 Mar 2005 11:01:26 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2LB1PBe013531 for freebsd-net@freebsd.org; Mon, 21 Mar 2005 11:01:25 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 21 Mar 2005 11:01:25 GMT Message-Id: <200503211101.j2LB1PBe013531@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-net@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 11:01:26 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/07/11] kern/54383 net [nfs] [patch] NFS root configurations wit 1 problem total. From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 13:06:08 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A9B116A4CE for ; Mon, 21 Mar 2005 13:06:08 +0000 (GMT) Received: from spinett.bth.se (spinett.bth.se [194.47.129.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 663C643D2D for ; Mon, 21 Mar 2005 13:06:07 +0000 (GMT) (envelope-from Patrik.Arlos@bth.se) Received: from Trantor (spinett.bth.se [194.47.129.13])j2LD64qd025326 for ; Mon, 21 Mar 2005 14:06:05 +0100 From: "Patrik Arlos" To: Date: Mon, 21 Mar 2005 14:05:48 +0100 Organization: Blekinge Institute of Technology Message-ID: <001001c52e16$b3e8bde0$73942fc2@Trantor> MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Scanned-By: MIMEDefang 2.51 on 194.47.129.13 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Sending Ethernet frames X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 13:06:08 -0000 Hi, =20 I'm trying to send 'raw' Ethernet frames. I have however not found any examples of how to do this in BSD.=20 Is it possible to open a 'ethernet' socket, similar to a AF_INET? I = need to be able to control the destination address and type/len field in the Ethernet header.=20 In Linux it is possible open a SOCK_RAW and bind it to a particular interface, I've tried to use the sockadd_dl but in this case bind dies = with error 22, any way to do this?=20 =20 =20 /Patrik =20 From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 13:40:18 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 029ED16A4CE for ; Mon, 21 Mar 2005 13:40:18 +0000 (GMT) Received: from mailserver.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D4B843D4C for ; Mon, 21 Mar 2005 13:40:17 +0000 (GMT) (envelope-from don@SANDVINE.com) X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 21 Mar 2005 08:40:16 -0500 Message-ID: <2BCEB9A37A4D354AA276774EE13FB8C23A6720@mailserver.sandvine.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Sending Ethernet frames Thread-Index: AcUuFtflWRgkwcUBSneWea4ca83OhQABJBTg From: "Don Bowman" To: "Patrik Arlos" , Subject: RE: Sending Ethernet frames X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 13:40:18 -0000 From: owner-freebsd-net@freebsd.org On Behalf Of Patrik Arlos > Hi, >=20 > =20 >=20 > I'm trying to send 'raw' Ethernet frames. I have however not=20 > found any examples of how to do this in BSD.=20 >=20 > Is it possible to open a 'ethernet' socket, similar to a=20 > AF_INET? I need to be able to control the destination=20 > address and type/len field in the Ethernet header.=20 >=20 > In Linux it is possible open a SOCK_RAW and bind it to a=20 > particular interface, I've tried to use the sockadd_dl but in=20 > this case bind dies with error 22, any way to do this?=20 You can chmod +w on /dev/bpf* and then open & write to a bpf device. From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 13:42:18 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7861D16A4CE for ; Mon, 21 Mar 2005 13:42:18 +0000 (GMT) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EDEC43D55 for ; Mon, 21 Mar 2005 13:42:17 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226])j2LDfhDh021279; Mon, 21 Mar 2005 15:41:44 +0200 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) j2LDgE8E094499; Mon, 21 Mar 2005 15:42:14 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost)j2LDgERk094498; Mon, 21 Mar 2005 15:42:14 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Mon, 21 Mar 2005 15:42:14 +0200 From: Giorgos Keramidas To: Patrik Arlos Message-ID: <20050321134214.GB94380@orion.daedalusnetworks.priv> References: <001001c52e16$b3e8bde0$73942fc2@Trantor> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001001c52e16$b3e8bde0$73942fc2@Trantor> cc: freebsd-net@freebsd.org Subject: Re: Sending Ethernet frames X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 13:42:18 -0000 On 2005-03-21 14:05, Patrik Arlos wrote: > I'm trying to send 'raw' Ethernet frames. I have however not found any > examples of how to do this in BSD. > > Is it possible to open a 'ethernet' socket, similar to a AF_INET? I > need to be able to control the destination address and type/len field > in the Ethernet header. > > In Linux it is possible open a SOCK_RAW and bind it to a particular > interface, I've tried to use the sockadd_dl but in this case bind dies > with error 22, any way to do this? It may be a good idea to investigate if libnet does your job. The ports version (net/libnet-devel) is based on libnet-1.1.2.1. Mike Schiffman, who writes libnet may have a newer version on his site: http://www.packetfactory.net/projects/libnet/ If you do decide to use libnet, I also have a few local patches that may be interesting; mostly updates lto ibnet's build tree that use the latest automake and autoconf or changes to libtoolize libnet; these are "local hacks" though. From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 13:55:42 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 20C9F16A4CE for ; Mon, 21 Mar 2005 13:55:42 +0000 (GMT) Received: from gw.Awfulhak.org (awfulhak.demon.co.uk [80.177.173.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D16143D58 for ; Mon, 21 Mar 2005 13:55:41 +0000 (GMT) (envelope-from brian@Awfulhak.org) Received: from dev.lan.Awfulhak.org (brian@dev.lan.Awfulhak.org [172.16.0.5]) by gw.Awfulhak.org (8.13.1/8.13.1) with ESMTP id j2LDtSwp050076; Mon, 21 Mar 2005 13:55:28 GMT (envelope-from brian@Awfulhak.org) Date: Mon, 21 Mar 2005 13:55:28 +0000 From: Brian Somers To: freebsd-net@freebsd.org Message-ID: <20050321135528.7ae92ef4@dev.lan.Awfulhak.org> In-Reply-To: <20050307104524.GA1877@gicco.homeip.net> References: <20050307104524.GA1877@gicco.homeip.net> X-Mailer: Sylpheed-Claws 1.0.1 (GTK+ 1.2.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on gw.lan.Awfulhak.org cc: hampi@rootshell.be Subject: Re: disabling ipv6 with ppp X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 13:55:42 -0000 Use ``disable ipv6'' - see the man page. Put ``NOINET6=true'' in /etc/make.conf to make IPv6 go away entirely. On Mon, 7 Mar 2005 11:45:24 +0100, Hanspeter Roth wrote: > Hello, > > I'm using ppp. Even though INET6 is disabled in the kernel there is > some INET6 stuff configured. Netstat -rn shows: > > ... > Internet6: > Destination Gateway Flags Netif Expire > ::1 ::1 UH lo0 > fe80::%lo0/64 fe80::1%lo0 U lo0 > fe80::1%lo0 link#4 UHL lo0 > ff01::/32 ::1 U lo0 > ff02::%lo0/32 ::1 UC lo0 > ff02::%tun0/32 fe80::20f:3dff:feae:5416%tun0 UGS tun0 > > The last route to 'ff02::%tun0/32' appears only if ppp is running. > Some seconds after ppp is startet (ppp -quiet -auto isp) it goes > online. Trying to delete the route by hand claims it is a bad > address: > > route delete 'ff02::%tun0/32' > route: bad address: ff02::%tun0/32 > > How can I run ppp without INET6 support? > > -Hanspeter > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > -- Brian Somers Don't _EVER_ lose your sense of humour ! From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 14:17:58 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6876916A4D1 for ; Mon, 21 Mar 2005 14:17:58 +0000 (GMT) Received: from mail21.sea5.speakeasy.net (mail21.sea5.speakeasy.net [69.17.117.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id C209943D39 for ; Mon, 21 Mar 2005 14:17:57 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 22611 invoked from network); 21 Mar 2005 14:17:57 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender )AES256-SHA encrypted SMTP for ; 21 Mar 2005 14:17:57 -0000 Received: from slimer.baldwin.cx (slimer.baldwin.cx [192.168.0.16]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j2LEHTnO045762; Mon, 21 Mar 2005 09:17:48 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Gleb Smirnoff Date: Mon, 21 Mar 2005 09:01:05 -0500 User-Agent: KMail/1.6.2 References: <20050311110234.GA87255@cell.sick.ru> <20050311141450.GF9291@darkness.comp.waw.pl> <20050311142805.GB88801@cell.sick.ru> In-Reply-To: <20050311142805.GB88801@cell.sick.ru> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Message-Id: <200503210901.05833.jhb@FreeBSD.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx cc: dima <_pppp@mail.ru> cc: Pawel Jakub Dawidek cc: Luigi Rizzo cc: ru@FreeBSD.org cc: net@FreeBSD.org cc: rwatson@FreeBSD.org Subject: Re: Giant-free polling [PATCH] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 14:17:58 -0000 On Friday 11 March 2005 09:28 am, Gleb Smirnoff wrote: > On Fri, Mar 11, 2005 at 03:14:50PM +0100, Pawel Jakub Dawidek wrote: > P> On Fri, Mar 11, 2005 at 04:55:25PM +0300, dima wrote: > P> +> I thought about using list also, but considered it to bring > P> +> too much overhead to the code. The original idea of handling arrays > P> +> seems to be very elegant. > P> > P> Overhead? Did you run any benchmarks to prove it? > P> I find list-version much more elegant that using an array. > > It is also a small cookie for future. Now we have IFF_POLLING flag and > IFCAP_POLLING, which indicate whether interface support polling and whether > it actually does polling. This is not nice, from my viewpoint. I'd like > to see only IFCAP_POLLING present and turning polling on/off for particular > interface should be done by inserting/removing iface from polling list. > > This will also remove an extra unlocked check of interface flags (?). > > P> I also don't like the idea of calling handler method with two locks > P> held (one sx and one mutex)... > > I agree with Pawel. We have LOR here between sx lock and driver lock: > > normal polling: (get sx shared) -> (get driver mutex) > driver stop: (get driver mutex) -> (get sx exclusive) You can't ever lock an sx(9) lock while holding a mutex. FYI. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 15:02:11 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C3E7216A4CE for ; Mon, 21 Mar 2005 15:02:11 +0000 (GMT) Received: from silver.he.iki.fi (helenius.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A66D43D4C for ; Mon, 21 Mar 2005 15:02:10 +0000 (GMT) (envelope-from pete@he.iki.fi) Received: from [193.64.42.134] (h86.vuokselantie10.fi [193.64.42.134]) by silver.he.iki.fi (8.13.1/8.11.4) with ESMTP id j2LF2894094742 for ; Mon, 21 Mar 2005 17:02:08 +0200 (EET) (envelope-from pete@he.iki.fi) Message-ID: <423EE201.6000102@he.iki.fi> Date: Mon, 21 Mar 2005 17:02:25 +0200 From: Petri Helenius User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD - net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: altq enqueue X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 15:02:11 -0000 Is there a way to send packets from userland process to a specific altq defined queue? Pete From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 15:45:02 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B39E316A4CE for ; Mon, 21 Mar 2005 15:45:02 +0000 (GMT) Received: from obelix.sunrise.ch (mailrelay3.sunrise.ch [194.158.229.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id B150843D48 for ; Mon, 21 Mar 2005 15:45:01 +0000 (GMT) (envelope-from hampi@rootshell.be) Received: from gicco.homeip.net (pop-zh-13-2-dialup-109.freesurf.ch [194.230.208.109]) by obelix.sunrise.ch (8.12.10/8.12.10) with ESMTP id j2LFic8a032574; Mon, 21 Mar 2005 16:44:39 +0100 Received: from gicco.here (localhost [127.0.0.1]) by gicco.homeip.net (8.13.1/8.12.11) with ESMTP id j2LFiXEe014708; Mon, 21 Mar 2005 16:44:33 +0100 (CET) (envelope-from hampi@rootshell.be) Received: (from idefix@localhost) by gicco.here (8.13.1/8.12.11/Submit) id j2LFiXrZ014707; Mon, 21 Mar 2005 16:44:33 +0100 (CET) (envelope-from hampi@rootshell.be) X-Authentication-Warning: gicco.here: idefix set sender to hampi@rootshell.be using -f Date: Mon, 21 Mar 2005 16:44:33 +0100 From: Hanspeter Roth To: freebsd-net@freebsd.org Message-ID: <20050321154433.GB14357@gicco.homeip.net> Mail-Followup-To: freebsd-net@freebsd.org, Brian Somers References: <20050307104524.GA1877@gicco.homeip.net> <20050321135528.7ae92ef4@dev.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050321135528.7ae92ef4@dev.lan.Awfulhak.org> User-Agent: Mutt/1.4.2.1i cc: Brian Somers Subject: Re: disabling ipv6 with ppp X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-net@freebsd.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 15:45:02 -0000 On Mar 21 at 13:55, Brian Somers spoke: > Use ``disable ipv6'' - see the man page. Ok, I've put ``disable ipv6'' as well as ``disable ipv6cp'' into the config file. But nevertheless ff02::%tun0/32 fe80::20f:3dff:feae:5416%tun0 UGS tun0 appears anyway and 22 seconds after ppp is started a dialup connection is established. > Put ``NOINET6=true'' in /etc/make.conf to make IPv6 go away entirely. It is not obvious wether only the kernel has to be rebuilt or the entire world. -Hanspeter From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 17:03:50 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34C1E16A4CE for ; Mon, 21 Mar 2005 17:03:49 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C2F743D2F for ; Mon, 21 Mar 2005 17:03:49 +0000 (GMT) (envelope-from max@love2party.net) Received: from [212.227.126.209] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1DDQJg-0002Ce-00; Mon, 21 Mar 2005 18:03:48 +0100 Received: from [84.128.142.177] (helo=donor.laier.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1DDQJf-00046O-00; Mon, 21 Mar 2005 18:03:48 +0100 From: Max Laier To: freebsd-net@freebsd.org Date: Mon, 21 Mar 2005 18:03:25 +0100 User-Agent: KMail/1.7.2 References: <423EE201.6000102@he.iki.fi> In-Reply-To: <423EE201.6000102@he.iki.fi> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1335105.FI72AK592t"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200503211803.37314.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:61c499deaeeba3ba5be80f48ecc83056 Subject: Re: altq enqueue X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 17:03:50 -0000 --nextPart1335105.FI72AK592t Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 21 March 2005 16:02, Petri Helenius wrote: > Is there a way to send packets from userland process to a specific altq > defined queue? No, not at this point. But as a workaround (assuming we are talking about= =20 socket based communication (udp/tcp)) you can have the program running as a= =20 special user or group and use pf or ipfw to queue traffic from this user/=20 group. Note that pf needs debug.mpsafenet=3D0 for this to work properly. = ipfw=20 has the same problem in 5.3R but is fixed in CURRENT and *maybe* RELENG_5 -= =20 I'll let others speak on that one. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart1335105.FI72AK592t Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCPv5pXyyEoT62BG0RAh78AJ9Rnm0NT++7/cTJ1WJICdlQd36xyACffED9 h9MIrOm3vr35ST7AuIZKfjY= =YNaE -----END PGP SIGNATURE----- --nextPart1335105.FI72AK592t-- From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 17:29:40 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2A2A16A4CE for ; Mon, 21 Mar 2005 17:29:40 +0000 (GMT) Received: from gw.Awfulhak.org (awfulhak.demon.co.uk [80.177.173.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8716843D55 for ; Mon, 21 Mar 2005 17:29:38 +0000 (GMT) (envelope-from brian@Awfulhak.org) Received: from dev.lan.Awfulhak.org (brian@dev.lan.Awfulhak.org [172.16.0.5]) by gw.Awfulhak.org (8.13.1/8.13.1) with ESMTP id j2LHTLke008645; Mon, 21 Mar 2005 17:29:21 GMT (envelope-from brian@Awfulhak.org) Date: Mon, 21 Mar 2005 17:29:20 +0000 From: Brian Somers To: freebsd-net@freebsd.org Message-ID: <20050321172920.1a4b5806@dev.lan.Awfulhak.org> In-Reply-To: <20050321154433.GB14357@gicco.homeip.net> References: <20050307104524.GA1877@gicco.homeip.net> <20050321135528.7ae92ef4@dev.lan.Awfulhak.org> <20050321154433.GB14357@gicco.homeip.net> X-Mailer: Sylpheed-Claws 1.0.1 (GTK+ 1.2.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on gw.lan.Awfulhak.org cc: hampi@rootshell.be Subject: Re: disabling ipv6 with ppp X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 17:29:40 -0000 On Mon, 21 Mar 2005 16:44:33 +0100, Hanspeter Roth wrote: > On Mar 21 at 13:55, Brian Somers spoke: > > > Use ``disable ipv6'' - see the man page. > > Ok, I've put ``disable ipv6'' as well as ``disable ipv6cp'' into the > config file. But nevertheless > ff02::%tun0/32 fe80::20f:3dff:feae:5416%tun0 UGS tun0 > appears anyway and 22 seconds after ppp is started a dialup > connection is established. disable ipv6 and disable ipv6cp are synonymous. It sounds as if your kernel is built with INET6 support. > > Put ``NOINET6=true'' in /etc/make.conf to make IPv6 go away entirely. > > It is not obvious wether only the kernel has to be rebuilt or the > entire world. make.conf will just cover world. You need to remove ``options INET6'' from your kernel config to affect that. -- Brian Somers Don't _EVER_ lose your sense of humour ! From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 17:36:55 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 080BE16A4CE for ; Mon, 21 Mar 2005 17:36:55 +0000 (GMT) Received: from obelix.sunrise.ch (mailrelay3.sunrise.ch [194.158.229.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D95E43D4C for ; Mon, 21 Mar 2005 17:36:53 +0000 (GMT) (envelope-from hampi@rootshell.be) Received: from gicco.homeip.net (pop-mu-8-1-dialup-151.freesurf.ch [194.230.245.151]) by obelix.sunrise.ch (8.12.10/8.12.10) with ESMTP id j2LHapd2020654 for ; Mon, 21 Mar 2005 18:36:51 +0100 Received: from gicco.here (localhost [127.0.0.1]) by gicco.homeip.net (8.13.1/8.12.11) with ESMTP id j2LHajVR001954; Mon, 21 Mar 2005 18:36:45 +0100 (CET) (envelope-from hampi@rootshell.be) Received: (from idefix@localhost) by gicco.here (8.13.1/8.12.11/Submit) id j2LHahTu001953; Mon, 21 Mar 2005 18:36:43 +0100 (CET) (envelope-from hampi@rootshell.be) X-Authentication-Warning: gicco.here: idefix set sender to hampi@rootshell.be using -f Date: Mon, 21 Mar 2005 18:36:43 +0100 From: Hanspeter Roth To: freebsd-net@freebsd.org Message-ID: <20050321173643.GA1750@gicco.homeip.net> Mail-Followup-To: freebsd-net@freebsd.org, "Re:disablingipv6withppp"@gicco.homeip.net References: <20050307104524.GA1877@gicco.homeip.net> <20050321135528.7ae92ef4@dev.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050321135528.7ae92ef4@dev.lan.Awfulhak.org> User-Agent: Mutt/1.4.2.1i cc: "Re:disablingipv6withppp"@gicco.homeip.net Subject: Re: disabling ipv6 with ppp X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-net@freebsd.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 17:36:55 -0000 On Mar 21 at 13:55, Brian Somers spoke: > Use ``disable ipv6'' - see the man page. > Put ``NOINET6=true'' in /etc/make.conf to make IPv6 go away entirely. I've built ppp in /usr/src/usr.sbin/ppp with NOINET6 and installed it in /usr/sbin. The route ff02::%tun0/32 is still present. But the dialup connection after 22 seconds has disappeared. So this has helped me. Thanks! -Hanspeter From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 17:55:31 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3574016A4CE for ; Mon, 21 Mar 2005 17:55:31 +0000 (GMT) Received: from obelix.sunrise.ch (mailrelay3.sunrise.ch [194.158.229.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7440E43D54 for ; Mon, 21 Mar 2005 17:55:30 +0000 (GMT) (envelope-from hampi@rootshell.be) Received: from gicco.homeip.net (pop-ls-8-2-dialup-40.freesurf.ch [194.230.244.40]) by obelix.sunrise.ch (8.12.10/8.12.10) with ESMTP id j2LHtSd2027869 for ; Mon, 21 Mar 2005 18:55:29 +0100 Received: from gicco.here (localhost [127.0.0.1]) by gicco.homeip.net (8.13.1/8.12.11) with ESMTP id j2LHtNU4002108 for ; Mon, 21 Mar 2005 18:55:23 +0100 (CET) (envelope-from hampi@rootshell.be) Received: (from idefix@localhost) by gicco.here (8.13.1/8.12.11/Submit) id j2LHtNO9002107 for freebsd-net@freebsd.org; Mon, 21 Mar 2005 18:55:23 +0100 (CET) (envelope-from hampi@rootshell.be) X-Authentication-Warning: gicco.here: idefix set sender to hampi@rootshell.be using -f Date: Mon, 21 Mar 2005 18:55:23 +0100 From: Hanspeter Roth To: freebsd-net@freebsd.org Message-ID: <20050321175523.GA1989@gicco.homeip.net> Mail-Followup-To: freebsd-net@freebsd.org References: <20050307104524.GA1877@gicco.homeip.net> <20050321135528.7ae92ef4@dev.lan.Awfulhak.org> <20050321154433.GB14357@gicco.homeip.net> <20050321172920.1a4b5806@dev.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050321172920.1a4b5806@dev.lan.Awfulhak.org> User-Agent: Mutt/1.4.2.1i Subject: Re: disabling ipv6 with ppp X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-net@freebsd.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 17:55:31 -0000 On Mar 21 at 17:29, Brian Somers spoke: > disable ipv6 and disable ipv6cp are synonymous. It sounds as if your > kernel is built with INET6 support. Hm, strange. I have already commented out INET6 in the kernel config... -Hanspeter From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 19:27:03 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDA0B16A4CE for ; Mon, 21 Mar 2005 19:27:03 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35C5D43D2F for ; Mon, 21 Mar 2005 19:27:03 +0000 (GMT) (envelope-from slawek.zak@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so742204wri for ; Mon, 21 Mar 2005 11:27:02 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=OvaAOMXA2t2JeWqt/cVyibTC4my2KevvWiv7OpV7gpwVxtJHeBKw7fnL6F+LN32rP2TSaahk4R++jNggkaDnI8/z3/9+yPrMMv7uPwGmfBhUKQ9KkdOprAqvGXeSStcbBHnaX/0GHsTOTHh4jS7kspKCV7aJ4lterPlxDEny7Dg= Received: by 10.54.57.79 with SMTP id f79mr38582wra; Mon, 21 Mar 2005 11:26:56 -0800 (PST) Received: by 10.54.39.23 with HTTP; Mon, 21 Mar 2005 11:26:55 -0800 (PST) Message-ID: <787bbe1c0503211126680ef@mail.gmail.com> Date: Mon, 21 Mar 2005 20:26:55 +0100 From: =?UTF-8?Q?S=C5=82awek_=C5=BBak?= To: Sten Spans In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <787bbe1c050315152733f79e7c@mail.gmail.com> cc: freebsd-net@freebsd.org Subject: Re: Setup of jail bound to lo0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: =?UTF-8?Q?S=C5=82awek_=C5=BBak?= List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 19:27:03 -0000 On Wed, 16 Mar 2005 10:47:25 +0100 (CET), Sten Spans wrote: > On Wed, 16 Mar 2005, [UTF-8] S=C5~Bawek =C5=BBak wrote: >=20 > > Hi, > > > > I need to have some jails configured, sharing single IP address (IPv6 > > is a no-no for the time being:). Therefore I came up with an idea of > > binding them all to lo0 and assigning subsequent IP aliases as the > > addresses. The requirement for the jails is to let them to receive > > (the easy part) and *send* packets to the outside. > > > > The jails cannot directly access the Internet as they cannot bind to > > the external IP address of course. Some translation needs to be made, > > I think. After wrestling with ipfw/ipf/pf for a couple of hours I > > don't have a working solution. > > >=20 > pf: >=20 > # Tables: similar to macros, but more flexible for many addresses. > table { 1.2.3.4, 5.6.7.8, 9.9.9.9 } >=20 > # Translation: specify how addresses are to be mapped or redirected. > nat on $ext_if from $loopback_addr to any -> ($ext_if) >=20 > # rdr: packets coming in on $ext_if with destination :80 > rdr on $ext_if proto tcp from any to port 80 -> $loopback_ad= dr port 80 Hi, It sure works :) My rules are: ext_if=3D"lnc0" table { 127.0.0.2, 127.0.0.3 } nat on $ext_if from to any -> ($ext_if) rdr on $ext_if proto tcp from any to any port 80 -> 127.0.0.2 port 80 I wasn't sure what you meant by $loopback_addr. I will add rules like this for every server: rdr on $ext_if proto tcp from any to any port 81 -> 127.0.0.3 port 80 Nice thing this PF. I can't do this in IPFilter. Thank you very mach Sten! /S From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 21:24:09 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6D4116A4CF for ; Mon, 21 Mar 2005 21:24:09 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [83.167.185.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB5E643D2D for ; Mon, 21 Mar 2005 21:24:08 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 684D065213; Mon, 21 Mar 2005 21:21:11 +0000 (GMT) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 83526-01-4; Mon, 21 Mar 2005 21:21:11 +0000 (GMT) Received: from empiric.dek.spc.org (dhcp52.icir.org [192.150.187.52]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id BDA7A651FA; Mon, 21 Mar 2005 21:21:10 +0000 (GMT) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 946A667D4; Mon, 21 Mar 2005 13:24:03 -0800 (PST) Date: Mon, 21 Mar 2005 13:24:02 -0800 From: Bruce M Simpson To: Patrik Arlos Message-ID: <20050321212401.GB747@empiric.icir.org> Mail-Followup-To: Patrik Arlos , freebsd-net@freebsd.org References: <001001c52e16$b3e8bde0$73942fc2@Trantor> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001001c52e16$b3e8bde0$73942fc2@Trantor> cc: freebsd-net@freebsd.org Subject: Re: Sending Ethernet frames X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 21:24:09 -0000 On Mon, Mar 21, 2005 at 02:05:48PM +0100, Patrik Arlos wrote: > I'm trying to send 'raw' Ethernet frames. I have however not found any > examples of how to do this in BSD. Consider using bpf(4) in read/write mode. BMS From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 21:28:00 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E168D16A4CE for ; Mon, 21 Mar 2005 21:28:00 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [83.167.185.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C2D843D60 for ; Mon, 21 Mar 2005 21:28:00 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id BB16265213; Mon, 21 Mar 2005 21:25:03 +0000 (GMT) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 83509-02-2; Mon, 21 Mar 2005 21:25:03 +0000 (GMT) Received: from empiric.dek.spc.org (dhcp52.icir.org [192.150.187.52]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id F1F0B65218; Mon, 21 Mar 2005 21:25:02 +0000 (GMT) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id A423B67D4; Mon, 21 Mar 2005 13:27:56 -0800 (PST) Date: Mon, 21 Mar 2005 13:27:55 -0800 From: Bruce M Simpson To: Claudio Jeker , freebsd-net@freebsd.org Message-ID: <20050321212755.GC747@empiric.icir.org> Mail-Followup-To: Claudio Jeker , freebsd-net@freebsd.org References: <42348BDF.2080101@authtec.com> <20050313230915.GF3697@diehard.n-r-g.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050313230915.GF3697@diehard.n-r-g.com> Subject: Re: OpenBGPD with FreeBSD X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 21:28:01 -0000 Hi there, On Mon, Mar 14, 2005 at 12:08:53AM +0059, Claudio Jeker wrote: > You have to remove the full pfkey interface and replace it with dummy > functions as it is incompatible. So tcp md5 does not work but I think it > is still broken in FreeBSD anyway. I am willing to work with OpenBSD developers, time permitting, to ensure that TCP-MD5 is source level compatible across the BSDs. In the past the divergence has has affected several projects inclyding Quagga, OpenBGPd and XORP, sadly. There has even been some cursory interest from Sun people about taking this on. Please do contact me directly about this in future first, though. Thanks, BMS From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 22:18:07 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3502A16A4CE for ; Mon, 21 Mar 2005 22:18:07 +0000 (GMT) Received: from ford.blinkenlights.nl (ford.blinkenlights.nl [213.204.211.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5627C43D4C for ; Mon, 21 Mar 2005 22:18:06 +0000 (GMT) (envelope-from sten@blinkenlights.nl) Received: from tea.blinkenlights.nl (multi.tea.blinkenlights.nl [IPv6:2001:960:301:9:a00:20ff:fe85:fa39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ford.blinkenlights.nl (Postfix) with ESMTP id 4A37C3F294; Mon, 21 Mar 2005 23:18:00 +0100 (CET) Received: by tea.blinkenlights.nl (Postfix, from userid 101) id D28B2268; Mon, 21 Mar 2005 23:17:59 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by tea.blinkenlights.nl (Postfix) with ESMTP id B8B9A25F; Mon, 21 Mar 2005 23:17:59 +0100 (CET) Date: Mon, 21 Mar 2005 23:17:59 +0100 (CET) From: Sten Spans To: =?UTF-8?Q?S=C5=82awek_=C5=BBak?= In-Reply-To: <787bbe1c0503211126680ef@mail.gmail.com> Message-ID: References: <787bbe1c050315152733f79e7c@mail.gmail.com> <787bbe1c0503211126680ef@mail.gmail.com> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-1254324197-1111443479=:25978" cc: freebsd-net@freebsd.org Subject: Re: Setup of jail bound to lo0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 22:18:07 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---559023410-1254324197-1111443479=:25978 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8BIT On Mon, 21 Mar 2005, [UTF-8] SĹ~Bawek Ĺ»ak wrote: > On Wed, 16 Mar 2005 10:47:25 +0100 (CET), Sten Spans > wrote: >> On Wed, 16 Mar 2005, [UTF-8] SĹ~Bawek Ĺ»ak wrote: >> >>> Hi, >>> >> >> pf: >> >> # Tables: similar to macros, but more flexible for many addresses. >> table { 1.2.3.4, 5.6.7.8, 9.9.9.9 } >> >> # Translation: specify how addresses are to be mapped or redirected. >> nat on $ext_if from $loopback_addr to any -> ($ext_if) >> >> # rdr: packets coming in on $ext_if with destination :80 >> rdr on $ext_if proto tcp from any to port 80 -> $loopback_addr port 80 > > Hi, > > It sure works :) > > My rules are: > > ext_if="lnc0" > table { 127.0.0.2, 127.0.0.3 } > nat on $ext_if from to any -> ($ext_if) > rdr on $ext_if proto tcp from any to any port 80 -> 127.0.0.2 port 80 > > I wasn't sure what you meant by $loopback_addr. I will add rules like > this for every server: > > rdr on $ext_if proto tcp from any to any port 81 -> 127.0.0.3 port 80 My setup is a bit different. I have 1 jail with ip 10.0.0.1, and multiple external ips distributed with vrrp. internal_net="192.168.1.0/23" loopback_addr="10.0.0.1" table { 1.2.3.21, 1.2.3.22, 1.2.3.23 } # Normalization: reassemble fragments and resolve or reduce traffic ambiguities.scrub in all # Translation: specify how addresses are to be mapped or redirected. nat on $ext_if from $loopback_addr to any -> ($ext_if) # rdr: packets coming in on $ext_if with destination :80 rdr on $ext_if proto tcp from any to port 80 -> $loopback_addr port 80 # block all packets from $loopback_addr on the internal interface block in on $lo_if from $loopback_addr to $internal_net > Nice thing this PF. I can't do this in IPFilter. pf is quite nice indeed. > Thank you very mach Sten! no problem. -- Sten Spans "There is a crack in everything, that's how the light gets in." Leonard Cohen - Anthem ---559023410-1254324197-1111443479=:25978-- From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 23:26:36 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AB3F16A4CE; Mon, 21 Mar 2005 23:26:36 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09A2B43D2F; Mon, 21 Mar 2005 23:26:36 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [208.206.78.97] (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 7CB187A41E; Mon, 21 Mar 2005 15:26:35 -0800 (PST) Message-ID: <423F582B.4090207@elischer.org> Date: Mon, 21 Mar 2005 15:26:35 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050218 X-Accept-Language: en, hu MIME-Version: 1.0 To: Giorgos Keramidas References: <001001c52e16$b3e8bde0$73942fc2@Trantor> <20050321134214.GB94380@orion.daedalusnetworks.priv> In-Reply-To: <20050321134214.GB94380@orion.daedalusnetworks.priv> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org cc: Patrik Arlos Subject: Re: Sending Ethernet frames X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 23:26:36 -0000 Giorgos Keramidas wrote: >On 2005-03-21 14:05, Patrik Arlos wrote: > > >>I'm trying to send 'raw' Ethernet frames. I have however not found any >>examples of how to do this in BSD. >> >>Is it possible to open a 'ethernet' socket, similar to a AF_INET? I >>need to be able to control the destination address and type/len field >>in the Ethernet header. >> >>In Linux it is possible open a SOCK_RAW and bind it to a particular >>interface, I've tried to use the sockadd_dl but in this case bind dies >>with error 22, any way to do this? >> >> > >It may be a good idea to investigate if libnet does your job. > >The ports version (net/libnet-devel) is based on libnet-1.1.2.1. Mike >Schiffman, who writes libnet may have a newer version on his site: > >http://www.packetfactory.net/projects/libnet/ > >If you do decide to use libnet, I also have a few local patches that may >be interesting; mostly updates lto ibnet's build tree that use the >latest automake and autoconf or changes to libtoolize libnet; these are >"local hacks" though. > > you can also do it via netgraph(4) >_______________________________________________ >freebsd-net@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-net >To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 00:28:02 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA08A16A4CE for ; Tue, 22 Mar 2005 00:28:02 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 365D243D1D for ; Tue, 22 Mar 2005 00:28:02 +0000 (GMT) (envelope-from linisys@gmail.com) Received: by rproxy.gmail.com with SMTP id r35so1081791rna for ; Mon, 21 Mar 2005 16:28:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=t4xCwf8SWIHh1QJ3X8pwd/Cv9RJaBlafT9CPxfw2+NEw/XuzN1QkDyJPhY3mIlFI8/jPn1tBp2Bon+8fQWu5oeDrQmq6+6EbuqDoT8LHC363U9aVuD+LIgAVo8q6Ff6vDAAfRDux52VyBy3rIpiEokiO3w+bwoQyN8IGvpdTM0s= Received: by 10.38.90.20 with SMTP id n20mr5090798rnb; Mon, 21 Mar 2005 16:28:01 -0800 (PST) Received: by 10.38.73.7 with HTTP; Mon, 21 Mar 2005 16:27:58 -0800 (PST) Message-ID: <3083138605032116273eacd0f7@mail.gmail.com> Date: Mon, 21 Mar 2005 18:27:58 -0600 From: "Chris Tusa at Linisys, LLC" To: freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: PPP Lan Bridge X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Chris Tusa at Linisys, LLC" List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 00:28:02 -0000 Greetings, I am an experienced BSD administator. I am currently implementing a solution to connect two campus area buildings together using 2 machines running FreeBSD 5.3 with 56K modems & PPP. I need some assistance as follows. I am trying to be verbose so as to provide a complete overview of what has been done and so this thread may be used a future guide for others. Scenario: * A countryclub has a maintainence department located on the other side of the golf course, too far to have a cable run or a line-of-sight wireless connection. The purpose of this connection is to provide a TCP/IP timeclock with access to the main building's network to transmit data. * Maintainence Shed (client): FreeBSD 5.3 client, Serial 56K modem running ppp-user. Timeclock connected to dial-up client via CrossOver ethernet cable. * Clubhouse (server): FreeBSD 5.3 server, Serial 56K modem running mgetty. Server connected to LAN switch. * The LAN at the clubhouse consists of a CABLE Modem connection, with an OpenBSD based firewall that provides NAT/PROXY services to the internal network. Current Setup: (see this diagram I posted: URL = http://people.linisys.com/ctusa/images/diagram.jpg ) * main WAN router= 192.168.1.1 * dialup Server (fxp0)= 192.168.1.230 gateway_enable="yes" * dialup Server (tun0)= 192.168.1.230 -> 192.168.1.232 (modem) * dialup Client (tun0)= 192.168.1.232 * dialup Client (fxp0)= 192.168.2.1 gateway_enable="yes" Problem: * It seems that NAT is functioning well, and the systems behind can communicate. However, the timeclock is unable to communicate with its counterpart at the clubhouse. I believe this is because they are on different subnets and routing is not taking place. * The timeclock communicates on port 3301 - some sort of forwarding must be enabled through the ppp nat ? * how can the 192.168.2.0 network be accessible from the 192.168.1.0 network? I know that the 192.168.1.232 (modem) / 192.1681.230 (ethernet) server box at the main clubhouse is the gateway. How can other machines find out about this? or can the man residential gateway learn about this? Current possible diagnosis: * The complexity of having 2 gateways, it seems that in order for each machine to be able to see the 192.168.2.0 network at the client side (maintainence shed), a static route must be added. I would like to avoid this. What I would like: * To have the timeclock be on the SAME network as the rest of the clubhouse. -- Chris Tusa linisys@gmail.com http://people.linisys.com/ctusa Buy books from my Half.com inventory: http://half.ebay.com/shops/shops.jsp?seller_id=1691584 From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 01:17:49 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3965216A4CE for ; Tue, 22 Mar 2005 01:17:49 +0000 (GMT) Received: from Neo-Vortex.net (203-217-87-46.dyn.iinet.net.au [203.217.87.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCEA243D39 for ; Tue, 22 Mar 2005 01:17:47 +0000 (GMT) (envelope-from root@Neo-Vortex.net) Received: from localhost.Neo-Vortex.got-root.cc (Neo-Vortex@localhost.Neo-Vortex.got-root.cc [127.0.0.1]) by Neo-Vortex.net (8.13.1/8.12.10) with ESMTP id j2M1H9gg006545; Tue, 22 Mar 2005 11:17:09 +1000 (EST) (envelope-from root@Neo-Vortex.net) Date: Tue, 22 Mar 2005 11:17:09 +1000 (EST) From: Neo-Vortex To: Brian Somers In-Reply-To: <20050321135528.7ae92ef4@dev.lan.Awfulhak.org> Message-ID: <20050322111432.P6452@Neo-Vortex.net> References: <20050307104524.GA1877@gicco.homeip.net> <20050321135528.7ae92ef4@dev.lan.Awfulhak.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org cc: hampi@rootshell.be Subject: Re: disabling ipv6 with ppp X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 01:17:49 -0000 On Mon, 21 Mar 2005, Brian Somers wrote: > Use ``disable ipv6'' - see the man page. > Put ``NOINET6=true'' in /etc/make.conf to make IPv6 go away entirely. > > On Mon, 7 Mar 2005 11:45:24 +0100, Hanspeter Roth wrote: > > Hello, > > > > I'm using ppp. Even though INET6 is disabled in the kernel there is > > some INET6 stuff configured. Netstat -rn shows: > > > > ... > > Internet6: > > Destination Gateway Flags Netif Expire > > ::1 ::1 UH lo0 > > fe80::%lo0/64 fe80::1%lo0 U lo0 > > fe80::1%lo0 link#4 UHL lo0 > > ff01::/32 ::1 U lo0 > > ff02::%lo0/32 ::1 UC lo0 > > ff02::%tun0/32 fe80::20f:3dff:feae:5416%tun0 UGS tun0 > > > > The last route to 'ff02::%tun0/32' appears only if ppp is running. > > Some seconds after ppp is startet (ppp -quiet -auto isp) it goes > > online. Trying to delete the route by hand claims it is a bad > > address: > > > > route delete 'ff02::%tun0/32' > > route: bad address: ff02::%tun0/32 PPP Running with IPv6 support or not means nothing if those addresses appear or not, it is because your kernel is compiled with IPv6 support, so the link local addresses as you see will appear, also, if you want to try to remove them, you will most likely need to put -inet6 on the command line, although i don't believe it is possible to remove link local addresses... ie - disable it in your kernel and it will disappear (you might also want to disable it for world programs too as someone has stated in case of any problems...) > > How can I run ppp without INET6 support? > > > > -Hanspeter > > _______________________________________________ > > freebsd-net@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-net > > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > > > > -- > Brian Somers > Don't _EVER_ lose your sense of humour ! > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 12:08:32 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0D1216A4CE for ; Tue, 22 Mar 2005 12:08:32 +0000 (GMT) Received: from mail.intercollab.net (javaserver.intercollab.net [195.78.59.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 629D543D3F for ; Tue, 22 Mar 2005 12:08:32 +0000 (GMT) (envelope-from fenix@intercollab.net) Received: from server.webinfo.int (ip.82.144.198.115.stat-3.volia.net [82.144.198.115]) by mail.intercollab.net (Postfix) with ESMTP id 4B25625EC86 for ; Tue, 22 Mar 2005 14:08:30 +0200 (EET) Date: Tue, 22 Mar 2005 14:08:30 +0200 From: Sergey X-Mailer: The Bat! (v3.0.1.33) UNREG / CD5BF9353B3B7091 X-Priority: 3 (Normal) Message-ID: <698483885.20050322140830@intercollab.net> To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Difficulties with tcpdrop on FreeBsd 5.3 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sergey List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 12:08:33 -0000 Hello all, i have a question: OS: FreeBSD 5.3 How to install tcpdrop from /usr/src/usr.sbin/tcpdrop/ when i do make, i receive error: tcpdrop.c:43: error: `TCPCTL_DROP' undeclared (first use in this function) tcpdrop.c:43: error: (Each undeclared identifier is reported only once tcpdrop.c:43: error: for each function it appears in.) *** Error code 1 How to enable TCPCTL_DROP syscall !? -- Best regards, Sergey mailto:fenix@intercollab.net From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 12:28:24 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A6BD16A4DD for ; Tue, 22 Mar 2005 12:28:24 +0000 (GMT) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 392B743D2F for ; Tue, 22 Mar 2005 12:28:23 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received-SPF: pass (mp2.macomnet.net: domain of maxim@macomnet.ru designates 127.0.0.1 as permitted sender) receiver=mp2.macomnet.net; client_ip=127.0.0.1; envelope-from=maxim@macomnet.ru; Received: from localhost (localhost [127.0.0.1]) by mp2.macomnet.net (8.12.11/8.12.11) with ESMTP id j2MCSLq9046824; Tue, 22 Mar 2005 15:28:21 +0300 (MSK) (envelope-from maxim@macomnet.ru) Date: Tue, 22 Mar 2005 15:28:21 +0300 (MSK) From: Maxim Konovalov To: Sergey In-Reply-To: <698483885.20050322140830@intercollab.net> Message-ID: <20050322152610.M46808@mp2.macomnet.net> References: <698483885.20050322140830@intercollab.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re: Difficulties with tcpdrop on FreeBsd 5.3 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 12:28:24 -0000 On Tue, 22 Mar 2005, 14:08+0200, Sergey wrote: > Hello all, i have a question: > > OS: FreeBSD 5.3 > > How to install tcpdrop from /usr/src/usr.sbin/tcpdrop/ > > when i do make, i receive error: > > tcpdrop.c:43: error: `TCPCTL_DROP' undeclared (first use in this function) > tcpdrop.c:43: error: (Each undeclared identifier is reported only once > tcpdrop.c:43: error: for each function it appears in.) > *** Error code 1 > > How to enable TCPCTL_DROP syscall !? The upgrade procedure is described quite well in the handbook and at the end of /usr/src/UPDATING. -- Maxim Konovalov From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 12:29:35 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53DD716A4CE for ; Tue, 22 Mar 2005 12:29:35 +0000 (GMT) Received: from gw.Awfulhak.org (awfulhak.demon.co.uk [80.177.173.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7247543D48 for ; Tue, 22 Mar 2005 12:29:34 +0000 (GMT) (envelope-from brian@Awfulhak.org) Received: from dev.lan.Awfulhak.org (brian@dev.lan.Awfulhak.org [172.16.0.5]) by gw.Awfulhak.org (8.13.3/8.13.3) with ESMTP id j2MCTPDJ089449; Tue, 22 Mar 2005 12:29:26 GMT (envelope-from brian@Awfulhak.org) Date: Tue, 22 Mar 2005 12:29:24 +0000 From: Brian Somers To: "Chris Tusa at Linisys, LLC" Message-ID: <20050322122924.71b7c46a@dev.lan.Awfulhak.org> In-Reply-To: <3083138605032116273eacd0f7@mail.gmail.com> References: <3083138605032116273eacd0f7@mail.gmail.com> X-Mailer: Sylpheed-Claws 1.0.1 (GTK+ 1.2.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on gw.lan.Awfulhak.org cc: freebsd-net@freebsd.org Subject: Re: PPP Lan Bridge X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 12:29:35 -0000 On Mon, 21 Mar 2005 18:27:58 -0600, "Chris Tusa at Linisys, LLC" wrote: > Greetings, > > I am an experienced BSD administator. I am currently implementing a > solution to connect two campus area buildings together using 2 > machines running FreeBSD 5.3 with 56K modems & PPP. I need some > assistance as follows. I am trying to be verbose so as to provide a > complete overview of what has been done and so this thread may be used > a future guide for others. > > Scenario: > > * A countryclub has a maintainence department located on the other > side of the golf course, too far to have a cable run or a > line-of-sight wireless connection. The purpose of this connection is > to provide a TCP/IP timeclock with access to the main building's > network to transmit data. > > * Maintainence Shed (client): FreeBSD 5.3 client, Serial 56K modem > running ppp-user. Timeclock connected to dial-up client via CrossOver > ethernet cable. > > * Clubhouse (server): FreeBSD 5.3 server, Serial 56K modem running > mgetty. Server connected to LAN switch. > > * The LAN at the clubhouse consists of a CABLE Modem connection, with > an OpenBSD based firewall that provides NAT/PROXY services to the > internal network. > > Current Setup: > > (see this diagram I posted: URL = > http://people.linisys.com/ctusa/images/diagram.jpg ) > > > * main WAN router= 192.168.1.1 > * dialup Server (fxp0)= 192.168.1.230 gateway_enable="yes" > * dialup Server (tun0)= 192.168.1.230 -> 192.168.1.232 (modem) > * dialup Client (tun0)= 192.168.1.232 > * dialup Client (fxp0)= 192.168.2.1 gateway_enable="yes" > > > Problem: > > * It seems that NAT is functioning well, and the systems behind can > communicate. However, the timeclock is unable to communicate with its > counterpart at the clubhouse. I believe this is because they are on > different subnets and routing is not taking place. > > * The timeclock communicates on port 3301 - some sort of forwarding > must be enabled through the ppp nat ? > > * how can the 192.168.2.0 network be accessible from the 192.168.1.0 > network? I know that the 192.168.1.232 (modem) / 192.1681.230 > (ethernet) server box at the main clubhouse is the gateway. How can > other machines find out about this? or can the man residential gateway > learn about this? > > Current possible diagnosis: > > * The complexity of having 2 gateways, it seems that in order for each > machine to be able to see the 192.168.2.0 network at the client side > (maintainence shed), a static route must be added. I would like to > avoid this. > > What I would like: > > * To have the timeclock be on the SAME network as the rest of the clubhouse. The issue is that 192.168.1.0/24 machines have to know to route 192.168.2.0/24 stuff through 192.168.1.230, or else the timeclock machine needs some sort of presence on 192.168.1.0/24. This can be done by allocating a segment of 192.168.1.0/24 to the ppp client and adding ``enable proxyall'' to the ppp server config. server: enable proxyall set ifaddr 192.168.1.230 192.168.1.232/30 client: set ifaddr 192.168.1.233 192.168.1.230 and then setting the addresses on the crossover cable to 192.168.1.233 and 192.168.1.234. The ``enable proxyall'' bit tells ppp to create proxy arp entries for all of 192.168.1.232/30 (except for .232 and .235), allowing everything else on 192.168.1.0/24 to think it's talking directly to these machines. -- Brian Somers Don't _EVER_ lose your sense of humour ! From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 13:15:10 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C13FC16A4CE for ; Tue, 22 Mar 2005 13:15:10 +0000 (GMT) Received: from mxsf09.cluster1.charter.net (mxsf09.cluster1.charter.net [209.225.28.209]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21E1243D49 for ; Tue, 22 Mar 2005 13:15:10 +0000 (GMT) (envelope-from c0ldbyte@myrealbox.com) Received: from mxip08.cluster1.charter.net (mxip08a.cluster1.charter.net [209.225.28.138])j2MDF8Va000969 for ; Tue, 22 Mar 2005 08:15:08 -0500 Received: from 24.247.253.134.gha.mi.chartermi.net (HELO eleanor.us1.wmi.uvac.net) (24.247.253.134) by mxip08.cluster1.charter.net with ESMTP; 22 Mar 2005 08:15:08 -0500 X-Ironport-AV: i="3.91,110,1110171600"; d="scan'208"; a="702815855:sNHT12725916" Date: Tue, 22 Mar 2005 08:15:04 -0500 (EST) From: c0ldbyte To: Sergey In-Reply-To: <698483885.20050322140830@intercollab.net> Message-ID: <20050322081322.C82132@eleanor.us1.wmi.uvac.net> References: <698483885.20050322140830@intercollab.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-net@freebsd.org Subject: Re: Difficulties with tcpdrop on FreeBsd 5.3 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 13:15:10 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 22 Mar 2005, Sergey wrote: > Hello all, i have a question: > > OS: FreeBSD 5.3 > > How to install tcpdrop from /usr/src/usr.sbin/tcpdrop/ > > when i do make, i receive error: > > tcpdrop.c:43: error: `TCPCTL_DROP' undeclared (first use in this function) > tcpdrop.c:43: error: (Each undeclared identifier is reported only once > tcpdrop.c:43: error: for each function it appears in.) > *** Error code 1 > > How to enable TCPCTL_DROP syscall !? > > > > -- > Best regards, > Sergey mailto:fenix@intercollab.net If its in "/usr/src/usr.sbin/tcpdrop/" that means that its allready installed to "/usr/sbin/*???*" with the system. Best regards, --c0ldbyte -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) Comment: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF7DF979F iD8DBQFCQBpbsmFQuvffl58RAlmQAJ9/Boi8Yok/K5RqzKq3lNxzZ3h/LgCfQpPo qfD7jhcr/6ICqizf6w5MbLg= =9Ty8 -----END PGP SIGNATURE----- From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 13:18:38 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0C0216A4CE for ; Tue, 22 Mar 2005 13:18:38 +0000 (GMT) Received: from uni-sb.de (uni-sb.de [134.96.252.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CFCC43D31 for ; Tue, 22 Mar 2005 13:18:38 +0000 (GMT) (envelope-from robertgogolok@web.de) Received: from cs.uni-sb.de (cs.uni-sb.de [134.96.252.31]) by uni-sb.de (8.13.3/2005020900) with ESMTP id j2MDIaPx023893 for ; Tue, 22 Mar 2005 14:18:36 +0100 (CET) Received: from mail.cs.uni-sb.de (mail.cs.uni-sb.de [134.96.254.200]) by cs.uni-sb.de (8.13.3/2005011400) with ESMTP id j2MDIZD0005180 for ; Tue, 22 Mar 2005 14:18:35 +0100 (CET) Received: from xantippe (xantippe.cs.uni-sb.de [134.96.240.13]) by mail.cs.uni-sb.de (8.13.3/2005020900) with ESMTP id j2MDIYkj017192 for ; Tue, 22 Mar 2005 14:18:34 +0100 (CET) X-Authentication-Warning: mail.cs.uni-sb.de: Host xantippe.cs.uni-sb.de [134.96.240.13] claimed to be xantippe Received: from eugene.cs.uni-sb.de [134.96.240.6] (Debian))id 1DDjHG-0001DX-00 for ; Tue, 22 Mar 2005 14:18:34 +0100 Message-ID: <42401B2A.70308@web.de> Date: Tue, 22 Mar 2005 14:18:34 +0100 From: Robert Gogolok User-Agent: Mozilla Thunderbird 1.0 (X11/20050313) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: FIN_WAIT_2 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 13:18:39 -0000 Hi! I have many (about 100) connections in FIN_WAIT_2 state on my webserver (FreeBSD 5.3, apache 2.5.53). I discussed a few questions already on the freebsd-questions list, see http://lists.freebsd.org/pipermail/freebsd-questions/2005-March/081580.html Some connections doesn't seem to go away (they remain in FIN_WAIT_2 state) after 2 hours, what is the exact timeout? I can see every 5 minutes ACK packages sent from that FIN_WAIT_2 connections. Is these because of tcp keep alive (or which RFC specifies that behaviour)? tcpdump output: 16:04:12.987415 IP HTTP_SERVER.http > HTTP_CLIENT.10228: . ack 1760359226 win 0 16:04:12.987678 IP HTTP_SERVER.http > HTTP_CLIENT.10228: . ack 1760359226 win 32900 16:08:57.944008 IP HTTP_SERVER.http > HTTP_CLIENT.10228: . ack 1760359226 win 0 16:08:57.944300 IP HTTP_SERVER.http > HTTP_CLIENT.10228: . ack 1760359226 win 32900 ... Greetings, Robert From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 16:36:22 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCAA216A4CE for ; Tue, 22 Mar 2005 16:36:22 +0000 (GMT) Received: from cwb.pacific.net.hk (cwb.pacific.net.hk [202.14.67.92]) by mx1.FreeBSD.org (Postfix) with ESMTP id E53C343D39 for ; Tue, 22 Mar 2005 16:36:21 +0000 (GMT) (envelope-from jmok@attglobal.net) Received: from [192.168.16.50] (154.159.17.210.fixed.pacific.net.hk [210.17.159.154]) by cwb.pacific.net.hk with ESMTP id j2MGaEuh007451; Wed, 23 Mar 2005 00:36:15 +0800 (CST) Message-ID: <4240497D.5030304@attglobal.net> Date: Wed, 23 Mar 2005 00:36:13 +0800 From: John Mok User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Roman Kurakin References: <42344AF7.6070701@attglobal.net> <423C72A1.7060000@cronyx.ru> In-Reply-To: <423C72A1.7060000@cronyx.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: HOWTO connect MCI using Netgraph + Frame Relay with Digi SYNC/570i X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 16:36:23 -0000 Dear Roman, Thank you for your information. I have succeeded to setup the frame relay using netgraph. However, I failed to get the interface ng0 up :- #ifconfig ng0 1.2.3.4 255.255.255.0 up ifconfig: interface ng0 does not exist Please help to advise how I could make the interface ng0 appears. Thank you, John Mok Roman Kurakin wrote: > In case you still need this information. > > John Mok: > >> Hi, >> >> I would like to replace the existing Cisco router 1600 and connect to >> MCI Hong Kong with FeeBSD 5.3 box with a Digi SYNC 570 serial card. >> With reference of the FreeBSD handbook and the information from >> Julian Elischer at >> >> http://www.elischer.org/netgraph/ >> >> I have compiled the kernel with the following options :- >> >> .... >> options NETGRAPH >> options NETGRAPH_FRAME_RELAY >> options NETGRAPH_LMI >> .... >> device ar >> >> The dmesg showed that the device ARNET/Digi SYNC/570i was loaded >> successfully. However, when I tried to config. with the following, >> the ngctl prompt with the error: >> >> #ngctl mkpeer ar0: frame_relay rawdata downstream >> #ngctl mkpeer ar0:rawdata lmi dlci500 ansi > > > ngctl mkpeer ar0:rawdata lmi dlci0 annexD > > also you need NETGRAPH_RFC1490 > > ngctl mkpeer ar0:rawdata rfc1490 dlci500 downstream > ngctl mkpeer ar0:rawdata.dlci500 iface inet inet > > and you will get smth like ng0 > > > Best regards, > Roman Kurakin > >> >> ngctl: send msg: No such file or directory >> >> I tried the testing with MCI connection disconnected. How do I set >> the line speed to 1536 Kbps? I hope someone could help me how to >> config. the netgraph with work with Digi SYNC/570i >> >> Thanks a lot. >> >> John Mok >> >> >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > > > > From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 16:43:13 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FD6C16A4CE for ; Tue, 22 Mar 2005 16:43:13 +0000 (GMT) Received: from pimout1-ext.prodigy.net (pimout1-ext.prodigy.net [207.115.63.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id A995043D46 for ; Tue, 22 Mar 2005 16:43:12 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [192.168.2.2] (adsl-64-170-123-89.dsl.snfc21.pacbell.net [64.170.123.89])j2MGh2mU046564; Tue, 22 Mar 2005 11:43:04 -0500 Message-ID: <42404B15.5040605@elischer.org> Date: Tue, 22 Mar 2005 08:43:01 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050214 X-Accept-Language: en, hu MIME-Version: 1.0 To: John Mok References: <42344AF7.6070701@attglobal.net> <423C72A1.7060000@cronyx.ru> <4240497D.5030304@attglobal.net> In-Reply-To: <4240497D.5030304@attglobal.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org cc: Roman Kurakin Subject: Re: HOWTO connect MCI using Netgraph + Frame Relay with Digi SYNC/570i X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 16:43:13 -0000 John Mok wrote: > Dear Roman, > > Thank you for your information. I have succeeded to setup the frame > relay using netgraph. However, I failed to get the interface ng0 up :- > > #ifconfig ng0 1.2.3.4 255.255.255.0 up > ifconfig: interface ng0 does not exist > > Please help to advise how I could make the interface ng0 appears. > > Thank you, John Mok > > Roman Kurakin wrote: > >> In case you still need this information. >> >> John Mok: >> >>> Hi, >>> >>> I would like to replace the existing Cisco router 1600 and connect to >>> MCI Hong Kong with FeeBSD 5.3 box with a Digi SYNC 570 serial card. >>> With reference of the FreeBSD handbook and the information from >>> Julian Elischer at >>> >>> http://www.elischer.org/netgraph/ >>> >>> I have compiled the kernel with the following options :- >>> >>> .... >>> options NETGRAPH >>> options NETGRAPH_FRAME_RELAY >>> options NETGRAPH_LMI >>> .... >>> device ar >>> >>> The dmesg showed that the device ARNET/Digi SYNC/570i was loaded >>> successfully. However, when I tried to config. with the following, >>> the ngctl prompt with the error: >>> >>> #ngctl mkpeer ar0: frame_relay rawdata downstream >>> #ngctl mkpeer ar0:rawdata lmi dlci500 ansi >> >> >> >> ngctl mkpeer ar0:rawdata lmi dlci0 annexD >> >> also you need NETGRAPH_RFC1490 >> >> ngctl mkpeer ar0:rawdata rfc1490 dlci500 downstream >> ngctl mkpeer ar0:rawdata.dlci500 iface inet inet did the last command do anything? please show the output of: ifconfig ngctl list >> >> and you will get smth like ng0 >> >> >> Best regards, >> Roman Kurakin >> >>> >>> ngctl: send msg: No such file or directory >>> >>> I tried the testing with MCI connection disconnected. How do I set >>> the line speed to 1536 Kbps? I hope someone could help me how to >>> config. the netgraph with work with Digi SYNC/570i >>> >>> Thanks a lot. >>> >>> John Mok >>> >>> >>> _______________________________________________ >>> freebsd-net@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-net >>> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> >> >> >> >> >> > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 16:54:38 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2135816A4CE; Tue, 22 Mar 2005 16:54:38 +0000 (GMT) Received: from a.mail.sonic.net (a.mail.sonic.net [64.142.16.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4F9A43D5E; Tue, 22 Mar 2005 16:54:37 +0000 (GMT) (envelope-from bmah@freebsd.org) Received: from localhost.localdomain (dns.packetdesign.com [65.192.41.10]) (authenticated bits=0) by a.mail.sonic.net (8.13.3/8.13.3) with ESMTP id j2MGsaIe022639 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 22 Mar 2005 08:54:37 -0800 From: "Bruce A. Mah" To: Maxim Konovalov In-Reply-To: <20050322152610.M46808@mp2.macomnet.net> References: <698483885.20050322140830@intercollab.net> <20050322152610.M46808@mp2.macomnet.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Hq8x2eAX1bDcIFlj39A0" Date: Tue, 22 Mar 2005 08:54:35 -0800 Message-Id: <1111510475.754.5.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port cc: "Bruce A. Mah" cc: freebsd-net@freebsd.org cc: Sergey Subject: Re: Difficulties with tcpdrop on FreeBsd 5.3 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 16:54:38 -0000 --=-Hq8x2eAX1bDcIFlj39A0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable If memory serves me right, Maxim Konovalov wrote: > On Tue, 22 Mar 2005, 14:08+0200, Sergey wrote: > > How to enable TCPCTL_DROP syscall !? >=20 > The upgrade procedure is described quite well in the handbook and > at the end of /usr/src/UPDATING. To expand on this just a bit: You can't just compile the tcpdrop executable and expect it to work. It requires a newly-built kernel (because there's a teensy bit of kernel support required) and probably resulting minor changes in some system header files. *That's* why you need to run through the source upgrade procedure that Maxim mentioned. Bruce. --=-Hq8x2eAX1bDcIFlj39A0 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCQE3L2MoxcVugUsMRAlZlAJ4vrYkop3D89fzaGRCEAeqfOze7qgCfe+6W 6aLRGBVgvrBlMGv5P0VeISc= =SscK -----END PGP SIGNATURE----- --=-Hq8x2eAX1bDcIFlj39A0-- From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 18:37:34 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 588B216A4CE for ; Tue, 22 Mar 2005 18:37:34 +0000 (GMT) Received: from uni-sb.de (uni-sb.de [134.96.252.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9041243D46 for ; Tue, 22 Mar 2005 18:37:33 +0000 (GMT) (envelope-from robertgogolok@web.de) Received: from cs.uni-sb.de (cs.uni-sb.de [134.96.252.31]) by uni-sb.de (8.13.3/2005020900) with ESMTP id j2MIbWSB014245; Tue, 22 Mar 2005 19:37:32 +0100 (CET) Received: from mail.cs.uni-sb.de (mail.cs.uni-sb.de [134.96.254.200]) by cs.uni-sb.de (8.13.3/2005011400) with ESMTP id j2MIbVBN014603; Tue, 22 Mar 2005 19:37:31 +0100 (CET) Received: from xantippe (xantippe.cs.uni-sb.de [134.96.240.13]) by mail.cs.uni-sb.de (8.13.3/2005020900) with ESMTP id j2MIbUs1011528; Tue, 22 Mar 2005 19:37:30 +0100 (CET) X-Authentication-Warning: mail.cs.uni-sb.de: Host xantippe.cs.uni-sb.de [134.96.240.13] claimed to be xantippe Received: from eugene.cs.uni-sb.de ([127.0.0.1]) [134.96.240.6] by xantippe with esmtp (Exim 3.35 #1 (Debian))id 1DDoFu-0001il-00; Tue, 22 Mar 2005 19:37:30 +0100 Message-ID: <424065D8.3030407@web.de> Date: Tue, 22 Mar 2005 19:37:12 +0100 From: Robert Gogolok User-Agent: Mozilla Thunderbird 1.0 (X11/20050313) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ray@redshift.com References: <3.0.1.32.20050322102130.00a7be40@pop.redshift.com> In-Reply-To: <3.0.1.32.20050322102130.00a7be40@pop.redshift.com> X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: FIN_WAIT_2 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 18:37:34 -0000 Hi Ray, Thanks for answering. ray@redshift.com wrote: > Do you have keepalive on ? That might be it. Usually on a busy site it's > better to turn keepalive off. You might try that and see if the number of > fin_wait's go away. # sysctl -a | grep keep net.inet.ip.keepfaith: 0 net.inet.ip.fw.dyn_keepalive: 1 net.inet.tcp.keepidle: 7200000 net.inet.tcp.keepintvl: 75000 net.inet.tcp.keepinit: 75000 net.inet.tcp.always_keepalive: 1 net.inet6.ip6.keepfaith: 0 I see that keepalive starts after 2 hours(?) (net.inet.tcp.keepidle), but what would disable it? I guess always_keepalive=0. Robert From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 18:44:53 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4DD016A4CE for ; Tue, 22 Mar 2005 18:44:53 +0000 (GMT) Received: from outgoing.redshift.com (outgoing.redshift.com [207.177.231.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6548E43D60 for ; Tue, 22 Mar 2005 18:44:53 +0000 (GMT) (envelope-from ray@redshift.com) Received: from workstation (216-228-19-21.dsl.redshift.com [216.228.19.21]) by outgoing.redshift.com (Postfix) with SMTP id 777A49703E; Tue, 22 Mar 2005 10:44:52 -0800 (PST) Message-Id: <3.0.1.32.20050322104506.00a8b8b8@pop.redshift.com> X-Mailer: na X-Sender: redshift.com Date: Tue, 22 Mar 2005 10:45:06 -0800 To: Robert Gogolok From: ray@redshift.com In-Reply-To: <424065D8.3030407@web.de> References: <3.0.1.32.20050322102130.00a7be40@pop.redshift.com> <3.0.1.32.20050322102130.00a7be40@pop.redshift.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" cc: freebsd-net@freebsd.org Subject: Re: FIN_WAIT_2 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 18:44:53 -0000 Hi Robert, I was actually referring to the keepalive setting in httpd.conf :-) But yes, you can change the sysctl setting also. I believe that will have a positive impact on the server. I don't have any first hand experience with it however. What do you have in httpd.conf ? Ray At 07:37 PM 3/22/2005 +0100, Robert Gogolok wrote: | Hi Ray, | Thanks for answering. | | ray@redshift.com wrote: | > Do you have keepalive on ? That might be it. Usually on a busy site it's | > better to turn keepalive off. You might try that and see if the number of | > fin_wait's go away. | # sysctl -a | grep keep | net.inet.ip.keepfaith: 0 | net.inet.ip.fw.dyn_keepalive: 1 | net.inet.tcp.keepidle: 7200000 | net.inet.tcp.keepintvl: 75000 | net.inet.tcp.keepinit: 75000 | net.inet.tcp.always_keepalive: 1 | net.inet6.ip6.keepfaith: 0 | | I see that keepalive starts after 2 hours(?) (net.inet.tcp.keepidle), | but what would disable it? I guess always_keepalive=0. | | | Robert | | From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 18:59:14 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AC9B16A4CE for ; Tue, 22 Mar 2005 18:59:14 +0000 (GMT) Received: from justus.rz.uni-saarland.de (justus.rz.uni-saarland.de [134.96.7.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 406EC43D2D for ; Tue, 22 Mar 2005 18:59:13 +0000 (GMT) (envelope-from robertgogolok@web.de) Received: from cs.uni-sb.de (cs.uni-sb.de [134.96.254.254]) j2MIxAZH5234425; Tue, 22 Mar 2005 19:59:10 +0100 (CET) Received: from mail.cs.uni-sb.de (mail.cs.uni-sb.de [134.96.254.200]) by cs.uni-sb.de (8.13.3/2005011400) with ESMTP id j2MIx9nj015068; Tue, 22 Mar 2005 19:59:10 +0100 (CET) Received: from xantippe (xantippe.cs.uni-sb.de [134.96.240.13]) by mail.cs.uni-sb.de (8.13.3/2005020900) with ESMTP id j2MIx92F012982; Tue, 22 Mar 2005 19:59:09 +0100 (CET) X-Authentication-Warning: mail.cs.uni-sb.de: Host xantippe.cs.uni-sb.de [134.96.240.13] claimed to be xantippe Received: from eugene.cs.uni-sb.de ([127.0.0.1]) [134.96.240.6] by xantippe with esmtp (Exim 3.35 #1 (Debian))id 1DDoar-0001ka-00; Tue, 22 Mar 2005 19:59:09 +0100 Message-ID: <42406AEB.8020906@web.de> Date: Tue, 22 Mar 2005 19:58:51 +0100 From: Robert Gogolok User-Agent: Mozilla Thunderbird 1.0 (X11/20050313) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ray@redshift.com References: <3.0.1.32.20050322102130.00a7be40@pop.redshift.com> <3.0.1.32.20050322102130.00a7be40@pop.redshift.com> <3.0.1.32.20050322104506.00a8b8b8@pop.redshift.com> In-Reply-To: <3.0.1.32.20050322104506.00a8b8b8@pop.redshift.com> X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.1 (justus.rz.uni-saarland.de [134.96.7.31]); Tue, 22 Mar 2005 19:59:10 +0100 (CET) X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.30.0.7; VDF 6.30.0.41 cc: freebsd-net@freebsd.org Subject: Re: FIN_WAIT_2 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 18:59:14 -0000 ray@redshift.com wrote: > I was actually referring to the keepalive setting in httpd.conf :-) But yes, > you can change the sysctl setting also. I believe that will have a positive > impact on the server. I don't have any first hand experience with it however. > > What do you have in httpd.conf ? KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 The strange thing (for me) is: tcpdump output: tcp4 0 0 HTTP_SERVER.80 81.56.174.131.34347 FIN_WAIT_2 The last access from this client was today 22/Mar/2005:11:19:39 according to the http-access file. It's 19:56 at the moment. So over 6 hours in FIN_WAIT_2 state, is that normal? Robert From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 20:06:22 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E640516A4CE for ; Tue, 22 Mar 2005 20:06:22 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BC3443D58 for ; Tue, 22 Mar 2005 20:06:22 +0000 (GMT) (envelope-from linisys@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so1524227rng for ; Tue, 22 Mar 2005 12:06:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=mKkL+Sz67cDjUG81/ZYlgOVPlus/e97DsRlOZ2ZdkpL6JyOvFwe68AbQc1OPgURQ8uVSBvm5nePntTFFaOwC2ShD/gFFZMGv/xgGjo+dNCvDcsW7cJqBgpvRGkQp1pBdHh04jqttAaS5QposCPzFs8XRdhLCOEAbBV95GfP7dPo= Received: by 10.38.149.10 with SMTP id w10mr924364rnd; Tue, 22 Mar 2005 12:06:21 -0800 (PST) Received: by 10.38.73.7 with HTTP; Tue, 22 Mar 2005 12:06:21 -0800 (PST) Message-ID: <30831386050322120630eaf58d@mail.gmail.com> Date: Tue, 22 Mar 2005 14:06:21 -0600 From: "Chris Tusa at Linisys, LLC" To: Brian Somers In-Reply-To: <20050322122924.71b7c46a@dev.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <3083138605032116273eacd0f7@mail.gmail.com> <20050322122924.71b7c46a@dev.lan.Awfulhak.org> cc: freebsd-net@freebsd.org Subject: Re: PPP Lan Bridge X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Chris Tusa at Linisys, LLC" List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 20:06:23 -0000 Brian, Very helpful. Someone on another forum suggsted the possibility of adjusting routing using either a routed daemon or setting static routes, but it seems that your method seems quicker. If I segment off the PPP side, do I need to change the subnet mask on the rest of the network as well? (I should know this!) -- Chris > The issue is that 192.168.1.0/24 machines have to know to route > 192.168.2.0/24 stuff through 192.168.1.230, or else the timeclock > machine needs some sort of presence on 192.168.1.0/24. > > This can be done by allocating a segment of 192.168.1.0/24 to the ppp > client and adding ``enable proxyall'' to the ppp server config. > > server: > enable proxyall > set ifaddr 192.168.1.230 192.168.1.232/30 > > client: > set ifaddr 192.168.1.233 192.168.1.230 > > and then setting the addresses on the crossover cable to 192.168.1.233 > and 192.168.1.234. > > The ``enable proxyall'' bit tells ppp to create proxy arp entries for > all of 192.168.1.232/30 (except for .232 and .235), allowing everything > else on 192.168.1.0/24 to think it's talking directly to these machines. > > -- > Brian Somers > Don't _EVER_ lose your sense of humour ! > -- Chris Tusa linisys@gmail.com http://people.linisys.com/ctusa Buy books from my Half.com inventory: http://half.ebay.com/shops/shops.jsp?seller_id=1691584 From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 22:03:06 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE7BC16A4CE for ; Tue, 22 Mar 2005 22:03:06 +0000 (GMT) Received: from gw.Awfulhak.org (awfulhak.demon.co.uk [80.177.173.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A46843D39 for ; Tue, 22 Mar 2005 22:03:05 +0000 (GMT) (envelope-from brian@Awfulhak.org) Received: from dev.lan.Awfulhak.org (brian@dev.lan.Awfulhak.org [172.16.0.5]) by gw.Awfulhak.org (8.13.3/8.13.3) with ESMTP id j2MM2uob097342; Tue, 22 Mar 2005 22:02:56 GMT (envelope-from brian@Awfulhak.org) Date: Tue, 22 Mar 2005 22:02:54 +0000 From: Brian Somers To: "Chris Tusa at Linisys, LLC" Message-ID: <20050322220254.19994f8e@dev.lan.Awfulhak.org> In-Reply-To: <30831386050322120630eaf58d@mail.gmail.com> References: <3083138605032116273eacd0f7@mail.gmail.com> <20050322122924.71b7c46a@dev.lan.Awfulhak.org> <30831386050322120630eaf58d@mail.gmail.com> X-Mailer: Sylpheed-Claws 1.0.1 (GTK+ 1.2.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on gw.lan.Awfulhak.org cc: freebsd-net@freebsd.org Subject: Re: PPP Lan Bridge X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 22:03:06 -0000 Hi, The netmask for the rest of the network should remain the same so that each machine still thinks it's talking on a /24 (the ppp server is responding to ARPs so nobody can tell that the ppp server isn't actually just a multi-homed host). Only when a packet gets to the ppp server is it actually routed (which happens because the IP number doesn't match after all -- despite the ARP table). I guess the missing bit is that the timeclock machine needs a special routing table with 192.168.1.234/30 on it's crossed-over ethernet interface and 192.168.1.233 as the default route, allowing data to get back to the rest of the /24 subnet. When you get it all working it'll start to make sense (if it doesn't already). On Tue, 22 Mar 2005 14:06:21 -0600, "Chris Tusa at Linisys, LLC" wrote: > Brian, > > Very helpful. Someone on another forum suggsted the possibility of > adjusting routing using either a routed daemon or setting static > routes, but it seems that your method seems quicker. If I segment off > the PPP side, do I need to change the subnet mask on the rest of the > network as well? > > (I should know this!) > > -- Chris > > > > The issue is that 192.168.1.0/24 machines have to know to route > > 192.168.2.0/24 stuff through 192.168.1.230, or else the timeclock > > machine needs some sort of presence on 192.168.1.0/24. > > > > This can be done by allocating a segment of 192.168.1.0/24 to the ppp > > client and adding ``enable proxyall'' to the ppp server config. > > > > server: > > enable proxyall > > set ifaddr 192.168.1.230 192.168.1.232/30 > > > > client: > > set ifaddr 192.168.1.233 192.168.1.230 > > > > and then setting the addresses on the crossover cable to 192.168.1.233 > > and 192.168.1.234. > > > > The ``enable proxyall'' bit tells ppp to create proxy arp entries for > > all of 192.168.1.232/30 (except for .232 and .235), allowing everything > > else on 192.168.1.0/24 to think it's talking directly to these machines. > > > > -- > > Brian Somers > > Don't _EVER_ lose your sense of humour ! > > > > > -- > Chris Tusa > linisys@gmail.com > http://people.linisys.com/ctusa > > Buy books from my Half.com inventory: > http://half.ebay.com/shops/shops.jsp?seller_id=1691584 > -- Brian Somers Don't _EVER_ lose your sense of humour ! From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 22:17:54 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D36EA16A4CE for ; Tue, 22 Mar 2005 22:17:54 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 462C943D3F for ; Tue, 22 Mar 2005 22:17:54 +0000 (GMT) (envelope-from linisys@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so1566314rng for ; Tue, 22 Mar 2005 14:17:53 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=NWO8Ja/0pXWEUrG0KOR4CWhhUkUDn3K2gyWq6Sg/e7xu1qtAmA1Gyj627W7r1DGnghbcLOkNTos3pTpDRdOW+czh2qRQWHfu/s1D/fUjQLBugjMDQUVBpXFCSKZxOM6jBImvilY3uY62LptH79PVnjh0WZyU2wIPxYIAIhzVFv4= Received: by 10.38.72.59 with SMTP id u59mr1425rna; Tue, 22 Mar 2005 14:17:53 -0800 (PST) Received: by 10.38.73.7 with HTTP; Tue, 22 Mar 2005 14:17:53 -0800 (PST) Message-ID: <3083138605032214175b078a34@mail.gmail.com> Date: Tue, 22 Mar 2005 16:17:53 -0600 From: "Chris Tusa at Linisys, LLC" To: Brian Somers In-Reply-To: <20050322220254.19994f8e@dev.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <3083138605032116273eacd0f7@mail.gmail.com> <20050322122924.71b7c46a@dev.lan.Awfulhak.org> <30831386050322120630eaf58d@mail.gmail.com> <20050322220254.19994f8e@dev.lan.Awfulhak.org> cc: freebsd-net@freebsd.org Subject: Re: PPP Lan Bridge X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Chris Tusa at Linisys, LLC" List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 22:17:55 -0000 Thanks Again, Just a quick note on your last reply, don't know whether this will make an impact: > I guess the missing bit is that the timeclock machine needs a special > routing table with 192.168.1.234/30 on it's crossed-over ethernet > interface and 192.168.1.233 as the default route, allowing data to > get back to the rest of the /24 subnet. The timeclock itself is a proprietary STANDALONE device, not an actual machine with an OS. It has its own configuration interface via its LCD screen and buttons. It only allows me to add the IP, Netmask & Gateway. So I probably can't perform routing table changes to that device. ( http://www.timeclockplus.com/products/hardware/markIII/mark3.aspx ) > When you get it all working it'll start to make sense (if it doesn't > already). I will try the configuration tommorrow and see what happens. Thanks so much. -- Chris Tusa linisys@gmail.com http://people.linisys.com/ctusa Buy books from my Half.com inventory: http://half.ebay.com/shops/shops.jsp?seller_id=1691584 From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 22:48:21 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66F9E16A4CE for ; Tue, 22 Mar 2005 22:48:21 +0000 (GMT) Received: from triton.rz.uni-saarland.de (triton.rz.uni-saarland.de [134.96.7.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C2C243D1D for ; Tue, 22 Mar 2005 22:48:20 +0000 (GMT) (envelope-from robertgogolok@web.de) Received: from cs.uni-sb.de (cs.uni-sb.de [134.96.254.254]) j2MMmIPs4448521 for ; Tue, 22 Mar 2005 23:48:18 +0100 (CET) Received: from mail.cs.uni-sb.de (mail.cs.uni-sb.de [134.96.254.200]) by cs.uni-sb.de (8.13.3/2005011400) with ESMTP id j2MMmHKu020157 for ; Tue, 22 Mar 2005 23:48:17 +0100 (CET) Received: from xantippe (xantippe.cs.uni-sb.de [134.96.240.13]) by mail.cs.uni-sb.de (8.13.3/2005020900) with ESMTP id j2MMmHhq029137 for ; Tue, 22 Mar 2005 23:48:17 +0100 (CET) X-Authentication-Warning: mail.cs.uni-sb.de: Host xantippe.cs.uni-sb.de [134.96.240.13] claimed to be xantippe Received: from eugene.cs.uni-sb.de ([127.0.0.1]) [134.96.240.6] by xantippe with esmtp (Exim 3.35 #1 (Debian))id 1DDsAa-00027M-00 for ; Tue, 22 Mar 2005 23:48:17 +0100 Message-ID: <4240A09E.9070007@web.de> Date: Tue, 22 Mar 2005 23:47:58 +0100 From: Robert Gogolok User-Agent: Mozilla Thunderbird 1.0 (X11/20050313) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <42401B2A.70308@web.de> In-Reply-To: <42401B2A.70308@web.de> X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.1 (triton.rz.uni-saarland.de [134.96.7.25]); Tue, 22 Mar 2005 23:48:18 +0100 (CET) X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.30.0.7; VDF 6.30.0.41 Subject: Re: FIN_WAIT_2 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 22:48:21 -0000 http://lists.freebsd.org/mailman/htdig/freebsd-ipfw/2003-May/000204.html is the same problem or similar problem. Forgot to mention thge important fact I use ipfw, bad bad... With # sysctl net.inet.ip.fw.dyn_keepalive=0 the FIN_WAIT_2 connections cleaned all up within a few minutes. Robert From owner-freebsd-net@FreeBSD.ORG Wed Mar 23 19:00:07 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C3A9B16A4D1 for ; Wed, 23 Mar 2005 19:00:04 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5302743D4C for ; Wed, 23 Mar 2005 19:00:04 +0000 (GMT) (envelope-from linisys@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so259682rng for ; Wed, 23 Mar 2005 11:00:03 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Ie/hPQFP3kpR2X2Pd4fStXBEcpwclRsSbNbyGkUCmM1RmapGNjoMYqUV2IVZw4Zut8I97EMtHoIzHj6LdC8JxbKpRy5kIJdwBItlSt7gBDYpC/X/w47IKraTfKlqOAF6zZI2zv0j44l/2x7BGXo+SsfvAolbB0i2EMe76ZVkPoA= Received: by 10.38.9.54 with SMTP id 54mr824500rni; Wed, 23 Mar 2005 11:00:03 -0800 (PST) Received: by 10.38.73.7 with HTTP; Wed, 23 Mar 2005 11:00:03 -0800 (PST) Message-ID: <308313860503231100635d6114@mail.gmail.com> Date: Wed, 23 Mar 2005 13:00:03 -0600 From: "Chris Tusa at Linisys, LLC" To: freebsd-net@freebsd.org In-Reply-To: <3083138605032214175b078a34@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <3083138605032116273eacd0f7@mail.gmail.com> <20050322122924.71b7c46a@dev.lan.Awfulhak.org> <30831386050322120630eaf58d@mail.gmail.com> <20050322220254.19994f8e@dev.lan.Awfulhak.org> <3083138605032214175b078a34@mail.gmail.com> cc: brian@awfulhak.org Subject: Re: PPP Lan Bridge X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Chris Tusa at Linisys, LLC" List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2005 19:00:08 -0000 OK, I put the solution in place and had great results. The ONLY issue that I had, is with some routing. In order for the rest of the network to communicate with the hosts at the maintainence shed, I had to set a 'static route'. I did so using DHCP, no problems there. However, I have a problem on the PPP server in its routing table: * I cannot add the static route to 'rc.conf': static_routes="theshed" route_theshed="192.168.1.234 192.168.1.233" because it creates the table entry pointing to the wrong interface - fxp0 instead of tun0 * I tried the same thing in the 'ppp.conf' file. I tried several variations with no success: server: add 192.168.1.234 192.168.1.233 add 192.168.1.234/30 192.168.1.233 * I tried placing a shell script to be run in 'ppp.linkup' on the server server: bg /etc/ppp/setroute.sh and then setroute.sh: #!/bin/sh route delete 192.168.1.234 route add 192.168.1.234 192.168.1.233 STILL FAILS! But once the PPP link is established, if I add the route manually or run the shell script, it works fine thereafter. So the problem is that the routing table gets updated with the WRONG interface. The FreeBSD man page for 'route' is unclear about how to specify the interface on the command line. Any additional advice? On Tue, 22 Mar 2005 16:17:53 -0600, Chris Tusa at Linisys, LLC wrote: > Thanks Again, > > Just a quick note on your last reply, don't know whether this will > make an impact: > > > I guess the missing bit is that the timeclock machine needs a special > > routing table with 192.168.1.234/30 on it's crossed-over ethernet > > interface and 192.168.1.233 as the default route, allowing data to > > get back to the rest of the /24 subnet. > > The timeclock itself is a proprietary STANDALONE device, not an actual > machine with an OS. It has its own configuration interface via its LCD > screen and buttons. It only allows me to add the IP, Netmask & > Gateway. So I probably can't perform routing table changes to that > device. > > ( http://www.timeclockplus.com/products/hardware/markIII/mark3.aspx ) > > > > When you get it all working it'll start to make sense (if it doesn't > > already). > > I will try the configuration tommorrow and see what happens. Thanks so much. > > -- > Chris Tusa > linisys@gmail.com > http://people.linisys.com/ctusa > > Buy books from my Half.com inventory: > http://half.ebay.com/shops/shops.jsp?seller_id=1691584 > -- Chris Tusa linisys@gmail.com http://people.linisys.com/ctusa Buy books from my Half.com inventory: http://half.ebay.com/shops/shops.jsp?seller_id=1691584 From owner-freebsd-net@FreeBSD.ORG Thu Mar 24 03:37:34 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A31F16A4CE for ; Thu, 24 Mar 2005 03:37:34 +0000 (GMT) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69B5743D5D for ; Thu, 24 Mar 2005 03:37:32 +0000 (GMT) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.12.11/8.12.11) with ESMTP id j2O3aX5d021123 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 24 Mar 2005 10:36:33 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.13.1/8.12.11) id j2O3dpoN099306; Thu, 24 Mar 2005 10:39:51 +0700 (ICT) Date: Thu, 24 Mar 2005 10:39:51 +0700 (ICT) Message-Id: <200503240339.j2O3dpoN099306@banyan.cs.ait.ac.th> From: Olivier Nicole To: freebsd-net@freebsd.org X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Subject: Resolving MAC address X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2005 03:37:34 -0000 Hi, Is there a command, or a short C code that I could use to resolve the MAC address for a given IP address? # ping -c 1 10.0.0.1 PING 10.0.0.1 (10.0.0.1): 56 data bytes 64 bytes from 10.0.0.1: icmp_seq=0 ttl=64 time=0.974 ms --- 10.0.0.1 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.974/0.974/0.974/0.000 ms # arp 10.0.0.1 ? (10.0.0.1) at 00:e0:29:ad:5a:aa on em0 [ethernet] will do the trick, but it is a bit too heavy for the purpose, I'd prefer a solution that only send an ARP request. Best regards, olivier From owner-freebsd-net@FreeBSD.ORG Thu Mar 24 03:52:30 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F17D16A4CE for ; Thu, 24 Mar 2005 03:52:30 +0000 (GMT) Received: from mailhost.schluting.com (schluting.com [131.252.214.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5EEC43D5A for ; Thu, 24 Mar 2005 03:52:29 +0000 (GMT) (envelope-from charlie@schluting.com) Received: from localhost (localhost [127.0.0.1]) by mailhost.schluting.com (Postfix) with ESMTP id 68F912131; Wed, 23 Mar 2005 19:52:29 -0800 (PST) Received: from mailhost.schluting.com ([127.0.0.1]) by localhost (schluting.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 34720-09; Wed, 23 Mar 2005 19:52:24 -0800 (PST) Received: from [10.1.0.69] (c-24-20-163-50.client.comcast.net [24.20.163.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhost.schluting.com (Postfix) with ESMTP id 9DECA20F1; Wed, 23 Mar 2005 19:52:24 -0800 (PST) Message-ID: <42423976.7000608@schluting.com> Date: Wed, 23 Mar 2005 19:52:22 -0800 From: Charlie Schluting User-Agent: Mozilla Thunderbird 1.0RC1 (Windows/20041201) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Olivier Nicole References: <200503240339.j2O3dpoN099306@banyan.cs.ait.ac.th> In-Reply-To: <200503240339.j2O3dpoN099306@banyan.cs.ait.ac.th> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by your mom at schluting.com cc: freebsd-net@freebsd.org Subject: Re: Resolving MAC address X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2005 03:52:30 -0000 Olivier Nicole wrote: > ? (10.0.0.1) at 00:e0:29:ad:5a:aa on em0 [ethernet] > > will do the trick, but it is a bit too heavy for the purpose, I'd > prefer a solution that only send an ARP request. > If you just want to avoid the DNS lookup, you can use arp -an. Its much faster :) -Charlie From owner-freebsd-net@FreeBSD.ORG Thu Mar 24 03:56:18 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B126216A4CE for ; Thu, 24 Mar 2005 03:56:18 +0000 (GMT) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 722D843D5C for ; Thu, 24 Mar 2005 03:56:17 +0000 (GMT) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.12.11/8.12.11) with ESMTP id j2O3tJBI021747 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 24 Mar 2005 10:55:19 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.13.1/8.12.11) id j2O3wb4I099605; Thu, 24 Mar 2005 10:58:37 +0700 (ICT) Date: Thu, 24 Mar 2005 10:58:37 +0700 (ICT) Message-Id: <200503240358.j2O3wb4I099605@banyan.cs.ait.ac.th> From: Olivier Nicole Cc: freebsd-net@freebsd.org In-reply-to: <42423976.7000608@schluting.com> (message from Charlie Schluting on Wed, 23 Mar 2005 19:52:22 -0800) References: <200503240339.j2O3dpoN099306@banyan.cs.ait.ac.th> <42423976.7000608@schluting.com> X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Subject: Re: Resolving MAC address X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2005 03:56:18 -0000 > > ? (10.0.0.1) at 00:e0:29:ad:5a:aa on em0 [ethernet] > > > > will do the trick, but it is a bit too heavy for the purpose, I'd > > prefer a solution that only send an ARP request. > > > > If you just want to avoid the DNS lookup, you can use arp -an. > Its much faster :) Thanks. Off course I use arp -n to avoid DNS resolution. But what i really want to avoid is sending any IP/ICMP packet when the ARP resolution is all I need. (And some people even filter out the ICMP echo request packets (Windows XP firewall), so I have to wait for the time out). Olivier From owner-freebsd-net@FreeBSD.ORG Thu Mar 24 04:05:07 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D184516A4CE for ; Thu, 24 Mar 2005 04:05:07 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [83.167.185.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id E35C743D41 for ; Thu, 24 Mar 2005 04:05:06 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 1D471651FA; Thu, 24 Mar 2005 04:02:05 +0000 (GMT) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12560-01; Thu, 24 Mar 2005 04:02:04 +0000 (GMT) Received: from empiric.dek.spc.org (dhcp52.icir.org [192.150.187.52]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id DBF8A651F7; Thu, 24 Mar 2005 04:02:03 +0000 (GMT) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 59ADE62DB; Wed, 23 Mar 2005 20:05:02 -0800 (PST) Date: Wed, 23 Mar 2005 20:05:02 -0800 From: Bruce M Simpson To: Olivier Nicole Message-ID: <20050324040502.GB749@empiric.icir.org> Mail-Followup-To: Olivier Nicole , freebsd-net@freebsd.org References: <200503240339.j2O3dpoN099306@banyan.cs.ait.ac.th> <42423976.7000608@schluting.com> <200503240358.j2O3wb4I099605@banyan.cs.ait.ac.th> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200503240358.j2O3wb4I099605@banyan.cs.ait.ac.th> cc: freebsd-net@freebsd.org Subject: Re: Resolving MAC address X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2005 04:05:07 -0000 On Thu, Mar 24, 2005 at 10:58:37AM +0700, Olivier Nicole wrote: > But what i really want to avoid is sending any IP/ICMP packet when the > ARP resolution is all I need. (And some people even filter out the > ICMP echo request packets (Windows XP firewall), so I have to wait for > the time out). ports/net/arping BMS From owner-freebsd-net@FreeBSD.ORG Thu Mar 24 08:20:50 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85DA016A4CE for ; Thu, 24 Mar 2005 08:20:50 +0000 (GMT) Received: from mail.ntmk.ru (mail.ntmk.ru [217.114.241.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62C0C43D31 for ; Thu, 24 Mar 2005 08:20:49 +0000 (GMT) (envelope-from boris@ntmk.ru) Received: from boris.nikom.ru ([10.1.16.195]) by mail.ntmk.ru with esmtp (Exim 4.44) id 1DENaB-0001LL-Eo for freebsd-net@freebsd.org; Thu, 24 Mar 2005 13:20:47 +0500 Message-ID: <4242785F.2070700@ntmk.ru> Date: Thu, 24 Mar 2005 13:20:47 +0500 From: Boris Kovalenko User-Agent: Mozilla Thunderbird 1.0 (X11/20050314) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Subject: bge and checksums X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2005 08:20:50 -0000 Hello! I try to use DSNiff with my FreeBSD 5.4-PRE and bge NIC. Unfortunatelly it does no work. My supposition is that the root of problem is bad tcp checksums (as shown by tcpdump). And DSNiff (and underlaying libnids) are checking for checksums. As I undrestand, bge has txcsum flag, so tcp stack does not computes checksum itself. Am I right? And may I turn off txcsum flag without modifying bge driver? -- With respect, Boris From owner-freebsd-net@FreeBSD.ORG Thu Mar 24 10:09:06 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3F0F16A4CE for ; Thu, 24 Mar 2005 10:09:06 +0000 (GMT) Received: from mail.ntmk.ru (mail.ntmk.ru [217.114.241.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id A00B043D53 for ; Thu, 24 Mar 2005 10:09:05 +0000 (GMT) (envelope-from boris@ntmk.ru) Received: from boris.nikom.ru ([10.1.16.195]) by mail.ntmk.ru with esmtp (Exim 4.44) id 1DEPGy-0004rh-6j for freebsd-net@freebsd.org; Thu, 24 Mar 2005 15:09:04 +0500 Message-ID: <424291C0.9020509@ntmk.ru> Date: Thu, 24 Mar 2005 15:09:04 +0500 From: Boris Kovalenko User-Agent: Mozilla Thunderbird 1.0 (X11/20050314) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <4242785F.2070700@ntmk.ru> In-Reply-To: <4242785F.2070700@ntmk.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: bge and checksums X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2005 10:09:06 -0000 Boris Kovalenko wrote: Hello! Forgot to add - when useing fxp with 5.4-PRE all is working fine. -- With respect, Boris From owner-freebsd-net@FreeBSD.ORG Thu Mar 24 11:18:30 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21B1016A4CE for ; Thu, 24 Mar 2005 11:18:30 +0000 (GMT) Received: from gw.Awfulhak.org (awfulhak.demon.co.uk [80.177.173.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F1CA43D67 for ; Thu, 24 Mar 2005 11:18:29 +0000 (GMT) (envelope-from brian@Awfulhak.org) Received: from dev.lan.Awfulhak.org (brian@dev.lan.Awfulhak.org [172.16.0.5]) by gw.Awfulhak.org (8.13.3/8.13.3) with ESMTP id j2OBIO0l015978; Thu, 24 Mar 2005 11:18:24 GMT (envelope-from brian@Awfulhak.org) Date: Thu, 24 Mar 2005 11:18:22 +0000 From: Brian Somers To: "Chris Tusa at Linisys, LLC" Message-ID: <20050324111822.30fb3e0d@dev.lan.Awfulhak.org> In-Reply-To: <308313860503231100635d6114@mail.gmail.com> References: <3083138605032116273eacd0f7@mail.gmail.com> <20050322122924.71b7c46a@dev.lan.Awfulhak.org> <30831386050322120630eaf58d@mail.gmail.com> <20050322220254.19994f8e@dev.lan.Awfulhak.org> <3083138605032214175b078a34@mail.gmail.com> <308313860503231100635d6114@mail.gmail.com> X-Mailer: Sylpheed-Claws 1.0.1 (GTK+ 1.2.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on gw.lan.Awfulhak.org cc: freebsd-net@freebsd.org Subject: Re: PPP Lan Bridge X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2005 11:18:30 -0000 I would have thought that server: add 192.168.1.234/30 HISADDR in ppp.linkup should work... On Wed, 23 Mar 2005 13:00:03 -0600, "Chris Tusa at Linisys, LLC" wrote: > OK, > > I put the solution in place and had great results. The ONLY issue that > I had, is with some routing. In order for the rest of the network to > communicate with the hosts at the maintainence shed, I had to set a > 'static route'. I did so using DHCP, no problems there. > > However, I have a problem on the PPP server in its routing table: > > * I cannot add the static route to 'rc.conf': > > static_routes="theshed" > route_theshed="192.168.1.234 192.168.1.233" > > because it creates the table entry pointing to the wrong interface - > fxp0 instead of tun0 > > * I tried the same thing in the 'ppp.conf' file. I tried several > variations with no success: > > server: > add 192.168.1.234 192.168.1.233 > add 192.168.1.234/30 192.168.1.233 > > * I tried placing a shell script to be run in 'ppp.linkup' on the server > server: > bg /etc/ppp/setroute.sh > > and then setroute.sh: > > #!/bin/sh > route delete 192.168.1.234 > route add 192.168.1.234 192.168.1.233 > > STILL FAILS! > > But once the PPP link is established, if I add the route manually or > run the shell script, it works fine thereafter. So the problem is that > the routing table gets updated with the WRONG interface. The FreeBSD > man page for 'route' is unclear about how to specify the interface on > the command line. Any additional advice? > > > > On Tue, 22 Mar 2005 16:17:53 -0600, Chris Tusa at Linisys, LLC > wrote: > > Thanks Again, > > > > Just a quick note on your last reply, don't know whether this will > > make an impact: > > > > > I guess the missing bit is that the timeclock machine needs a special > > > routing table with 192.168.1.234/30 on it's crossed-over ethernet > > > interface and 192.168.1.233 as the default route, allowing data to > > > get back to the rest of the /24 subnet. > > > > The timeclock itself is a proprietary STANDALONE device, not an actual > > machine with an OS. It has its own configuration interface via its LCD > > screen and buttons. It only allows me to add the IP, Netmask & > > Gateway. So I probably can't perform routing table changes to that > > device. > > > > ( http://www.timeclockplus.com/products/hardware/markIII/mark3.aspx ) > > > > > > > When you get it all working it'll start to make sense (if it doesn't > > > already). > > > > I will try the configuration tommorrow and see what happens. Thanks so much. > > > > -- > > Chris Tusa > > linisys@gmail.com > > http://people.linisys.com/ctusa > > > > Buy books from my Half.com inventory: > > http://half.ebay.com/shops/shops.jsp?seller_id=1691584 > > > > > -- > Chris Tusa > linisys@gmail.com > http://people.linisys.com/ctusa > > Buy books from my Half.com inventory: > http://half.ebay.com/shops/shops.jsp?seller_id=1691584 > -- Brian Somers Don't _EVER_ lose your sense of humour ! From owner-freebsd-net@FreeBSD.ORG Thu Mar 24 12:33:15 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7DB116A4CE for ; Thu, 24 Mar 2005 12:33:15 +0000 (GMT) Received: from mxsf35.cluster1.charter.net (mxsf35.cluster1.charter.net [209.225.28.160]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2842343D2D for ; Thu, 24 Mar 2005 12:33:15 +0000 (GMT) (envelope-from c0ldbyte@myrealbox.com) Received: from mxip08.cluster1.charter.net (mxip08a.cluster1.charter.net [209.225.28.138])j2OCXDll026991 for ; Thu, 24 Mar 2005 07:33:14 -0500 Received: from 24.247.253.134.gha.mi.chartermi.net (HELO eleanor.us1.wmi.uvac.net) (24.247.253.134) by mxip08.cluster1.charter.net with ESMTP; 24 Mar 2005 07:33:13 -0500 X-Ironport-AV: i="3.91,117,1110171600"; d="scan'208"; a="708424463:sNHT12868412" Date: Thu, 24 Mar 2005 07:33:13 -0500 (EST) From: c0ldbyte To: freebsd-net@freebsd.org In-Reply-To: <42423976.7000608@schluting.com> Message-ID: <20050324073200.A4184@eleanor.us1.wmi.uvac.net> References: <200503240339.j2O3dpoN099306@banyan.cs.ait.ac.th> <42423976.7000608@schluting.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: Resolving MAC address X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2005 12:33:16 -0000 On Wed, 23 Mar 2005, Charlie Schluting wrote: > Olivier Nicole wrote: > >> ? (10.0.0.1) at 00:e0:29:ad:5a:aa on em0 [ethernet] >> >> will do the trick, but it is a bit too heavy for the purpose, I'd >> prefer a solution that only send an ARP request. >> > > If you just want to avoid the DNS lookup, you can use arp -an. > Its much faster :) > > -Charlie Also check out arping @ "/usr/ports/net/arping" Best if luck, --c0ldbyte From owner-freebsd-net@FreeBSD.ORG Thu Mar 24 20:42:13 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8EFB916A4CE for ; Thu, 24 Mar 2005 20:42:13 +0000 (GMT) Received: from ylpvm43.prodigy.net (ylpvm43-ext.prodigy.net [207.115.57.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0EEEB43D54 for ; Thu, 24 Mar 2005 20:42:13 +0000 (GMT) (envelope-from kbyanc@posi.net) Received: from gateway.posi.net (adsl-63-201-90-124.dsl.snfc21.pacbell.net [63.201.90.124])j2OKgEbq010182; Thu, 24 Mar 2005 15:42:14 -0500 Received: from localhost (localhost [127.0.0.1]) by gateway.posi.net (Postfix) with ESMTP id EA0BF75E05F; Thu, 24 Mar 2005 13:45:02 -0800 (PST) Date: Thu, 24 Mar 2005 13:45:02 -0800 (PST) From: Kelly Yancey To: Boris Kovalenko In-Reply-To: <4242785F.2070700@ntmk.ru> Message-ID: <20050324134142.K5907@gateway.posi.net> References: <4242785F.2070700@ntmk.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re: bge and checksums X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2005 20:42:13 -0000 On Thu, 24 Mar 2005, Boris Kovalenko wrote: > Hello! > > I try to use DSNiff with my FreeBSD 5.4-PRE and bge NIC. Unfortunatelly > it does no work. My supposition is that the root of problem is bad tcp > checksums (as shown by tcpdump). And DSNiff (and underlaying libnids) > are checking for checksums. As I undrestand, bge has txcsum flag, so tcp > stack does not computes checksum itself. Am I right? And may I turn off > txcsum flag without modifying bge driver? > Have you tried the -txcsum option described in ifconfig(8)? Kelly -- Kelly Yancey - kbyanc@{posi.net,FreeBSD.org} - kelly@nttmcl.com FreeBSD, The Power To Serve: http://www.freebsd.org/ From owner-freebsd-net@FreeBSD.ORG Thu Mar 24 23:11:38 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FC9016A4CE for ; Thu, 24 Mar 2005 23:11:38 +0000 (GMT) Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4F8843D3F for ; Thu, 24 Mar 2005 23:11:37 +0000 (GMT) (envelope-from pheerboth@apple.com) Received: from mailgate1.apple.com (a17-128-100-225.apple.com [17.128.100.225]) by mail-out4.apple.com (8.12.11/8.12.11) with ESMTP id j2ONBbCg013234 for ; Thu, 24 Mar 2005 15:11:37 -0800 (PST) Received: from relay1.apple.com (relay1.apple.com) by mailgate1.apple.com ; Thu, 24 Mar 2005 15:11:37 -0800 Received: from [17.206.50.106] (il0602f-dhcp106.apple.com [17.206.50.106]) by relay1.apple.com (8.12.11/8.12.11) with ESMTP id j2ONBYJu019020; Thu, 24 Mar 2005 15:11:34 -0800 (PST) In-Reply-To: <200503240358.j2O3wb4I099605@banyan.cs.ait.ac.th> References: <200503240339.j2O3dpoN099306@banyan.cs.ait.ac.th> <42423976.7000608@schluting.com> <200503240358.j2O3wb4I099605@banyan.cs.ait.ac.th> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4d6157b283e8c2187a339c0a40d8eec3@apple.com> Content-Transfer-Encoding: 7bit From: Peter Heerboth Date: Thu, 24 Mar 2005 15:11:35 -0800 To: Olivier Nicole X-Mailer: Apple Mail (2.619.2) cc: freebsd-net@freebsd.org Subject: Re: Resolving MAC address X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2005 23:11:38 -0000 One thing you can try if you want to avoid needing super user privileges is to send a small UDP packet to the given IP, which will force the kernel to ARP for the address if it is not already present. Then you can check the routing table through sysctl() by passing in {CTL_NET, PF_ROUTE, 0, AF_INET,NET_RT_FLAGS,RTF_LLINFO} for the name parameter and searching through the route message list. All sending the UDP packet will do is force the kernel to arp, it doesn't actually matter if the other side is filtering or not. On Mar 23, 2005, at 7:58 PM, Olivier Nicole wrote: >>> ? (10.0.0.1) at 00:e0:29:ad:5a:aa on em0 [ethernet] >>> >>> will do the trick, but it is a bit too heavy for the purpose, I'd >>> prefer a solution that only send an ARP request. >>> >> >> If you just want to avoid the DNS lookup, you can use arp -an. >> Its much faster :) > > Thanks. Off course I use arp -n to avoid DNS resolution. > > But what i really want to avoid is sending any IP/ICMP packet when the > ARP resolution is all I need. (And some people even filter out the > ICMP echo request packets (Windows XP firewall), so I have to wait for > the time out). > > Olivier > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Fri Mar 25 00:48:17 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2001616A4CE for ; Fri, 25 Mar 2005 00:48:17 +0000 (GMT) Received: from mx0.metrocast.net (coltrane-mx.metrocast.net [65.175.128.144]) by mx1.FreeBSD.org (Postfix) with SMTP id 5AF9343D1F for ; Fri, 25 Mar 2005 00:48:16 +0000 (GMT) (envelope-from tenpin784@metrocast.net) Received: (qmail 28763 invoked from network); 25 Mar 2005 00:48:15 -0000 Received: from xwing.jbarbieri.net (HELO ?10.10.100.253?) (65.175.136.163) by coltrane-mx.metrocast.net with SMTP; 25 Mar 2005 00:48:15 -0000 Message-ID: <42435FCE.9000807@metrocast.net> Date: Thu, 24 Mar 2005 19:48:14 -0500 From: John Barbieri User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Problems with High Point Tech RocketRaid 1640 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2005 00:48:17 -0000 Good evening. Recently I setup a free bsd 5.3-amd64 box with dual opterons and 1GB of ram. I constructed a RAID 5 array using the HPT rocketraid 1640, conisiting of 4 disks, each with 200GB capacity. Everything worked well, until I installed and ran Samba from the ports collection. Now, apparently whenever I transfer with samba, the computer freezes for a few moments, then an array comes back, stating: Mar 24 13:14:12 tie kernel: hpt374: Device removed: controller 1 channel 3 Mar 24 13:14:12 tie kernel: hpt374: Device removed: controller 1 channel 1 The weird thing is, I transferred over 15GB of data over FTP, but the second I used Samba (which is usually faster, which is why i switched to it), the controller stated the two drives disconnected. How come I can transfer 15GB one way, and nothing the other? Now my RAID array is broken, and I lost all the data on it (which is ok, since I have it backed up). But this is my 2nd time doing this today, thinking maybe the first time was a fluke. info: FreeBSD tie.jbarbieri.net 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #1: Wed Mar 23 21:01:23 EST 2005 John@tie.jbarbieri.net:/usr/obj/usr/src/sys/TIE amd64 pkg_info: autoconf-2.13.000227_5 Automatically configure source code on many Un*x platforms automake-1.4.6_1 GNU Standards-compliant Makefile generator (legacy version cvsup-without-gui-16.1h General network file distribution system optimized for CVS gettext-0.14.1 GNU gettext package gmake-3.80_2 GNU version of 'make' utility libiconv-1.9.2_1 A character set conversion library libtool-1.3.5_2 Generic shared library support script (version 1.3) libtool-1.5.10_1 Generic shared library support script (version 1.5) linux_base-8-8.0_6 Base set of packages needed in Linux mode (only for i386) m4-1.4.1 GNU m4 perl-5.8.5 Practical Extraction and Report Language popt-1.7 A getopt(3) like library with a number of enhancements, fro rpm-3.0.6_9 The Red Hat Package Manager samba-2.2.12 A free SMB and CIFS client and server for UNIX as you can see, not much installed. I just rebuilt this box last night as well If you have any ideas, please let me know. If you need more info, let me know. Thank you in advanced John Barbieri From owner-freebsd-net@FreeBSD.ORG Fri Mar 25 00:56:46 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94EDD16A4CE for ; Fri, 25 Mar 2005 00:56:46 +0000 (GMT) Received: from thor-new.fsklaw.com (adsl-64-174-116-34.dsl.lsan03.pacbell.net [64.174.116.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4E2243D68 for ; Fri, 25 Mar 2005 00:56:45 +0000 (GMT) (envelope-from tms3@fsklaw.com) Received: from fuckms.fsklaw.net [192.168.64.2] by thor-new.fsklaw.com (ArGoSoft Mail Server Pro for WinNT/2000/XP, Version 1.8 (1.8.6.0)); Thu, 24 Mar 2005 16:57:24 -0800 Message-ID: <424361ED.2090208@fsklaw.com> Date: Thu, 24 Mar 2005 16:57:17 -0800 From: "Thomas M. Skeren III" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Barbieri References: <42435FCE.9000807@metrocast.net> In-Reply-To: <42435FCE.9000807@metrocast.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ArGoMail-Authenticated: tms3 cc: freebsd-net@freebsd.org Subject: Re: Problems with High Point Tech RocketRaid 1640 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2005 00:56:46 -0000 Hey John... Had many problems with operations and the amd 64 kernel. I switched to the i386 kernel and have had no problems. John Barbieri wrote: > Good evening. > > Recently I setup a free bsd 5.3-amd64 box with dual opterons and 1GB > of ram. > > > I constructed a RAID 5 array using the HPT rocketraid 1640, conisiting > of 4 disks, each with 200GB capacity. > > > Everything worked well, until I installed and ran Samba from the ports > collection. > > > Now, apparently whenever I transfer with samba, the computer freezes > for a few moments, then an array comes back, stating: > > Mar 24 13:14:12 tie kernel: hpt374: Device removed: controller 1 > channel 3 > Mar 24 13:14:12 tie kernel: hpt374: Device removed: controller 1 > channel 1 > > > > The weird thing is, I transferred over 15GB of data over FTP, but the > second I used Samba (which is usually faster, which is why i switched > to it), the controller stated the two drives disconnected. > > > How come I can transfer 15GB one way, and nothing the other? > > Now my RAID array is broken, and I lost all the data on it (which is > ok, since I have it backed up). But this is my 2nd time doing this > today, thinking maybe the first time was a fluke. > > > info: > > FreeBSD tie.jbarbieri.net 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #1: > Wed Mar 23 21:01:23 EST 2005 > John@tie.jbarbieri.net:/usr/obj/usr/src/sys/TIE amd64 > > pkg_info: > > autoconf-2.13.000227_5 Automatically configure source code on many > Un*x platforms > automake-1.4.6_1 GNU Standards-compliant Makefile generator (legacy > version > cvsup-without-gui-16.1h General network file distribution system > optimized for CVS > gettext-0.14.1 GNU gettext package > gmake-3.80_2 GNU version of 'make' utility > libiconv-1.9.2_1 A character set conversion library > libtool-1.3.5_2 Generic shared library support script (version 1.3) > libtool-1.5.10_1 Generic shared library support script (version 1.5) > linux_base-8-8.0_6 Base set of packages needed in Linux mode (only > for i386) > m4-1.4.1 GNU m4 > perl-5.8.5 Practical Extraction and Report Language > popt-1.7 A getopt(3) like library with a number of > enhancements, fro > rpm-3.0.6_9 The Red Hat Package Manager > samba-2.2.12 A free SMB and CIFS client and server for UNIX > > > as you can see, not much installed. I just rebuilt this box last night > as well > > If you have any ideas, please let me know. If you need more info, let > me know. > > > Thank you in advanced > > John Barbieri > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > From owner-freebsd-net@FreeBSD.ORG Fri Mar 25 03:45:52 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14DAE16A4CE for ; Fri, 25 Mar 2005 03:45:52 +0000 (GMT) Received: from mail.ntmk.ru (mail.ntmk.ru [217.114.241.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id C82D943D54 for ; Fri, 25 Mar 2005 03:45:50 +0000 (GMT) (envelope-from boris@ntmk.ru) Received: from boris.nikom.ru ([10.1.16.195]) by mail.ntmk.ru with esmtp (Exim 4.44) id 1DEflc-0002eS-Sv; Fri, 25 Mar 2005 08:45:48 +0500 Message-ID: <4243896C.3070901@ntmk.ru> Date: Fri, 25 Mar 2005 08:45:48 +0500 From: Boris Kovalenko User-Agent: Mozilla Thunderbird 1.0 (X11/20050314) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kelly Yancey , freebsd-net@freebsd.org References: <4242785F.2070700@ntmk.ru> <20050324134142.K5907@gateway.posi.net> In-Reply-To: <20050324134142.K5907@gateway.posi.net> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: bge and checksums X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2005 03:45:52 -0000 Kelly Yancey wrote: Hello! Arghh... my fault. Thinked that should be documented with bge manual. This really fixes my problem, thanks! > > Have you tried the -txcsum option described in ifconfig(8)? > > Kelly > > -- > Kelly Yancey - kbyanc@{posi.net,FreeBSD.org} - kelly@nttmcl.com > FreeBSD, The Power To Serve: http://www.freebsd.org/ > -- With respect, Boris From owner-freebsd-net@FreeBSD.ORG Fri Mar 25 18:53:39 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8366E16A4CE for ; Fri, 25 Mar 2005 18:53:39 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43AD143D48 for ; Fri, 25 Mar 2005 18:53:39 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j2PIrcZr013787 for ; Fri, 25 Mar 2005 10:53:38 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j2PIrcaK013786 for net@freebsd.org; Fri, 25 Mar 2005 10:53:38 -0800 Date: Fri, 25 Mar 2005 10:53:38 -0800 From: Brooks Davis To: net@freebsd.org Message-ID: <20050325185338.GA13646@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Subject: -I.. in sbin/ifconfig/Makefile X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2005 18:53:39 -0000 --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Does anyone know why there is a -I.. in CFLAGS in the ifconfig Makefile? It seems to build just fine without it both by hand and with buildworld. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --LQksG6bCIzRHxTLp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCRF4yXY6L6fI4GtQRAqElAJ4ihoWZsFYjdAqCc+VIILhcgBVrogCg2mRR 45gGtaf0pPD6tvCi1ijnZo0= =eVGd -----END PGP SIGNATURE----- --LQksG6bCIzRHxTLp-- From owner-freebsd-net@FreeBSD.ORG Fri Mar 25 21:22:50 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8849116A4CE for ; Fri, 25 Mar 2005 21:22:50 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE01C43D58 for ; Fri, 25 Mar 2005 21:22:49 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j2PLMmKV048200; Fri, 25 Mar 2005 23:22:49 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 87899-15; Fri, 25 Mar 2005 23:23:09 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j2PLMm3Y048197 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 25 Mar 2005 23:22:48 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id j2PLN4g7099868; Fri, 25 Mar 2005 23:23:04 +0200 (EET) (envelope-from ru) Date: Fri, 25 Mar 2005 23:23:04 +0200 From: Ruslan Ermilov To: Brooks Davis Message-ID: <20050325212303.GC71185@ip.net.ua> References: <20050325185338.GA13646@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bKyqfOwhbdpXa4YI" Content-Disposition: inline In-Reply-To: <20050325185338.GA13646@odin.ac.hmc.edu> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: net@freebsd.org Subject: Re: -I.. in sbin/ifconfig/Makefile X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2005 21:22:50 -0000 --bKyqfOwhbdpXa4YI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 25, 2005 at 10:53:38AM -0800, Brooks Davis wrote: > Does anyone know why there is a -I.. in CFLAGS in the ifconfig Makefile? > It seems to build just fine without it both by hand and with buildworld. >=20 If the contents of .depend file doesn't change without it, just drop it. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --bKyqfOwhbdpXa4YI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCRIE3qRfpzJluFF4RAjeJAJwNzLYB9APu5J9X/n9ex/oaL3upRwCeLr8i T5EnMQ78+vEZ2Hj8pQMA9Zg= =KhIO -----END PGP SIGNATURE----- --bKyqfOwhbdpXa4YI-- From owner-freebsd-net@FreeBSD.ORG Fri Mar 25 21:23:39 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7F2A16A4CE for ; Fri, 25 Mar 2005 21:23:39 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id F014E43D2F for ; Fri, 25 Mar 2005 21:23:38 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j2PLNcxu048217; Fri, 25 Mar 2005 23:23:38 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 87939-12; Fri, 25 Mar 2005 23:23:59 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j2PLNbhL048214 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 25 Mar 2005 23:23:37 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id j2PLNwUu001578; Fri, 25 Mar 2005 23:23:58 +0200 (EET) (envelope-from ru) Date: Fri, 25 Mar 2005 23:23:58 +0200 From: Ruslan Ermilov To: Brooks Davis Message-ID: <20050325212358.GD71185@ip.net.ua> References: <20050325185338.GA13646@odin.ac.hmc.edu> <20050325212303.GC71185@ip.net.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="at6+YcpfzWZg/htY" Content-Disposition: inline In-Reply-To: <20050325212303.GC71185@ip.net.ua> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: net@freebsd.org Subject: Re: -I.. in sbin/ifconfig/Makefile X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2005 21:23:39 -0000 --at6+YcpfzWZg/htY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 25, 2005 at 11:23:03PM +0200, Ruslan Ermilov wrote: > On Fri, Mar 25, 2005 at 10:53:38AM -0800, Brooks Davis wrote: > > Does anyone know why there is a -I.. in CFLAGS in the ifconfig Makefile? > > It seems to build just fine without it both by hand and with buildworld. > >=20 > If the contents of .depend file doesn't change without it, > just drop it. >=20 Please also, while here, remove -g from CFLAGS. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --at6+YcpfzWZg/htY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCRIFuqRfpzJluFF4RAvgDAKCFkhzj0aUzVWSRFrHKotO8JraoPACfd8dM Rzb2v8nARp+Nflqe5PJyfwM= =Sj3Q -----END PGP SIGNATURE----- --at6+YcpfzWZg/htY-- From owner-freebsd-net@FreeBSD.ORG Sat Mar 26 10:20:50 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6555E16A4CE for ; Sat, 26 Mar 2005 10:20:50 +0000 (GMT) Received: from relay01.pair.com (relay01.pair.com [209.68.5.15]) by mx1.FreeBSD.org (Postfix) with SMTP id DAA5843D1D for ; Sat, 26 Mar 2005 10:20:49 +0000 (GMT) (envelope-from silby@silby.com) Received: (qmail 2519 invoked from network); 26 Mar 2005 10:20:48 -0000 Received: from unknown (HELO localhost) (unknown) by unknown with SMTP; 26 Mar 2005 10:20:48 -0000 X-pair-Authenticated: 209.68.2.70 Date: Sat, 26 Mar 2005 04:20:47 -0600 (CST) From: Mike Silbersack To: Robert Gogolok In-Reply-To: <4240A09E.9070007@web.de> Message-ID: <20050326041751.X30898@odysseus.silby.com> References: <42401B2A.70308@web.de> <4240A09E.9070007@web.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-net@freebsd.org Subject: Re: FIN_WAIT_2 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Mar 2005 10:20:50 -0000 On Tue, 22 Mar 2005, Robert Gogolok wrote: > http://lists.freebsd.org/mailman/htdig/freebsd-ipfw/2003-May/000204.html is > the same problem or similar problem. > Forgot to mention thge important fact I use ipfw, bad bad... > > With > # sysctl net.inet.ip.fw.dyn_keepalive=0 > the FIN_WAIT_2 connections cleaned all up within a few minutes. > > > Robert You probably shouldn't use ipfw stateful rules to protect FreeBSD; I don't think it provides any benefit (unless you're using some concurrent connection limiting or something.) OTOH, blocking inbound packets to ports which are supposed to be unused and using stateful rules to allow outbound connections is certainly a good idea. Mike "Silby" Silbersack