bridged wlan/ether still the same

Julian Elischer julian at elischer.org
Fri Apr 2 07:54:04 UTC 2010


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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"



More information about the freebsd-net mailing list