LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-14-2011, 08:08 PM   #1
jmdennis1987
LQ Newbie
 
Registered: Nov 2010
Location: Vancouver, WA
Posts: 28

Rep: Reputation: 0
My server wont let me connect but everyone else can.


Ok so ive had a server hosting my website up for some time now. and today the weirdest thing happened and i cant figure this out.

so im using filezilla to upload some files a large amount. when all the sudden it stops. ok weird never done that before but ok ill stop it and reconnect.

so i tried and nothing server timed out.
so i went to the server everything was up and working.
so i did a reboot made shure local host was working and my phone connected ok all good.

i go home to connect www.tdclan.com and nothing servet times out. but if i check it with my phone it works.
if i try to ftp from home wont connect phone it will.
any one know why?
i was thiking a apache2 banned my ip or something is that posible?
thanks for all the help
 
Old 02-14-2011, 09:43 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,665
Blog Entries: 28

Rep: Reputation: 6247Reputation: 6247Reputation: 6247Reputation: 6247Reputation: 6247Reputation: 6247Reputation: 6247Reputation: 6247Reputation: 6247Reputation: 6247Reputation: 6247
Have you looked in the apache logs for any anomalies? In the absence of any error messages to the screen, that would be the next place I'd look. Also, if you're running a firewall, check the firewall logs, if any.
 
Old 02-15-2011, 08:29 AM   #3
jcalzare
Member
 
Registered: Aug 2009
Location: Chicago
Distribution: CentOS
Posts: 114

Rep: Reputation: 34
You are probably blocked in the firewall. I have seen this happen, when you have configured your FTP client to use passive FTP ports, but these ports are not open in the server's firewall. This will often be detected as a port scan, and your IP address can be subsequently blocked. You can check iptables with this command (assuming you can access the server form another location)

iptables -nL | grep x.x.x.x

Where x.x.x.x is your IP address. If you don't know what your IP is, you can check at a site like http://whatsmyip.org or similar.

If it isn't iptables, it may have added you to a deny file somewhere in the apache configuration, or in htaccess. Try this:

fgrep -RiH x.x.x.x /path/to/apache2/conf.d/*

x.x.x.x is again your IP address. Lastly, check your htaccess files for the site:

find /path/to/docroot/ -type f -iname .htaccess -exec fgrep -H x.x.x.x {} \;

Last edited by jcalzare; 02-15-2011 at 08:31 AM.
 
Old 02-15-2011, 12:46 PM   #4
jmdennis1987
LQ Newbie
 
Registered: Nov 2010
Location: Vancouver, WA
Posts: 28

Original Poster
Rep: Reputation: 0
thanks for both of your respnses.
I looked at all my logs nothing out of the ordinary that i can see.
i have no firewall running. Ubuntu 10.10 gnome i believe firewall is disabled by defualt. correct me if im wrong. (and i disabled manually to make sure along time ago)

You are probably blocked in the firewall. I have seen this happen, when you have configured your FTP client to use passive FTP ports, but these ports are not open in the server's firewall. This will often be detected as a port scan, and your IP address can be subsequently blocked. You can check iptables with this command (assuming you can access the server form another location)

iptables -nL | grep x.x.x.x
Where x.x.x.x is your IP address. If you don't know what your IP is, you can check at a site like http://whatsmyip.org or similar.
If it isn't iptables, it may have added you to a deny file somewhere in the apache configuration, or in htaccess.

Wanted me to sudo it but nothing happened


Try this:

fgrep -RiH x.x.x.x /path/to/apache2/conf.d/*

x.x.x.x is again your IP address. Lastly, check your htaccess files for the site:

Changed my path to etc/apache2/conf.d/* and still nothing happenned.

find /path/to/docroot/ -type f -iname .htaccess -exec fgrep -H x.x.x.x {} \;

Didn't know what you were talking about here.

Also i tried pinging the server from my router it times out 4 times.
I try it from a websit like pingtools and it shows it accepting connection.
Now if I go to the server and log into the router and ping my router it does the same thing times out.

So what im thinking is that one of the routers is blocking the ip or website. i see nothing being blocked on the router at the server.
So im going to look at my router tonight when i get home to see if theirs any blocking going on.

See what im doing is using two comcast buseness accounts. one for a website forum and my hlstats for a tf2 game server.
then on the other account i have just my tf2 game server running.
now i need then to communicat cus the hlsats reads logs being sent from the game server and builds stats off them.
Is it posible comcast could block something like this? they told me it wasnt a problem to do what i want.
Just a idea. IDk im really at a loss. everything was working tell the upload with filezilla stopped.
Also i was reading that this has happened to others and that after 24 hours they were able to re establish a connection to the lite they got blocked out of. i really hope thats the case here. but im looking for help if any one has any thing on this thanks alot.

Edited to say

Ok guys thanks for all the help.
so i came home on my lunch and checked out everything and its been 24 hours since i was locked out so now it all working again. weird. some thing locked me out for 24 hours. ill have to be more careful.
thanks for all the help again.
this place is awesome.

Last edited by jmdennis1987; 02-15-2011 at 03:26 PM.
 
Old 02-17-2011, 01:08 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,415

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
If you're using the root acct (a bad idea BTW), then it's prob something like 'fail2ban' or possibly a PAM module.
People are always trying to break in with 'typical' admin acct names eg root, admin, administrator etc etc.
 
  


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
Connect my netbook to wireless but it wont connect to the internet but it did . Haydn456MJW Linux - Newbie 7 01-26-2011 06:56 PM
TortoiseSVN wont connect to linux server mattsoftnet Linux - Software 1 06-03-2006 10:10 PM
Ragnarok online wont connect to server filbert Linux - Games 0 03-09-2005 09:16 AM
mandrake client wont connect to slackware server Fantus Linux - Networking 0 12-18-2004 09:25 PM
Client wont connect to server odd Linux - Software 0 06-04-2004 05:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:56 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