I want to build up an wifi accesspoint with my laptop.
1.
I've installed the firewall form Alien Bobs efg
http://connie.slackware.com/~alien/efg.
1.1 choose the "gateway" option
wlan0
ip 10.1.1.1
netmask 255.255.255.0
and so on...
Manual set up
Code:
ifconfig wlan0 down
iwconfig wlan0 mode managed/ad-hoc
ifconfig wlan0 up
iwconfig wlan0 essid test
iwconfig wlan0 channel 1
iwconfig wlan0 key off
okay i think thats right!?
now I have here a script like this:
Code:
#!/bin/sh
IFACE="wlan0"
IADDR="10.1.1.1"
NMASK="255.255.255.0"
BCAST=`/bin/ipmask $NMASK $IADDR | sed 's/ .*//'`
/sbin/ifconfig $IFACE $IADDR broadcast $BCAST netmask $NMASK
/sbin/ifconfig $IFACE $IADDR up
Is it neccessary to use it like this ?
#ifconfig
to check
Code:
wlan0 Link encap:Ethernet HWaddr 00:19:e0:8b:ed:35
inet addr:10.1.1.1 Bcast:10.1.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:990 errors:0 dropped:0 overruns:0 frame:0
TX packets:473 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:324508 (316.9 KiB) TX bytes:106391 (103.8 KiB)
#iwconfig
Code:
wlan0 IEEE 802.11bg ESSID:"test"
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
I tryed to set up the "ad-hoc" mode and the "managed" mode, but doesn't get access.
please help me !
And a happy new year !