Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Apr 2010 12:35:24 +0900
From:      Randy Bush <randy@psg.com>
To:        freebsd-net <freebsd-net@FreeBSD.org>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   bridged wlan/ether still the same
Message-ID:  <m27hoqo7b7.wl%randy@psg.com>

next in thread | raw e-mail | index | archive | help
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|
	       |                |
	       `----------------'

/etc/rc.conf

    ppp_enable=YES
    ppp_mode=dedicated
    ppp_nat=YES
    ppp_profile=iij
    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"
    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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m27hoqo7b7.wl%randy>