Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
10-13-2005, 04:40 AM
|
#1
|
Member
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219
Rep:
|
Connecting to localhost using PPPoE
Hello!
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!).
Please help if you can!
|
|
|
10-14-2005, 12:03 AM
|
#2
|
Member
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Rep:
|
cat /etc/hosts
see if there
"127.0.0.1 localhost"
if dont have add it
and what is ur hostname
try proceed lynx -head -source http://"ur_hostname"
make sure web server is running 
|
|
|
10-14-2005, 01:26 AM
|
#3
|
Member
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219
Original Poster
Rep:
|
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... 
|
|
|
10-14-2005, 02:13 AM
|
#4
|
Member
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Rep:
|
so u mean once u type http://127.0.0.1 in the browser then ur apache server come up ?
i think try look at /sbin/ifconfig see is there got 127.0.0.1
then check ur apache config under Port 80
off hostname lookup
if got LISTEN IP remove the ip
use - NameVirtualHost *:80
then do apachectl configtest then if ok restart apache then retry at ur browser
|
|
|
10-17-2005, 12:46 AM
|
#5
|
Member
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219
Original Poster
Rep:
|
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.
Last edited by zWaR; 10-17-2005 at 12:47 AM.
|
|
|
10-17-2005, 01:16 AM
|
#6
|
Member
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Rep:
|
hello zWaR
could u gip more info on this below . all ( paste the output)
#/sbin/ifconfig
#netstat -r
#cat /etc/hosts
#cat /etc/resolv.conf
this info is need to help u more further also easy for others give opinion
if posible do those command while u are connected to the Net
|
|
|
All times are GMT -5. The time now is 07:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|