Click to See Complete Forum and Search --> : No 'lo' device. Can not connect to 127.0.0.1/localhost.


movEAX_444
07-31-2005, 10:51 AM
When I try to use nmap on myself, I get the following error:

# nmap -sS localhost

Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-07-31 10:48 EDT
WARNING: Could not determine what interface to route packets through to 127.0.0.1, changing ping scantype to ICMP ping only
pcap_open_live: ioctl: No such device
There are several possible reasons for this, depending on your operating system:
LINUX: If you are getting Socket type not supported, try modprobe af_packet or recompile your kernel with SOCK_PACKET enabled.
*BSD: If you are getting device not configured, you need to recompile your kernel with Berkeley Packet Filter support. If you are getting No such file or directory, try creating the device (eg cd /dev; MAKEDEV <device>; or use mknod).
SOLARIS: If you are trying to scan localhost and getting '/dev/lo0: No such file or directory', complain to Sun. I don't think Solaris can support advanced localhost scans. You can probably use "-P0 -sT localhost" though.


Running ifconfig shows me wlan0 (I am using ndiswrapper), and no other devices. "ifconfig lo up" doesn't give me /dev/lo0 either.

This all worked fine before I started using wifi. I have ndiswrapper modprobed in one of my start up scripts (/etc/rc.d/local) -- That is also where I put the command to connect to my AP.

Hayl
07-31-2005, 10:59 AM
I don't have a /dev/lo or a /dev/wlan0 or anything like that either... I think that network devices don't appear the same way other devices do.

what do you have in /etc/hosts ?

<edit>Just double-checked and yes strangely enough, there are no nodes in /dev for network devices under linux</edit>

movEAX_444
07-31-2005, 11:56 AM
/etc/hosts has "127.0.0.1 localhost.a localhost" (default)

nmap 127.0.0.1 does not work either. Same error.

Parcival
08-01-2005, 04:30 AM
Does it show up in this output? (i.e. it should to be an active device)

ifconfig -a

movEAX_444
08-01-2005, 08:03 AM
It shows up in ifconfig -a but not in ifconfig.