From owner-freebsd-net@FreeBSD.ORG Fri Apr 2 07:54:03 2010 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 E386B106566C for ; Fri, 2 Apr 2010 07:54:03 +0000 (UTC) (envelope-from julianelischer@gmail.com) Received: from mail-qy0-f199.google.com (mail-qy0-f199.google.com [209.85.221.199]) by mx1.freebsd.org (Postfix) with ESMTP id 94FA98FC12 for ; Fri, 2 Apr 2010 07:54:03 +0000 (UTC) Received: by qyk37 with SMTP id 37so2052017qyk.8 for ; Fri, 02 Apr 2010 00:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=h7oIDY+1UdMvDwnsJbgYTYHVccfpq1M8MW0HSHmkRzw=; b=PCMJxJ7lt7rFquep7Q0/kZshzyCLVZoc+J7xcw4ayxry4l9k6BUjTYVjLV5wdMH7oE QcC6KHffhm/sxNPIddvpm3VWKRrVDgBUMBW1aB7mzAo8Ep5HBN8sqQt7zVAabkYNNZte itrkLMHH/GjjN3qNjnukLnJE0Xo/2SSVaZZJo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=R6yAUUck+0cP6r2EVT8gG6M33XHpbzNmfznhnYwGN6Zu2nUc3Te0+vmCupJlfMHXfJ CPOdg3/Ib+mqRYH31vV/We9T0MM+SNx9nXIH21Is4vq8bmNx3MtLKBopBlR/+53VH9nk 1blsm/vNqoZUjbrokPicYHGmtjtxN+19zUoi4= Received: by 10.229.212.146 with SMTP id gs18mr3191105qcb.90.1270193396433; Fri, 02 Apr 2010 00:29:56 -0700 (PDT) Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by mx.google.com with ESMTPS id f5sm634743qcg.20.2010.04.02.00.29.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 02 Apr 2010 00:29:55 -0700 (PDT) Sender: Julian Elischer Message-ID: <4BB59CFC.90101@elischer.org> Date: Fri, 02 Apr 2010 00:30:04 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Randy Bush References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net , FreeBSD Current Subject: Re: bridged wlan/ether still the same 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, 02 Apr 2010 07:54:04 -0000 On 4/1/10 8:35 PM, Randy Bush wrote: > i have a year old 8 soekris system i am about to upgrade. it is pppoe > externally, and has a bridged natted wireless/ether internal net. > > .----------------. > | | > | b --wlan0| > | r | 192.168.0.0/24 > ext iij | i --- vr1| LAN hosts, > PPP/NAT ---|vr0--- d | DHCP Clients > WAN | g --- vr2| ... > | e | > | 0 --- vr3| > | | > `----------------' ok this is similar to my setup in some ways. but the picture is wrong, remember that vr0 is not (or at least should not be) part of the bridge. the real picture is: > .----------------------------------. > | | > | b --wlan0| > | r | 192.168.0.0/24 > ext iij | i --- vr1| LAN hosts, > PPP/NAT ---|vr0[PPPoE][ppp]tun0--[R]-d | DHCP Clients > WAN | g --- vr2| ... > | e | > | 0 --- vr3| > | | > `----------------------------------' where [R] is the IP forwarding code (i.e routing not bridging) > > /etc/rc.conf > > ppp_enable=YES > ppp_mode=dedicated > ppp_nat=YES > ppp_profile=iij my profile is pppoe which is shown below It's not completely different from yours but seems to work > hostapd_enable=YES > wlans_ath0=wlan0 > create_args_wlan0="wlanmode ap mode 11g channel 11 up" > cloned_interfaces=bridge0 > ifconfig_bridge0="192.168.0.1 addm vr1 addm vr2 addm vr3 addm wlan0 addm wlan1 up" I can't help you withthe bridge part but it should be ok I think. > ifconfig_vr1=up > ifconfig_vr2=up > ifconfig_vr3=up > > /etc/hostap.conf > > interface=wlan0 > ctrl_interface=/var/run/hostapd > logger_syslog=-1 > logger_syslog_level=0 > ssid=rgnet-crypt > country_code=JP > hw_mode=g > wpa=2 > wpa_key_mgmt=WPA-PSK > wpa_passphrase=notreally > wpa_pairwise=CCMP TKIP > > /etc/ppp/ppp.conf entry > > iij: > set device PPPoE:vr0 > set MRU 1454 # NTT suggests this value > set MTU 1454 > accept CHAP > enable lqr > add default HISADDR > nat enable yes > set authname nope > set authkey peon pppoe: set device PPPoE:vr1 set redial 10.3 10000 set speed 115200 #not really intersting set timeout 0 # Never time out disable dns disable ipv6cp disable sroutes set authname heyitsme set authkey really? set login enable lqr set ifaddr X.X.X.X/32 0.0.0.0/0 255.255.255.255 0.0.0.0 add default HISADDR # Add a (sticky) default route set cd 5 > > is this still gonna work? is this a reasonable way to do this? i ask > because, if it does not, i will not have usable connectivity to get help > fixing it :) > > randy > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"