News: This forum is now permanently frozen.
Pages: [1]
Topic: ALIX used as wireless repeater  (Read 1892 times)
« on: June 17, 2009, 20:12:54 »
mheartwood *
Posts: 14

Hi,

I'm trying to use an ALIX 2D0 (2ethernet, 2miniPCI) as a repeater. I have an ALIX 2D1 (3ethernet, 1miniPCI) as well which I've used for testing my configuration. In both cases, the access point is on OPT2 and is bridgesd with WAN. vr0 is LAN in both cases.

When I have it set-up on the 2D1 which uses vr1 as WAN, it works fine. When I put the same on the 2D0 which uses ath0 as WAN, it no longer works. In both cases, it works fine LAN (vr0).

What is going on here and how do I fix it?

Here's the configuration for the 2D1:

<?xml version="1.0"?>
<m0n0wall>
   <version>1.8</version>
   <lastchange>1245281454</lastchange>
   <system>
      <hostname>heartnet</hostname>
      <domain>bonnecomm.net</domain>
      <dnsallowoverride/>
      <username>admin</username>
      <password></password>
      <timezone>America/Toronto</timezone>
      <time-update-interval>300</time-update-interval>
      <timeservers>time.nrc.ca</timeservers>
      <webgui>
         <protocol>http</protocol>
         <port/>
      </webgui>
      <dnsserver>192.168.102.1</dnsserver>
   </system>
   <interfaces>
      <lan>
         <if>vr0</if>
         <ipaddr>192.168.1.1</ipaddr>
         <subnet>24</subnet>
         <media/>
         <mediaopt/>
      </lan>
      <wan>
         <if>vr1</if>
         <media/>
         <mediaopt/>
         <ipaddr>192.168.102.9</ipaddr>
         <subnet>22</subnet>
         <gateway>192.168.102.1</gateway>
         <spoofmac/>
      </wan>
      <opt1>
         <if>vr2</if>
         <descr>OPT1-ETH</descr>
         <ipaddr/>
         <subnet>31</subnet>
         <bridge>lan</bridge>
         <enable/>
      </opt1>
      <opt2>
         <if>ath0</if>
         <wireless>
            <standard>11g</standard>
            <mode>hostap</mode>
            <ssid>HeartNet</ssid>
            <channel>11</channel>
            <wep/>
            <wpa>
               <mode>none</mode>
               <version>1</version>
               <cipher>tkip</cipher>
               <psk/>
               <radius>
                  <server/>
                  <authport/>
                  <acctport/>
                  <secret/>
               </radius>
            </wpa>
         </wireless>
         <descr>OPT2-AP</descr>
         <ipaddr/>
         <subnet>31</subnet>
         <bridge>wan</bridge>
         <enable/>
      </opt2>
   </interfaces>
   <staticroutes/>
   <pppoe/>
   <pptp/>
   <dyndns>
      <type>dyndns</type>
      <username/>
      <password/>
      <host/>
      <mx/>
      <server/>
      <port/>
   </dyndns>
   <dnsupdate/>
   <dhcpd>
      <lan>
         <enable/>
         <range>
            <from>192.168.1.100</from>
            <to>192.168.1.199</to>
         </range>
      </lan>
   </dhcpd>
   <pptpd>
      <mode/>
      <nunits>16</nunits>
      <redir/>
      <localip/>
      <remoteip/>
   </pptpd>
   <dnsmasq>
      <enable/>
   </dnsmasq>
   <snmpd>
      <syslocation/>
      <syscontact/>
      <rocommunity>public</rocommunity>
   </snmpd>
   <diag/>
   <bridge/>
   <syslog/>
   <nat/>
   <filter>
      <rule>
         <type>pass</type>
         <interface>opt2</interface>
         <source>
            <any/>
         </source>
         <destination>
            <any/>
         </destination>
         <descr>OPT2-PassThru</descr>
      </rule>
      <rule>
         <type>pass</type>
         <descr>Default LAN -&gt; any</descr>
         <interface>lan</interface>
         <source>
            <network>lan</network>
         </source>
         <destination>
            <any/>
         </destination>
      </rule>
      <rule>
         <type>pass</type>
         <descr>Default IPsec VPN</descr>
         <interface>ipsec</interface>
         <source>
            <any/>
         </source>
         <destination>
            <any/>
         </destination>
      </rule>
      <rule>
         <type>pass</type>
         <interface>wan</interface>
         <source>
            <any/>
         </source>
         <destination>
            <any/>
         </destination>
         <descr>WAN-PassThru</descr>
      </rule>
   </filter>
   <shaper/>
   <ipsec/>
   <aliases/>
   <proxyarp/>
   <wol/>
</m0n0wall>

Here's the configuration for the 2D0:

<?xml version="1.0"?>
<m0n0wall>
   <version>1.8</version>
   <lastchange>1245282718</lastchange>
   <system>
      <hostname>heartnet</hostname>
      <domain>bonnecomm.net</domain>
      <dnsallowoverride/>
      <username>admin</username>
      <password>$1$2xGLA75j$W/jiJc00HYBZX7kFjxjQv0</password>
      <timezone>America/Toronto</timezone>
      <time-update-interval>300</time-update-interval>
      <timeservers>time.nrc.ca</timeservers>
      <webgui>
         <protocol>http</protocol>
         <port/>
      </webgui>
      <dnsserver>192.168.102.1</dnsserver>
   </system>
   <interfaces>
      <lan>
         <if>vr0</if>
         <ipaddr>192.168.1.1</ipaddr>
         <subnet>24</subnet>
         <media/>
         <mediaopt/>
      </lan>
      <wan>
         <if>ath0</if>
         <media/>
         <mediaopt/>
         <spoofmac/>
         <wireless>
            <standard>11g</standard>
            <mode>BSS</mode>
            <ssid>BonneComm2</ssid>
            <channel>0</channel>
            <wep/>
            <wpa>
               <mode>none</mode>
               <version>1</version>
               <cipher>tkip</cipher>
               <psk/>
               <radius>
                  <server/>
                  <authport/>
                  <acctport/>
                  <secret/>
               </radius>
            </wpa>
         </wireless>
         <ipaddr>192.168.102.9</ipaddr>
         <subnet>22</subnet>
         <gateway>192.168.102.1</gateway>
      </wan>
      <opt1>
         <if>vr1</if>
         <descr>OPT1-ETH</descr>
         <ipaddr/>
         <subnet>31</subnet>
         <bridge/>
      </opt1>
      <opt2>
         <if>ath1</if>
         <wireless>
            <standard>11g</standard>
            <mode>hostap</mode>
            <ssid>HeartNet</ssid>
            <channel>11</channel>
            <wep>
            </wep>
            <wpa>
               <mode>none</mode>
               <version>1</version>
               <cipher>tkip</cipher>
               <psk/>
               <radius>
                  <server/>
                  <authport/>
                  <acctport/>
                  <secret/>
               </radius>
            </wpa>
         </wireless>
         <descr>OPT2-AP</descr>
         <ipaddr/>
         <subnet>31</subnet>
         <bridge>wan</bridge>
         <enable/>
      </opt2>
   </interfaces>
   <staticroutes/>
   <pppoe/>
   <pptp/>
   <dyndns>
      <type>dyndns</type>
      <username/>
      <password/>
      <host/>
      <mx/>
      <server/>
      <port/>
   </dyndns>
   <dnsupdate/>
   <dhcpd>
      <lan>
         <enable/>
         <range>
            <from>192.168.1.100</from>
            <to>192.168.1.199</to>
         </range>
      </lan>
   </dhcpd>
   <pptpd>
      <mode/>
      <nunits>16</nunits>
      <redir/>
      <localip/>
      <remoteip/>
   </pptpd>
   <dnsmasq>
      <enable/>
   </dnsmasq>
   <snmpd>
      <syslocation/>
      <syscontact/>
      <rocommunity>public</rocommunity>
   </snmpd>
   <diag/>
   <bridge/>
   <syslog/>
   <nat/>
   <filter>
      <rule>
         <type>pass</type>
         <interface>opt2</interface>
         <source>
            <any/>
         </source>
         <destination>
            <any/>
         </destination>
         <descr>OPT2-PassThru</descr>
      </rule>
      <rule>
         <type>pass</type>
         <descr>Default LAN -&gt; any</descr>
         <interface>lan</interface>
         <source>
            <network>lan</network>
         </source>
         <destination>
            <any/>
         </destination>
      </rule>
      <rule>
         <type>pass</type>
         <descr>Default IPsec VPN</descr>
         <interface>ipsec</interface>
         <source>
            <any/>
         </source>
         <destination>
            <any/>
         </destination>
      </rule>
      <rule>
         <type>pass</type>
         <interface>wan</interface>
         <source>
            <any/>
         </source>
         <destination>
            <any/>
         </destination>
         <descr>WAN-PassThru</descr>
      </rule>
   </filter>
   <shaper/>
   <ipsec/>
   <aliases/>
   <proxyarp/>
   <wol/>
</m0n0wall>


« Last Edit: June 18, 2009, 02:07:52 by mheartwood »
« Reply #1 on: June 18, 2009, 03:04:34 »
mheartwood *
Posts: 14

The problem seems to be that you can't bridge anything to a wireless WAN and expect to have it work. Is this a bug or expected behaviour?

When I put WAN on vr1, I can bridge OPT2-AP(ath0 or ath1 in AP mode) onto it and it works like a charm.
When I put WAN on ath0, I get no message warning me that it won't work. I can bridge OPT1-ETH (vr1) to it but it doesn't work.

Is this a bug or expected behaviour? It's certainly not behaviour I expected so I think I'll report it as a bug.
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines