LinuxQuestions.org
Help answer threads with 0 replies.
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 05-23-2004, 01:23 PM   #1
Silly22
LQ Newbie
 
Registered: Mar 2002
Location: Edmonton, AB
Distribution: Mandrake 10.2, Ubuntu 6.10
Posts: 26

Rep: Reputation: 15
Suddenly unable to connect to my web server and my ftp server. HELP!


Ok, I've had a Mandrake Linux 9.2 machine running for the past 5-7 months with no problems. I was able to access my Apache httpd server on port 80, and my proftpd server on port 21 no problem until May 20 last week.

I use shorewall to manage the iptables rules, and I had the rules correctly setup to accept port 80 and 21 from both my masqueraded internal network and from the Internet outside.

Suddenly, on May 20, I couldn't connect from outside my network to either my ftp daemon nor my http daemon on this Mandrake box. When I say I "couldn't connect" I mean that it timed out every time I tried to access my httpd or ftpd server. However, I am still able to connect to these two daemons from inside (from my masqueraded machines) my network though.

So, I decided to do some tests. I rewrote the shorewall rules so that ports 80 and 21 were no longer accepted and thereby logged at kernel.info level. I got a remote machine to make an ftp attempt on port 21 and an HTTP request on port 80. These attempts were successfully logged into /var/log/kernel/info. So I thought, this is good, something's getting to my machine.

Then I reconfigured proftpd to run on port 2222, and I opened port 2222 through shorewall. I used a remote machine to get onto my ftp daemon on port 2222; it worked no sweat.

So now I'm stuck, I still need my httpd server on port 80 to work and all I get is a timeout when I attempt to access it from outside my network.
 
Old 05-23-2004, 01:40 PM   #2
rottie
Member
 
Registered: Oct 2003
Posts: 64

Rep: Reputation: 15
Have you tried running tcpdump and watch wether the traffic from outside reaches your machine?
Is there a firewall between your machine and the outside network? What kind of connection do you have with the outside network? Maybe your provider started blocking some ports?

When you say this suddenly started I take it that you did no changes on your network that time?
 
Old 05-23-2004, 02:20 PM   #3
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Rep: Reputation: 30
some isps wont block port 80 as they dont want you running a webserver without paying extra. perhaps the same goes for 21. my guess would be that your isp decided to starting blocking these ports. give them a call.
 
Old 05-23-2004, 03:24 PM   #4
Silly22
LQ Newbie
 
Registered: Mar 2002
Location: Edmonton, AB
Distribution: Mandrake 10.2, Ubuntu 6.10
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
When you say this suddenly started I take it that you did no changes on your network that time?
That's right, I did not make any changes to my server and it just suddenly stopped working.

I don't have any other firewalls between the Mandrake machine and my DSL modem.

I tried the command tcpdump in my shell as root, and it says "command not found"

I did try typing "more /proc/net/ip_conntrack" whilst I made a remote computer attempt to connect, here's an excerpt

Code:
tcp      6 28 SYN_RECV src=129.128.98.44 dst=1XX.166.2XX.XX sport=34986 dport=80 src=1XX.166.2XX.XX dst=129.128.98.44 sport=80 dport=34986 use=1
I also tried configuring apache to listen on port 8000, instead of port 80, this worked perfectly...

I'm very much suspecting now that my ISP is blocking my OUTGOING responses to requests made on port 80 and port 21.
 
Old 05-23-2004, 04:42 PM   #5
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Rep: Reputation: 30
as i said, jsut call them up and ask them. i might have to switch to another isp, or pay extra...
 
  


Reply


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
MNF2 : unable to connect to Web Interface MandrakeSecurity + X server install error syxys Mandriva 3 12-30-2004 12:03 PM
setup mailserver/web server/ftp server hariiyer Linux - Networking 1 11-27-2004 01:16 AM
Web server + ftp server, How would you partition? anorman Linux - General 1 09-06-2004 08:02 AM
Unable to access my ssh server and ftp server from the Internet, but smtp works foxone Linux - Networking 1 05-28-2004 05:17 PM
Setup a linux server, DNS, WEB, FTP, and Mail Server Help watermelon_lee Linux - Networking 1 08-26-2003 03:09 AM


All times are GMT -5. The time now is 01:48 PM.

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