Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a web server directly connected to a ADSL modem. So the connection is PPPoE and works without a problem. I'm having just one issue, as i want to connect to localhost, for example using http://localhost or http://127.0.0.1, it doesn't work. The server is 100% ok, because the connection works if i use a proxy. Why is this so?? If i run rc.inet1, which enables IP retrieving using dhcp (i'm using Slackware 10.1) i'm albe to connect to localhost, but the Internet connection doesn't work any more.
I'm really new to PPPoE, so i have no idea how to fix that (proxies are not actually a fix!).
I have localhost added in /etc/hosts/, web server is running, iptables are down.
The connection to localhost is still not working.... (yes i'm talking about ordinary browser connection (port 80))
Oh, i noticed something else! Nmap dumps this message, as i try to scan ports on 127.0.0.1
Code:
$ nmap 127.0.0.1
Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2005-10-14 07:17 CEST
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.
QUITTING!
I looked in /usr/src/linux/.config for SOCK_PACKET and didn't find it!
As suggested i tried to use `-P0 -sT localhost`, that's the result:
Code:
$ nmap -P0 -sT localhost
Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2005-10-14 07:18 CEST
All 1663 scanned ports on localhost (127.0.0.1) are: filtered
Nmap run completed -- 1 IP address (1 host up) scanned in 345.168 seconds
But connection to localhost is still not working...
Routers, i did what you suggested, but it didn't work.
I tested many proxies, all working ones opened the pages on my server, so i believe apache conf is ok. http://127.0.0.1 is also working if i start dhcpcd (but then my i-net connection is gone), so the problem has to do something with PPPoE configuration (maybe there's a kernel module missing or something...) and not with apache conf files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.