LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-13-2005, 03:40 AM   #1
zWaR
Member
 
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Rep: Reputation: 35
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!
 
Old 10-13-2005, 11:03 PM   #2
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
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
 
Old 10-14-2005, 12:26 AM   #3
zWaR
Member
 
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Original Poster
Rep: Reputation: 35
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...
 
Old 10-14-2005, 01:13 AM   #4
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
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
 
Old 10-16-2005, 11:46 PM   #5
zWaR
Member
 
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Original Poster
Rep: Reputation: 35
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-16-2005 at 11:47 PM.
 
Old 10-17-2005, 12:16 AM   #6
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
connecting using pppoe dialer. cedance Linux - Networking 1 05-14-2005 11:12 AM
Message from syslogd@localhost localhost kernel: Disabling IRQ #21 ylts Linux - Hardware 0 02-26-2005 08:01 AM
problems connecting over PPPoE bulldogzerofive Linux - Newbie 3 10-30-2004 12:32 AM
adsl-status can't read pppoe PID file with rp-pppoe program setup Smarvy Linux - Newbie 2 03-13-2004 11:35 PM
samba issues connecting to localhost dopper Linux - Software 5 09-12-2003 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration