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 1MF8cX-0006uZ-E7 for garchives@archives.gentoo.org; Fri, 12 Jun 2009 15:24:45 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D99E7E04ED; Fri, 12 Jun 2009 15:24:43 +0000 (UTC) Received: from india533.server4you.de (india533.server4you.de [85.25.151.41]) by pigeon.gentoo.org (Postfix) with ESMTP id 7E74DE04ED for ; Fri, 12 Jun 2009 15:24:43 +0000 (UTC) Received: from [192.168.0.17] (pD95FD9E1.dip.t-dialin.net [217.95.217.225]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by india533.server4you.de (Postfix) with ESMTP id 6BC6C770901 for ; Fri, 12 Jun 2009 17:24:42 +0200 (CEST) Message-ID: <4A32733A.60306@smash-net.org> Date: Fri, 12 Jun 2009 17:24:42 +0200 From: =?ISO-8859-1?Q?Norman_Rie=DF?= User-Agent: Thunderbird 2.0.0.21 (X11/20090430) 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Atheros kernel driver and my wireless access point setup 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> <49bf44f10906120617u24a302baoee7faef7f33173fb@mail.gmail.com> In-Reply-To: <49bf44f10906120617u24a302baoee7faef7f33173fb@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: b1a30035-831d-4485-a10e-7499b07be930 X-Archives-Hash: 00bfd4b056fab0828e547434e11a57f8 Grant schrieb: >>>> Leave INTERFACES blank. As you keep the networks seperated, hostapd does >>>> 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 adress >>>> to >>>> your device however is defined by the other nics. In your case eth1. >>>> >>>> >>> I don't have eth1 set up yet. For now I just want eth0 on the WAN and >>> wlan0 on the LAN. eth0 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 only >> ip adress your device has. >> If you do not spezify a local ip adress on eth1, you will not have any local >> 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=( "dhcp" ) > mode_wlan0=( "master" ) > essid_wlan0=( "networkname" ) > channel_wlan0=( "11" ) > config_wlan0=( "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. shorewall 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 > > Well, madwifi-ng is a matured project with an insanely great featureset. ath5k ap mode till this day is not activated in the kernel. You have to activate it with a code patch, the gentoo rc-script can not cope with it yet. hostapd needs to be a new version and has to initialize the device itself. Of course you can not expect the same features and easy to use behaviour from such an experimental software. You seem to have a working setup, which suits your needs. Unless you have a serious reason i would not change a running and supported system.