From owner-freebsd-net@FreeBSD.ORG Fri May 29 20:29:54 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16DE2106566C for ; Fri, 29 May 2009 20:29:54 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id C4A088FC22 for ; Fri, 29 May 2009 20:29:53 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MA8i8-0004Zs-JA for freebsd-net@freebsd.org; Fri, 29 May 2009 20:29:52 +0000 Received: from mulderlab.f5.com ([205.229.151.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 May 2009 20:29:52 +0000 Received: from atkin901 by mulderlab.f5.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 May 2009 20:29:52 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-net@freebsd.org From: Mark Atkinson Followup-To: gmane.os.freebsd.devel.net Date: Fri, 29 May 2009 13:29:40 -0700 Lines: 50 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: mulderlab.f5.com User-Agent: KNode/0.99.01 Sender: news Subject: Re: pktgen udp doesn't work over freebsd gateway X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 29 May 2009 20:29:54 -0000 Sebastian Mellmann wrote: > Hello everyone! > > I'm using 'pktgen' [1] under linux to generate packets. > > My topology looks like this: > > (linux-box #1) <---> (em0 - freebsd-gateway - em1) <---> (linux-box #2) > > I want to send packets from linux-box #1 to linux-box #2 over the free-bsd > gateway. > The problem is that I can see the packets on em0, but not on em1. > I assume there's a configuration missing on the BSD machine, because it > seems it just drops the packets hence doesn't forward them to linux-box > #2. > > rc.conf: > gateway_enable="YES" > keymap="german.iso" > sshd_enable="YES" > firewall_enable="YES" > firewall_type="OPEN" > firewall_logging="YES" > > Default option for ipfw is to accept packets. >Connectivity between the boxes is definately working (tested with ping, >iperf etc.). Which connectivity is this? Through the freebsd box? If you can ping and get a reply through the box then there's something definitely up with the packets you are generating. I can see one problem with the packet trace you sent is the IP id is not changing. I don't use ipfw, but perhaps it cares about the udp checksum. Are you capturing all the packets? Is the freebsd box returning a icmp- error for your destination/packets? Try without the firewall and see if it works. -- Mark Atkinson atkin901@yahoo.com (!wired)?(coffee++):(wired);