From: Grant <emailgrant@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Atheros kernel driver and my wireless access point setup
Date: Fri, 12 Jun 2009 06:17:26 -0700 [thread overview]
Message-ID: <49bf44f10906120617u24a302baoee7faef7f33173fb@mail.gmail.com> (raw)
In-Reply-To: <4A322F86.5000700@smash-net.org>
>>> 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
next prev parent reply other threads:[~2009-06-12 13:17 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-09 5:21 [gentoo-user] Atheros kernel driver and my wireless access point setup Jason Carson
2009-06-09 5:46 ` Jason Carson
2009-06-09 6:33 ` Dale
2009-06-09 7:15 ` Jason Carson
2009-06-09 12:57 ` Stroller
2009-06-09 21:15 ` Jason Carson
2009-06-09 21:27 ` Jason Carson
2009-06-09 7:45 ` Neil Bothwick
2009-06-09 5:50 ` Mick
2009-06-09 6:12 ` Jason Carson
2009-06-09 10:41 ` Norman Rieß
2009-06-09 21:12 ` Jason Carson
2009-06-10 0:35 ` Norman Rieß
2009-06-10 4:38 ` Jason Carson
2009-06-10 10:37 ` Norman Rieß
2009-06-10 18:20 ` Jason Carson
2009-06-10 20:04 ` Norman Rieß
2009-06-10 21:38 ` Jason Carson
2009-06-10 23:33 ` Norman Rieß
2009-06-10 23:51 ` Jason Carson
2009-06-11 1:34 ` Norman Rieß
2009-06-11 2:03 ` Jason Carson
2009-06-11 22:13 ` Grant
2009-06-11 23:32 ` Norman Rieß
2009-06-11 23:38 ` Grant
2009-06-11 23:59 ` [gentoo-user] wireless access point setup - bridging vs. routing (Was: Atheros kernel driver) Stroller
2009-06-12 2:10 ` Grant
2009-06-12 0:42 ` [gentoo-user] Atheros kernel driver and my wireless access point setup Norman Rieß
2009-06-12 2:04 ` Grant
2009-06-12 10:35 ` Norman Rieß
2009-06-12 13:17 ` Grant [this message]
2009-06-12 15:24 ` Norman Rieß
2009-06-12 15:38 ` Grant
2009-06-12 15:56 ` Stroller
2009-06-12 16:21 ` Norman Rieß
2009-06-12 20:27 ` Grant
2009-06-12 15:47 ` Stroller
2009-06-12 22:16 ` Mick
2009-06-12 5:46 ` Graham Murray
2009-06-12 7:39 ` Matt Causey
2009-06-12 10:53 ` Norman Rieß
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49bf44f10906120617u24a302baoee7faef7f33173fb@mail.gmail.com \
--to=emailgrant@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox