Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems setting authmode in /etc/conf.d/net
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Jansenator
n00b
n00b


Joined: 15 Mar 2007
Posts: 5

PostPosted: Thu Mar 15, 2007 2:20 am    Post subject: Problems setting authmode in /etc/conf.d/net Reply with quote

Hi All,

I've got my WEP encrypted wireless working just doing it by hand like this:

iwconfig ath0 key key <the key>
iwpriv ath0 authmode 1
iwconfig ath0 essid <my id>
dhcpcd ath0

Great! Now I want to just do it through /etc/init.d/net.ath0 at startup. Well I could without WEP, but using WEP the
/etc/init.d/net.ath0 script complains about not being able to set the authorization mode. Here is my /etc/conf.d/net so you
can see how I am trying to do the smae thing as done above but then through the script:

modules=( "iwconfig" )
config_ath0=( "dhcp" )
essid_ath0="..."
mode_ath0="managed"
channel_ath0="1"
key_...="s:... enc open"

iwpriv_<essid here>=( "set authmode=1" )

----


When I do it like this, dhcpcd keeps hanging. But as said doing it by hand everything is ok. So I am thinking it must
be the iwpriv thing given that this is the only difference, i.e. starting the /etc/init.d/net.ath0 script complains about not being
able to set it.


I am a beginner at linux, and I my feeling is I am just getting some small thing wrong with the syntax for
setting the authorization mode. Any help will be much appreciated.

greeting,

Jansenator.
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Thu Mar 15, 2007 12:55 pm    Post subject: Reply with quote

Hi. I just got this working automatically for my AP which also uses madwifi-ng. I have it configured in master mode, but I do use wep and did have a bit of trouble with it. The relevant part of /etc/conf.d/net on my router looks like

mode_ath0="master" # 'managed' is the default, you won't need a mode setting
essid_ath0="311g" # change for your network
key_311g="s:xxxxx" # enc method defaults to restricted, forcing clients to use WEP
config_ath0=("192.168.2.1") #you would want dhcp probably


I recommend simplifying yours a bit. Trying restricted WEP (the default) instead of open and get rid of the mode setting all together.
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum