Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bug in net tools SOLVED
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
xtsephane68
n00b
n00b


Joined: 04 May 2006
Posts: 14

PostPosted: Mon May 08, 2006 3:23 am    Post subject: Bug in net tools SOLVED Reply with quote

IF you ESSID contains a non ascii Char replace it with _
.
IE whatthefuck-sillymodem give key_whatthefuck_sillymodem

Otherwise the net script will fail to parse your wireless config file




The scripts are bugged when your ESSID contains a non asci char mine
is fiak-7229 and the script always returs an error,
the issue of keys with space is adressed but not the one of ESSID with non aalpha char.


Probably the script writer parsed some stuff like key[alpha]+\s+ ..
I tried to protect my key with stuff like key_"fiak-7229"
and with ' no way.


Finally i did it by hand ..

iwconfig eth0 essid fiak-98F887 key MYSUPERSECRETKEY
ifconfig eth0 192.168.1.103 netmask 255.255.255.0 broadcast 192.168.1.255
route add default gw 192.168.1.1


Last edited by xtsephane68 on Mon May 08, 2006 11:26 pm; edited 3 times in total
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Mon May 08, 2006 4:21 am    Post subject: Reply with quote

Hopefully you'll stick something in Bugzilla. https://bugs.gentoo.org/
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon May 08, 2006 10:24 am    Post subject: Reply with quote

Actually the script writer (me) told you to replace non ascii vars with the _ character

So the key I-am^a(dumbass)! is refereneced like so

Code:
key_I_am_a_dumbass_="s:yourkeyhere"

_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
xtsephane68
n00b
n00b


Joined: 04 May 2006
Posts: 14

PostPosted: Mon May 08, 2006 11:23 pm    Post subject: Reply with quote

Thanks it works ...

mode_eth0="managed"
adhoc_essid_eth0="fiak-98F887"
key_fiak_98F887="Mysecretkey enc open"

# iwlist eth0 scan
eth0 Scan completed :
Cell 01 - Address: 00:03:C9:92:52:BA
ESSID:"fiak-98F887"
Protocol:IEEE 802.11bg
Mode:Master
Channel:1
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Quality=94/100 Signal level=-33 dBm
Extra: Last beacon: 5376ms ago
root@freakinggentoohost : etc/init.d/net.eth0 restart
* Stopping eth0
* Bringing down eth0
* Shutting down eth0 ... [ ok ]
* Starting eth0
* Configuring wireless network for eth0
* eth0 connected to "fiak-98F887" at 00:03:C9:92:52:BA
* in managed mode (WEP enabled - open)
* Bringing up eth0
* 192.168.1.103 [ ok ]
* Adding routes
* default gw 192.168.1.1 ...

Destination Passerelle Genmask Indic Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
03:20:04 root@ # ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.37
--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
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