From owner-freebsd-net@FreeBSD.ORG Fri May 29 19:44:07 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 9E0381065674 for ; Fri, 29 May 2009 19:44:07 +0000 (UTC) (envelope-from sebastian.mellmann@net.t-labs.tu-berlin.de) Received: from mail.net.t-labs.tu-berlin.de (mail.net.t-labs.tu-berlin.de [130.149.220.252]) by mx1.freebsd.org (Postfix) with ESMTP id 319B68FC14 for ; Fri, 29 May 2009 19:44:07 +0000 (UTC) (envelope-from sebastian.mellmann@net.t-labs.tu-berlin.de) Received: from [192.168.1.2] (e179073085.adsl.alicedsl.de [85.179.73.85]) by mail.net.t-labs.tu-berlin.de (Postfix) with ESMTP id 05663701BA88; Fri, 29 May 2009 21:44:05 +0200 (CEST) Message-ID: <4A203B08.7010807@net.t-labs.tu-berlin.de> Date: Fri, 29 May 2009 21:44:08 +0200 From: Sebastian Mellmann User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Jason DiCioccio , freebsd-net@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: 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 19:44:07 -0000 > Is 192.168.7.1 the freebsd gateway? Because that would explain it. > You need to send to the linux box's IP > > No, 192.168.7.1 is the linux box. Cheers, Sebastian > On 2009-05-29, 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. >> >> tcpdump em0: >> 11:42:36.334798 IP (tos 0x0, ttl 32, id 129, offset 0, flags [none], proto >> UDP (17), length 46) 192.168.5.1.9 > 192.168.7.1.9: [no cksum] UDP, length >> 18 >> 11:42:36.334802 IP (tos 0x0, ttl 32, id 129, offset 0, flags [none], proto >> UDP (17), length 46) 192.168.5.1.9 > 192.168.7.1.9: [no cksum] UDP, length >> 18 >> 11:42:36.334805 IP (tos 0x0, ttl 32, id 129, offset 0, flags [none], proto >> UDP (17), length 46) 192.168.5.1.9 > 192.168.7.1.9: [no cksum] UDP, length >> 18 >> 11:42:36.334807 IP (tos 0x0, ttl 32, id 129, offset 0, flags [none], proto >> UDP (17), length 46) 192.168.5.1.9 > 192.168.7.1.9: [no cksum] UDP, length >> 18 >> 11:42:36.334810 IP (tos 0x0, ttl 32, id 129, offset 0, flags [none], proto >> UDP (17), length 46) 192.168.5.1.9 > 192.168.7.1.9: [no cksum] UDP, length >> 18 >> 11:42:36.334813 IP (tos 0x0, ttl 32, id 129, offset 0, flags [none], proto >> UDP (17), length 46) 192.168.5.1.9 > 192.168.7.1.9: [no cksum] UDP, length >> 18 >> 11:42:36.334816 IP (tos 0x0, ttl 32, id 129, offset 0, flags [none], proto >> UDP (17), length 46) 192.168.5.1.9 > 192.168.7.1.9: [no cksum] UDP, length >> 18 >> 11:42:36.334819 IP (tos 0x0, ttl 32, id 129, offset 0, flags [none], proto >> UDP (17), length 46) 192.168.5.1.9 > 192.168.7.1.9: [no cksum] UDP, length >> 18 >> 11:42:36.334821 IP (tos 0x0, ttl 32, id 129, offset 0, flags [none], proto >> UDP (17), length 46) 192.168.5.1.9 > 192.168.7.1.9: [no cksum] UDP, length >> 18 >> 11:42:36.334824 IP (tos 0x0, ttl 32, id 129, offset 0, flags [none], proto >> UDP (17), length 46) 192.168.5.1.9 > 192.168.7.1.9: [no cksum] UDP, length >> 18 >> >> tcpdump em1: >> nothing. >> >> >> Is there any sysctl variable that needs to be set? >> >> Connectivity between the boxes is definately working (tested with ping, >> iperf etc.). >> >> >> Regards, >> Sebastian >> >> [1] http://www.linuxfoundation.org/en/Net:Pktgen >> >> _______________________________________________ >> 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" >> >> > >