If this is your first visit, be sure to
check out the Forum Rules by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

AWUS036H wifi-usb adapter can not ping to D-LINK DIR-615 router

Hi
I am new to BT5R3 OS and i just installed it into a VMware node just to find possible security issues of my private LAN.
I already knwo that when BT5 is running through a VM it can not access implicity the on-board wifi antena of my laptop and that's why i bought a usb-wifi adaptor which is the AWUS036H from ALFA Networks (Also i have to mention that my wifi router is the D-LINK DIR-615 ).
Now, before starting using the BT5 OS i first checked the status of the wifi-usb adapter by firslty using it through a Windows 7 OS. As i expected the usb-wifi adapter connected succesfully to my router and i pinged succesfuly the default gateway of my router(the known 192.168.0.1 url address ). Moreoever when i was inserting to my router's control panel - through my desktop - i could see my wifi's MAC address. So far so good.

Unfortunately the problems started when i tried the usb-wifi adaptor through the BT5 OS.
In simple words after i logged in i connected the wifi adaptor and then accessed the pre-installed drivers. I brought up the wifi' s interface and after scanning to find which APs are on the air, i tried to connect to mine AP - of my router - called "My Lab". Well here start the problems.
Even though i am succesfully connected to my AP (i checked that both on my router's control panel as on the BT5 OS), i wasn't able not only to ping my router in it's default gateway - 192.168.0.1 - but also i couldn't even connect to my router's control panel login page.
I have been seeking for an answer the last 5 days but i wasn't able to find as solution to my problem.
Thus i do please if anyone can help me solve this problem, please give me detailed instructions and guidance because - as i said above - i am new to the BT5 OS and i have a small knowledge generally of the UNIX systems.

Trying to help you understand better - if i can - the status of my BT5 when i connect my wifi-usb adapter i am giving you below the details of specific commands i executed.

Re: AWUS036H wifi-usb adapter can not ping to D-LINK DIR-615 router

Some AP's or Routers have an option to accept or drop pings, you might want to chack that. Also have the option to block ssh, ftp and telnet ports to avoid access from the outside...

So I strongly suggest to read the user's manual to see the ping configuration feature if available in your router.

I see no problem in the connection, I can see you are very close to the router or almost no signal blocking issues, you have a 100% quality link, you have a valid IP assigned..Everything seems to be just fine.

Another option is to use nmap, it will tell you if pings are droped or denied by router...

nmap -A -T5 192.168.0.1 if no message on the ping, then try:
nmap -sP -T4 192.168.0.1 See what is the output.
or
nmap -sC -sV -sS -T5 -O --osscan-guess 192.168.0.1

Re: AWUS036H wifi-usb adapter can not ping to D-LINK DIR-615 router

Hi Debian.
Thank you for your reply.
Well firstly let me say that i followed your advice and executed the commands you supplied me but - unfortunatelly - with no ending my problem.
So i decided to make a clean install. Meaning that i made my laptop dual boot having both Windows 7 and BT5R3 OSes.
Thus, i started from the beginning. After i logged in, i connected my usb-wifi adapter, brougth up the AWUS036H interface, scanned for possible APs, found and connected to my own (As mentioned in my previous post i gave it the essid "My Lab"). Alas, once again the same problems were still present.
In simple words, even though i was connecting succesfully, i wasn't able to ping my wi-fi rooter. Moreover - smth i missed to mention before - my rooter's control panel was other times showing that i was connected by presenting my adaptor's MAC and IP, but other times it was only showing my adaptor's MAC without any IP or with the word "Unkown" in the IP field

I was just about to give up when i thought that maybe i could use my laptop's on-board wi-fi adaptor. And that exactly i did. I switched on my on-board adaptor, brought up the "new" wi-fi interface wlan1, connected succesfully and "voila" pinged succesfully my rooter. Moreover, i logged in succesfully to my router's control panel.
So i am wandering: What really went wrong with the AWUS036H adaptor ?
I mean that, if it was just a problematic adaptor which i was the lucky one to buy then ,it shouldn't be able to connect to my rooter not only throuth the BT os but also not even through the Windows os (Through which as i mentioned before it connects and pings succesfully). I really can't figure it out. And the funny thing in this case is that i bouth specifically this usb wi-fi adapter because it is mentioned as one of the best adaptors to use with BT.

Also i don't really know how to update the AWUS036H drivers.
And one last thing.. AWUS036H came with a cd with its updated drivers. Well when i mounted the disc into BT the os wasn't able to read them.
So if i am not asking too much, could you please give me the proper command to update BT's drivers for the AWUS036H adaptor ? (I always run the apt-get update command but i don't know if it is - also - updating the drivers of this adaptor).

