LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-04-2006, 09:12 PM   #1
yzh999
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Rep: Reputation: 0
Problem with Apache + PPPoE in Linux


I'm trying to establish a web server using Apache through a PPPoE connection in a Linux environment(Redhat 9).

I have a static IP on my PPPoE connection.
Now my Apache can response http request when I use the browser built in Linux on the same machine as Apache, but no response from other computers on the Internet.

Please note that I can ping my static IP and get response from other computers.

Any hint or detailed instructions would be appreciated.

Thanks in advance.
 
Old 08-05-2006, 02:27 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
What URL are you using from the internet to access your web server - is it something like http://www.yourdomain.com/? Is your domain name registered and delegated to a DNS (or dynamic DNS) provider? Is your httpd.conf set up to use this domain? Does it work when you user http:/123.123.123.123/, ie your IP address from the internet?

What errors are you getting - can you copy/paste the errors here please?
 
Old 08-05-2006, 04:47 PM   #3
yzh999
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you for replying my post!

I registered my domian name, but haven't link it to my static IP yet, so i just tried to visit my web server using the IP address(like 123.123.123.123) from a XP computer, and i was using Mozilla Firefox as the browser. The error message i got is like "no response form the server, may be the server is too busy or u don't have connection to the internet", and obviously this message can help me too much.

I know a lot computer knowledges in theory coz i'm a computer science major, but i don't have too much experience with Redhat and Apache. I set up the Apache using the GUI in Linux and i didn't edit the httpd.conf derictly.
 
Old 08-05-2006, 05:03 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
OK, you've confirmed your Apache install on the Linux box because you can see your web page. Since you've also confirmed the network is working with ping, it could be your firewall not allowing the connection to port 80. That error about no response from server says it's not responding to connection attempts. On your XP box can you try telnet 123.123.123.123 80 (using the real IP address for your Linux box) to see if you can connect to the web server?

If that also fails... It's been a while, but I think the Redhat firewall scripts are in /etc/rc.d/init.d and called something like iptables or firewall. You can try temporarily turning off the firewall by running service iptables stop (or firewall, etc - depends what it's called) and re-trying the connection. If that works the firewall needs to be modified to allow connections to port 80.

I'd recommend emailing the moderators (reporting your own post should do it) and asking for this thread to be moved to the Redhat forum http://www.linuxquestions.org/questi...splay.php?f=31. That way there's more chance that someone currently using Redhat (instead of my rusty memory) will be reading your post.
 
Old 08-05-2006, 10:47 PM   #5
yzh999
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Original Poster
Rep: Reputation: 0
It worked! Thank you VERY much! Now could you give me some hint on how to modify the iptables? any document i can find in this forum can help me? Thank you again!
 
Old 08-05-2006, 11:08 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
Running the following as root will allow new and established connection to port 80 on your Linux box. They also allow established connections outbound from port 80 on your Linux box. I've assumed your network interface is eth0, just change it to whatever interface you need. Redhat has firewall save and restore commands, so once you've got this working you should save the rules so that they are correctly restored when the system re-boots.
Code:
iptables -t filter -A INPUT  -i eth0 -p TCP --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -t filter -A OUTPUT -o eth0 -p TCP --sport 80 -m state --state ESTABLISHED     -j ACCEPT
Unfortunately I don't have a Redhat box I can confirm all of this on... sorry about that
 
  


Reply

Tags
apache, linux, pppoe, redhat


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
PPPOE/xDSL any alternatives for rp-pppoe package.. deepclutch Linux - Software 2 02-04-2006 09:59 PM
pppoe & pppoe-server warning (solved) ggalvan Slackware 0 02-04-2006 05:58 AM
PPPoE Serious Problem Fordor Linux - Networking 0 07-14-2005 02:31 AM
pppoe problem morrisset Linux - Networking 14 06-05-2004 05:39 PM
adsl-status can't read pppoe PID file with rp-pppoe program setup Smarvy Linux - Newbie 2 03-13-2004 11:35 PM


All times are GMT -5. The time now is 06:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration