From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MF6dM-0003Qn-Hf for garchives@archives.gentoo.org; Fri, 12 Jun 2009 13:17:28 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1F120E05A8; Fri, 12 Jun 2009 13:17:27 +0000 (UTC) Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.154]) by pigeon.gentoo.org (Postfix) with ESMTP id EFDD8E05A8 for ; Fri, 12 Jun 2009 13:17:26 +0000 (UTC) Received: by yw-out-1718.google.com with SMTP id 5so8362774ywm.46 for ; Fri, 12 Jun 2009 06:17:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=BU5IcTdQRZvYacrfhi7RWKutxFYRMfqs/910PQ7USzg=; b=vi5HLLFuBaLz77sCHJnATK/zKthPQ0V9s7GqARFDynAF7LLCbMi0wsk7TSOAF8Yslw AR2CmWC3w2qjdOwtKMLb9UoL9ZLe/58GXJ1Oz+AU8uCqkKtjZfUHkRvyp9fUuoDmIqPY iO5C+5iCh83nZVxx2/CexeLdSG0Fx7gajbCbo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=tVgMQL9d4nj12uaVz4Iq+R64dvq5/embli7Krmu86vnWQV3T0PxueY78SbC56kBgvu OkDtSTzFcQIs5EmVLYD1Jw/HjxQUw31dV5z40sf5wzg7c/0QeKjPJfTYh7KrqbMkZFJq fzu2M1WAU+OfrF6n+yCut6h95pqKj3QMN2vtE= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.90.116.15 with SMTP id o15mr3168444agc.76.1244812646672; Fri, 12 Jun 2009 06:17:26 -0700 (PDT) In-Reply-To: <4A322F86.5000700@smash-net.org> References: <000606ca6620ef53cdcd6e935ccf6c4b.squirrel@jasoncarson.ca> <4A2F8CEF.6070600@smash-net.org> <4A3011EA.9000908@smash-net.org> <49bf44f10906111513x4f177e37g6570a512256bee0a@mail.gmail.com> <4A319419.4000502@smash-net.org> <49bf44f10906111638y3725fe35s146a4c2f25ea3db7@mail.gmail.com> <4A31A461.20700@smash-net.org> <49bf44f10906111904k46fd0fcbra0742098340f1f89@mail.gmail.com> <4A322F86.5000700@smash-net.org> Date: Fri, 12 Jun 2009 06:17:26 -0700 Message-ID: <49bf44f10906120617u24a302baoee7faef7f33173fb@mail.gmail.com> Subject: Re: [gentoo-user] Atheros kernel driver and my wireless access point setup From: Grant To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: bacbe175-8964-4bb7-8a17-520a49e96e95 X-Archives-Hash: c77effd0491a684fc35bb18f8637dd23 >>> Leave INTERFACES blank. As you keep the networks seperated, hostapd doe= s >>> not >>> depend on any other devices. >>> wlan0 is initialized by hostapd. So you are good to go. >>> The accesspoint itself, so to say the wlan part does not have any IP >>> adress, >>> at it is merely a connectionpoint for normal wlan systems. The IP adres= s >>> to >>> your device however is defined by the other nics. In your case eth1. >>> >> >> I don't have eth1 set up yet. =A0For now I just want eth0 on the WAN and >> wlan0 on the LAN. =A0eth0 dhcp's from my ISP, but I need to specify a >> local IP address for my LAN somewhere right? >> >> > > wlan0 in master mode does _not_ have an IP adress. So far eth0 is the onl= y > ip adress your device has. > If you do not spezify a local ip adress on eth1, you will not have any lo= cal > ip adress. I'm very confused. I've been running wlan0 in master mode for about 3 years with IP 192.168.0.1 and no eth1. Here was my entire /etc/conf.d/net: config_eth0=3D( "dhcp" ) mode_wlan0=3D( "master" ) essid_wlan0=3D( "networkname" ) channel_wlan0=3D( "11" ) config_wlan0=3D( "192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0= " ) All I'm trying to do is switch wireless drivers from madwifi-ng to the in-kernel ath5k. With madwifi-ng, I started net.wlan0, started hostapd, and started shorewall and everything worked perfectly. Now with ath5k, net.wlan0 won't start in master mode. This causes 2 problems: 1. I can't specify a local IP for wlan0 in /etc/conf.d/net like I've been doing for years. 2. shorewall checks whether or not net.wlan0 has started because wlan0 is the only device in zone loc, so shorewall won't start. So I'm required to have an eth1 because I'm switching from madwifi-ng to ath5k? That doesn't seem right. >>> For the shorewall business, you have to tell, what you want to do with >>> shorewall exactely. >>> I dare say you have a wlan zone as your AP and a loc zone with eth1. As= i >>> am >>> using bridging i can not tell you if and how shorewall responds. >>> But if you want to keep eth1 an wlan0 seperate, what so you need >>> shorewall >>> for? >>> >> >> Since the AP system is also the router, I use shorewall for NAT, port >> closing, port forwarding, and packet shaping. =A0shorewall gives an >> empty loc zone error if I don't have net.wlan0 started because wlan0 >> is the only loc interface. >> >> - Grant >> >> > > You can let shorewall depend on hostapd, so your shorewall starts after > hostapd and your wlan0. > Check the "depend()" section in shorewalls rc-script. I'm confused here too. shorewall seems to be checking whether or not net.wlan0 has started, not whether the wlan0 interface is up. Trying to start shorewall after hostapd has started results in the same error described above because net.wlan0 hasn't been started. - Grant