Re: AWUS036H wifi-usb adapter can not ping to D-LINK DIR-615 router

Hi maverik35.
Once again i want to thank you for your precious advice.
Well .. today i have some different news... I don't know how but when i tried once again to use the AWUS036H wifi-usb adapter this time all worked fine. Or at least almost all.
In few words after i logged in to BT i connected the adapter, brought up the wlan0 interface, made a scan, connected to my "open" AP and everything went fine.
I was able not only to ping my router but also to connect to its control-panel page.
I really didn't do anything different than before so i don't know what made the change this time...(If it works in the coming days then its just a miracle).
However, as i said above, there is a slight issue that concerns me. That is when i tried to change the wlan0 interface's IP address with the ifconfig command, well even though BT responded back with the new IP address for my interface, my router kept on showing the old one (The one that DHCP gave to BT when it connected to it) even though i refressed the control panel's page.
So once again i find myself in front an another "strange" behavior.
I mean that when BT forces the change of its IP address wouldn't router respond by accepting it ? So why does the router keeps on showing me by my old IP address ?
In order to give the best image i can, i am providing below the commands i run and the additional responds.

One last question: In the commands you supplied me by the word "iface" do you mean my interface wlan0 or is it to be executed exactly as you wrote it ? I am asking because due to this "miracle" connection of today, i didn't know whether to run them or not. So i decided to wait for your instructions.
As an act of gratitude i have to say that your advice and help was and is my only guidance facing these difficulties and i am gratefully oblidged.

Re: AWUS036H wifi-usb adapter can not ping to D-LINK DIR-615 router

Yes, the "iface" is your interface, eth0, wlan0, wlan1, etc. As to the commands, you are changing the ip address to another one, this way it will be indexed to your mac address...Is just to try to know if dhcp server is doing right. As to the second command: route add ...you are defining the default gateway route...You need to do that every time you change your address on the fly...

Are you using VM, HDD install or USB?...I've read this type of behavior of Alfa 36H in VM. DVD live and HDD installation runs like a charm everytime..tested....

Re: AWUS036H wifi-usb adapter can not ping to D-LINK DIR-615 router

Hi maverik35

Once again your precious advice guides me throuth the "cloudy" path of BackTarack

Well you are rigth. I have this kind of problems due to the fact that i am running BT through VMware. However, i have similar problems with AWUS036H to the clean installation of BT too.
I was wondering if the latter one has to do with the fact that i run the 64-bit version instead of the 32-bit version (that i run through the VMware). Also, saddly, i have to mention that the problems started again.... i don't know maybe it's due to the router's behavior.

I would like to ask you about the dhcp server you mentioned in your post.
Specifically i just saw a tutorial on how to create an evil twin AP with virtual fishing. In this tutorial the "attacker" firstly downloaded the dhcp3 server in order to implement his attack.
Well, i thougth that dhcp3 server was already installed in BT. If yes then why is there the need to download the dhcp3 server ?
The link in which i saw the tutorial is the: http://www.youtube.com/watch?v=R6I0GeEh22c.

I' ll keep on trying with the AWUS036H wifi adaptor and i will post the news (Just hope this time are going to be good news and also permanent )

Re: AWUS036H wifi-usb adapter can not ping to D-LINK DIR-615 router

As to the VMware, I would not use a VMware to install BT5, If I want 100% functional, "no-hassles" BT5, I use the live DVD or HDD install..

Have tried Live DVD running from Virtual Machine?..I have it that way in my Debian with VM, running live DVD iso from VM..But not installed as such in VM..Try it..

As to the Alfa 36H, my friend, it runs like a charm in DVD live and HDD installation...But again, try running DVD live iso as such in VM...

32 or 64 bit distros, I have not read about any issues due to the architecture in BT5r3...I always use 32 bit version when VM but as Live DVD, not installed in VM. In HDD Installs I use 64bit if my proccessor support 64bit architecture.