Connection mode of the 802.11 Wireless Protocol. Ad Hoc is typically used for a link between two computers and I think it can be used to make an "Ad-Hoc" network of 2+ computers as well.
Can setup an Ad-Hoc link to main PC from my Notepad but; Can see a AP but cannot access via TCP/IP or anything else Can Not use Internet just times out Drakconnect (the Internet Wizard) will not setup TCP/IP on Wireless crashes Do I use Samba to access wifi network?
apradar shows me the AP ethereal show packets of UDP and other are transmitted and received but no TCP/IP changed hostname, now ethereal doing ARP to correct IP 192.168.0.1 I know of dhcpd but it will not run!
The wifi card's a Netgear WG511.
http://www.netgear.com/
I have a Dell Notepad Inspiron 2650
Intel Chip
running Mandrake 10 KDE 3.2
Kernel 2.6.3-7mdk
Card Chip is Prism54 firmware Intersil ISL3890 ESSID: "$@4@M"
In Root (SU)
mkdir /usr/lib/hotplug/firmware/ chmod 777 /usr/lib/hotplug/firmware/ cp /home/leftfieldnz/Document/software/wifi/isl3890 /usr/lib/hotplug/firmware/
modprobe prism54 iwconfig
From there you can follow the normal procedure for setting the ip address etc.
Then startup airsnort, change the driver to 'other' and hit start.
To switch back to non-promisc. do: iwconfig eth1 mode managed
And here is the content of my
cat /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 BOOTPROTO=dhcp ONBOOT=yes HWADDR=00:09:5b:c2:c7:1a MII_NOT_SUPPORTED=yes WIRELESS_MODE=Ad-hoc WIRELESS_ESSID=deb1 WIRELESS_ENC_KEY="" NEEDHOSTNAME=no
http://kbserver.netgear.com/support_details.asp?dnldID=785
Since about 15 people a month seem to download them, and someone even requested them via email here are the 'new' WG511 drivers uncabbed.
http://www.e-kyle.ca/stuff/WG511v210_uncabbed.zip
I draw your attention to this relevent post.
http://www.linuxant.com/pipermail/driverloader/2003q4/000280.html
This could still be an issue. It doesn't seem to affect me though.
and instructions on my last post here
http://www.linuxant.com/pipermail/driverloader/2003q4/000279.html
Setting up the pcmcia card under Linux was harder than setting up the networking on my wife's mac powerbook, but not by too much. I had to download the firmware and place it in /usr/lib/hotplug/firmware, then use iwconfig to set the WEP key, set up the default route, and I was away!
smbpasswd -a leftfieldnz kedit /etc/wlan/wlancfg-DEFAULT
add contents and amend to;
kedit /etc/wlan/wlancfg-deb1
ifconfig eth1 inet 192.168.0.10 netmask 255.255.255.0 broadcast 192.168.0.255 route add default gw 192.168.0.1 netmask 255.255.255.0 eth1 iwconfig eth1 ESSID "deb1" mode ad-hoc channel 5 /etc/pcmcia/network start eth1
route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.0.3 * 255.255.255.255 UH 1 0 0 sl0 default 192.168.0.1 255.255.255.0 UG 0 0 0 eth1 192.168.0.0 * 255.255.255.0 U 0 0 0 eth1 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default * 0.0.0.0 U 1 0 0 sl0
ifconfig eth1 up ifup eth1 ping 192.168.0.1
iwlist eth1 scanning
- eth1 Scan completed
Cell 01 - Address: 72:6F:EE:8D:F7:C6
ESSID:"deb1" Mode:Ad-Hoc Encryption key:off Frequency:2.432GHz Quality:178/0 Signal level:-54 dBm Noise level:-232 dBm
samba status hostname lynx www.si.edu
apradar == Timer started AP Scan == Main::ScanAPs on interface 0x813c3a0 AP Scan requested. going into select loop Warning : Device eth1 has been compiled with version 16 of Wireless Extension, while we are using version 15. Some things may be broken...
- eth1 Scan completed
NEW AP from accesspoint scan
essid.length 4 ESSID:"deb1"
Mode:Ad-Hoc 1 Encryption key:off Frequency:2.432GHz
quality: -53
kwifimanager drakconnect airsnort snort ethereal lynx
kedit /etc/hosts
was
127.0.0.1 localhost 192.168.0.1 mordor.localdomain mordor
changed to
127.0.0.1 mordor localhost.localdomain localhost mordor
kedit /etc/sysconfig/network HOSTNAME=mordor NETWORKING=yes GATEWAY=192.168.0.1
kedit /etc/resolv.conf search mshome.net nameserver 192.168.0.1
hostname -a hostname -s hostname -d hostname -f restart X ctrl+alt+back space
kedit /etc/sysconfig/network kedit /etc/pcmcia/config kedit /etc/wlan/wlancfg-DEFAULT kedit /etc/wlan/wlancfg-deb1 chmod 777 /etc/wlan/wlancfg-deb1 kedit /etc/wlan/wlan.conf kedit /etc/hosts kedit /etc/hosts
You should see a line
127.0.0.1 localhost
we need to add a host on a new line
192.168.0.1 mordor.localdomain mordor
kedit /etc/host.conf kwrite /etc/sysconfig/network-scripts/ifcfg-eth1 kwrite /etc/sysconfig/networking/default/ifcfg-eth1 kwrite /etc/sysconfig/network-scripts/ifcfg-eth0 kwrite /etc/sysconfig/networking/default/ifcfg-eth0 kedit /etc/resolv.conf kedit /etc/modules.conf alias eth1 prism54
cat /proc/net/dev Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
lo: 37168 502 0 0 0 0 0 0 37168 502 0 0 0 0 0 0
eth0: 0 0 0 0 0 0 0 0 378 5 0 0 0 0 5 0 eth1: 37814 178 0 0 0 0 0 0 5144 38 0 0 0 0 0 0
sl0: 0 0 0 0 0 0 0 0 16613 221 0 0 0 0 0 0
sit0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
cat /proc/net/wireless Inter-| sta-| Quality | Discarded packets | Missed | WE
face | tus | link level noise | nwid crypt frag retry misc | beacon | 16
eth1: 0000 196. 203. 232. 0 0 0 0 0 0
cat /etc/pcmcia/network.opts iwspy eth1 iwspy eth1
- eth1 Statistics collected
- 00:00:00:00:28:B2 : Quality:0 Signal level:0 Noise level:0 Link/Cell/AP : Quality:220/0 Signal level:-52 dBm Noise level:-255 dBm (updated) Typical/Reference : Quality:0/0 Signal level:-80 dBm Noise level:-256 dBm
netstat -r cat /proc/filesystems cat /etc/printcap |more
ethereal ethtool stunnel DHCP zcip tmdns yacc bison airsnort apradar
iwconfig eth1 mode monitor airsnort
On windows PC
route add -net 192.168.0.10 netmask 255.255.255.0 broadcast 192.168.0.255 eth1
Assuming someone else called the IRQ
zcip uses obsolete (PF_INET,SOCK_PACKET) device eth1 entered promiscuous mode device eth1 left promiscuous mode NET: Registered protocol family 10 Disabled Privacy Extensions on device c035fe60(lo) eth0: Setting promiscuous mode. eth0: Setting promiscuous mode. IPv6 over IPv4 tunneling driver eth1: no IPv6 routers present eth0: no IPv6 routers present device eth1 entered promiscuous mode device eth1 left promiscuous mode
ftp server: config wu-ftpd on dhclient eth1 nenstat -uan arp -a
ifconfig eth1 up online dhcpd eth1 touch /dir/file
Create File
Wardriving snort
mkdir /etc/sysconfig/networking/default chmod 777 /etc/sysconfig/networking/default ls /etc/sysconfig/networking/default
then add ifcfg-eth1
cardctl ident
- Socket 0
- product info: "Intersil", "ISL3890", "-", "-" manfid: 0x000b, 0x3890 function: 254 ((null))
kedit /etc/pcmcia/config
add above
iwlist eth1 frequency iwlist eth1 scanning samba status samba start ping 192.168.0.1 route -v ifconfig eth1 192.168.0.55 ifconfig eth1 up route add default gw mordor eth1 iwlist eth1 scanning iwconfig eth1 ESSID "" iwconfig eth1 mode ad-hoc iwconfig iwconfig --help iwconfig eth1 ESSID "deb1" iwconfig eth1 channel 5 iwconfig eth1 freq 2.437g ifup eth1 drakconnect kwifimanager kedit /etc/wlan/wlancfg-DEFAULT kedit /etc/wlan/wlancfg-deb1 chmod 777 /etc/wlan/wlancfg-deb1 kedit /etc/wlan/wlan.conf cat /proc/net/dev cat /proc/net/wireless hostname hostname -i kedit /etc/hosts kedit /etc/host.conf kwrite /etc/sysconfig/network-scripts/ifcfg-eth1
kernel source /usr/src/linux-2.6.3-7mdk pcmcia-cs-3.2.5
kwrite /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 BOOTPROTO=dhcp ONBOOT=yes HWADDR=00:09:5b:c2:c7:1a MII_NOT_SUPPORTED=yes WIRELESS_MODE=Ad-hoc WIRELESS_ESSID=deb1 WIRELESS_ENC_KEY="" NEEDHOSTNAME=no
ifstatus -v eth1
airsnort cat /proc/net/dev kwifimanager cat /var/log/boot.log drakconnect ifstatus eth1 eth1: link beat detected
did alias
kedit /etc/modules.conf alias eth1 prism54 modprobe prism54
kedit /etc/resolv.conf
to point at your DNS server.
kwrite /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 BOOTPROTO=dhcp ONBOOT=yes MODE=Managed KEY=05C7408757DAFD7EF66529F03C CHANNEL=5
knoppix 3.4 see card but does not start correctly
green light means good connection blinking green light means trying to connect amber light means data transmission
lynx www.si.edu
do not think I need ndiswrapper or driveloader!
went out and tried it, got several hotspots but nothing connected! installed prism2 tools then airsnort airsnort
airsnort http://rpmfind.net/linux/RPM/cooker/10.1/i586/media/contrib/airsnort-0.2.4a-1mdk.i586.html
The laptop's an old Gateway PIII 550, running Mandrake 10.0 official. Kernel 2.6.3-7mdk.
The card's a Netgear WG511.
One caveat; this card is running the prism chipset (or at least, it's using the prism54 driver) Some people have reported that Netgear have changed chipsets on the WG511 a couple of times, so you can't guarantee that all WG511 cards will work.
One other problem; the prism54 driver doesn't support WPA yet. WEP works fine tho', and WPA is coming Real Soon Now(tm) :-)
BTW, the firmware is for the Intersil ISL3890. Googleing (sp?) for that should get a download site, or email me and I can email the one I downloaded. It's only about 90k.
Install the LATEST version of libpcap. Please make sure that you have removed any old version of pcap that you may have installed.
Make sure you have gtk+-2.2 installed as AirSnort? is a gui application. You will also need gtk+-devel in order for autogen.sh to work.
Perform the following steps
tar -xzf airsnort-0.2.3a.tar.gzcd airsnort-0.2.3a./autogen.shmake
Poof you're done. The airsnort executable is in the airsnort-0.2.3a/src subdirectory, do with it what you will. There are some man pages in airsnort-0.2.3a/man
Requires
iwconfig lo no wireless extensions.
eth0 no wireless extensions.
eth1 IEEE 802.11b/g ESSID:"deb1" Nickname:"mordor"
Mode:Ad-Hoc Channel:5 Cell: 72:6F:EE:8D:F7:C6 Bit Rate:11Mb/s Tx-Power=31 dBm Sensitivity=20/200 Retry min limit:8 RTS thr:2347 B Fragment thr:2346 B Encryption key:off Link Quality:157/0 Signal level:-53 dBm Noise level:-1 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0
sl0 ESSID:off/any Nickname:""
NWID:8 Channel:80 Access Point: FF:BF:21:00:00:00 Bit Rate=-1.07375e+06kb/s Tx-Power=-1073746380 dBm Sensitivity=8/0 Retry:on RTS thr=-1073746380 B Fragment thr=-1073746380 B Encryption key:0000-0000-0000-0000-0000-0000-0000-0000-0000-0000-0000-0000-0000-0000-0000-0000 Power Management:on
BTW sl0 is my modem
Vendor: Harris Semiconductor Bus: PCI Bus identification: 1260:3890:1385:4800 Location on the bus: 3:0:0 Description: D-Links DWL-g650 A1 Module: prism54 Media class: NETWORK_OTHER
When you run ifconfig, you might not see your wireless device. Use the command 'iwconfig' to show the wireless devices that are connected and set to use. First things first. You need to set an IP for this device. If you do not set one before setting the wireless options, you will not get a link.
ifconfig <device> <IP address>
Now to set it to link up with the wireless access point. once again we'll use iwconfig to set the ESSID, which needs to match the SSID of your AP or Router to link to.
iwconfig eth1 essid MYWIRELESS
Generally this should link you to the wireless AP. If it doesn't, you might try to set the wireless device a bit more. Some devices will not take some of these options.
I'm having problems getting my netgear wg511 to work. I compiled the drivers from ISL3890 fine and changed /etc/sysconfig/pcmcia to contain PCIC=i82365 & PCMCIA=yes. However, when I modprobe islpci_cb I get the errors
Try changing your PCIC=i82365 line to "PCIC=yenta_socket"
ifconfig eth0 Link encap:Ethernet HWaddr 00:08:74:E1:80:B1
UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:10 Base address:0x3000
eth1 Link encap:Ethernet HWaddr 00:09:5B:C2:C7:1A
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:131 errors:0 dropped:0 overruns:0 frame:0 TX packets:372 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:22527 (21.9 Kb) TX bytes:24780 (24.1 Kb) Interrupt:10
eth1:9 Link encap:Ethernet HWaddr 00:09:5B:C2:C7:1A
inet addr:127.255.255.255 Bcast:127.255.255.255 Mask:255.0.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:76 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:4617 (4.5 Kb) Interrupt:10
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:450 errors:0 dropped:0 overruns:0 frame:0 TX packets:450 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41709 (40.7 Kb) TX bytes:41709 (40.7 Kb)
sl0 Link encap:Serial Line IP
inet addr:10.0.0.2 P-t-P:10.0.0.3 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:76 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:10 RX bytes:0 (0.0 b) TX bytes:4617 (4.5 Kb)
host -l mordor ;; connection timed out; no servers could be reached host -T
allows TCP/IP
Bill Rosoman
leftfieldnz@NOSPAM.yahoo.co.uk
3 pages link to AdHoc:
lib/BlockParser.php:505: Notice: Undefined property: _tight_top (...repeated 2 times)