LITTLEBLACKDOG.COM Forum Index LITTLEBLACKDOG.COM

 
LWD LWD   FAQ FAQ   Memberlist Memberlist   Usergroups Usergroups   Active Topics Active Topics   Register Register  
  Profile Profile   Log in to check your private messages Log in to check your private messages   Log in Log in  
  Who is Online Who is Online   Image Gallery Image Gallery   Chat Chat   Search Search  
  LWDGear       LBDGear  

View next topic
View previous topic
Post new topic     Reply to topic   LITTLEBLACKDOG.COM Forum Index -> Operating Systems » OS - Unix
Author Message
creed
Veteran Dog
Veteran Dog


Joined: 08 Nov 2003
Age: 97
Posts: 6307
Location: Back to where it all began. Back to my own slice of nirvana. Back home.

Post Posted: Tue Mar 20, 2007 8:31 am   Post subject: FTP server not accessible outside network Reply with quote Back to top  

Hey all

I just configured a pure-ftpd server and inside my network it works wonderfully....inside the network. When I access it outside the network the router forewards it to the correct machine, the logs indicate that the user logs in without a hitch, but then I get this message after waiting for about thirty seconds:

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

I've tried with both SSL on and off, with apssive mode disabled and enabled, yet the issue remains. I'm almost certian its' router based, but precisely what I'm uncertain. I know that I didn't have to do any settinsg to get the webserver running find which is what baffles me as to why this would have issues.

As always, any answeres would be appriciated.

_________________


The Seven faces of Creed



View user's profile Send private message MSN Messenger
CMTG
Leg Humper
Leg Humper


Joined: 23 Feb 2002
Posts: 4881
Location: On average, Cheltenham.

Post Posted: Tue Mar 20, 2007 8:35 am   Post subject: Reply with quote Back to top  

Firewall issue maybe?

_________________
Pie. I wish I could
constrain my hungry greed but...
Sadly, defeated.


"Have I seen you at the gym? I don't go to the gym, I'm just naturally like this..."
- Captain Hammer
View user's profile Send private message Send e-mail Visit poster's website
creed
Veteran Dog
Veteran Dog


Joined: 08 Nov 2003
Age: 97
Posts: 6307
Location: Back to where it all began. Back to my own slice of nirvana. Back home.

Post Posted: Tue Mar 20, 2007 8:44 am   Post subject: Reply with quote Back to top  

CheeseMonger The Great wrote:
Firewall issue maybe?


Thats' what I thought at first, but I disabled the firewall within the router (3COM OfficeConnect), but the issue remained.

_________________


The Seven faces of Creed



View user's profile Send private message MSN Messenger
T
Curmudgeon


Joined: 17 May 2001
Posts: 16084
Location: Airstrip One

Post Posted: Tue Mar 20, 2007 8:53 am   Post subject: Reply with quote Back to top  

FTP uses ports 20 and 21. Could anything be interfering with either port?

_________________
Got questions? Click here.
Still got questions? Click here, too.

affabletoaster, Akely, anglachel, blahpony, CMTG, EdisonRex, Elk, Equin, evilness, Fido, fathertyme, Goddess, Jaymac, je, jodygirl, KingKobra, Lycander, mally, Max, OhioArt2, perrito_blanco, Rover, Spot, sully_51, Superdwarf, the taz man, thriftyjack, twiztid, wrathiron, yiayia49

A journey of 3,500 miles begins with a single comic.

Would you like
good music at a price that is right? CD Baby, baby.

The best way to blow off steam is to blow off someone's nadgers.
View user's profile Send private message Visit poster's website
creed
Veteran Dog
Veteran Dog


Joined: 08 Nov 2003
Age: 97
Posts: 6307
Location: Back to where it all began. Back to my own slice of nirvana. Back home.

Post Posted: Tue Mar 20, 2007 9:17 am   Post subject: Reply with quote Back to top  

Toxin wrote:
FTP uses ports 20 and 21. Could anything be interfering with either port?


WEll I have it so that the server is running on 2000 instead of 21. I dont' have port 1999 open on the router so if my understanding is correct, would that block passive connections?

I set in the ftp server to use 30000 to 31000 for passive connectivity, and the router uses a trigger that if port 2000 is used, to open those ports. Granted I dont' know how well this router works with that, but would this be ineffective regardless?

_________________


The Seven faces of Creed



View user's profile Send private message MSN Messenger
fathertyme
Site Admin
Site Admin


Joined: 30 Jun 2001
Posts: 6131
Location: The American Colonies

Post Posted: Tue Mar 20, 2007 9:37 am   Post subject: Reply with quote Back to top  

You might consider setting everything back to the default ports, making sure it works, then screwing around with your ports.

I'm guessing that you are having some port forwarding issues

_________________
LWD web-cams: http://lwdcam.codecoma.com/?lwdcam
----

---
[9:08pm][09/16/2005]«+ flip » college...what is that
[9:08pm][09/16/2005]«+ Aff » apparently a place where you find rum
---
I used to live in my own little world, but they didn't like me there either.

You see dead people? I'm a software engineer, I don't see anybody!
---
My Amazon Wishlist
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
onefast1
Tail-Wagger
Tail-Wagger


Joined: 27 Feb 2004
Posts: 2282
Location: Lichtenstien Penguin Cove, I'm the King one.

Post Posted: Tue Mar 20, 2007 10:06 am   Post subject: Reply with quote Back to top  

Check to make sure the default route is correct on the ftp server.

_________________
Watch out for the cross eyed penguin, he can get a little crazy at times.

View user's profile Send private message
fathertyme
Site Admin
Site Admin


Joined: 30 Jun 2001
Posts: 6131
Location: The American Colonies

Post Posted: Tue Mar 20, 2007 10:09 am   Post subject: Reply with quote Back to top  

does your router support loopback?

some routers do not. so try a third party machine to access the server.
Make sure that you are not blocking the ip's in the config file.
some daemon progs are setup to accept ONLY from inside the network

validip 192.168.1.*

or some crap like that

_________________
LWD web-cams: http://lwdcam.codecoma.com/?lwdcam
----

---
[9:08pm][09/16/2005]«+ flip » college...what is that
[9:08pm][09/16/2005]«+ Aff » apparently a place where you find rum
---
I used to live in my own little world, but they didn't like me there either.

You see dead people? I'm a software engineer, I don't see anybody!
---
My Amazon Wishlist
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
creed
Veteran Dog
Veteran Dog


Joined: 08 Nov 2003
Age: 97
Posts: 6307
Location: Back to where it all began. Back to my own slice of nirvana. Back home.

Post Posted: Tue Mar 20, 2007 10:51 am   Post subject: Reply with quote Back to top  

fathertyme wrote:
You might consider setting everything back to the default ports, making sure it works, then screwing around with your ports.

I'm guessing that you are having some port forwarding issues


I'll give that a try tonight. Right now my ISP's modem has died yet again (damn piece of shit), so I can't access it remotely. I'll give feedback on this.

onefast1 wrote:
Check to make sure the default route is correct on the ftp server.


I beleive this is correct. The default route is pointing to the router, and other services such as ssh and web are working fine.

fathertyme wrote:
does your router support loopback?

some routers do not. so try a third party machine to access the server.
Make sure that you are not blocking the ip's in the config file.
some daemon progs are setup to accept ONLY from inside the network

validip 192.168.1.*

or some crap like that


I'm assuming that it does as other than ftp everything else is accessible from the internet that I want to be.

_________________


The Seven faces of Creed



View user's profile Send private message MSN Messenger
creed
Veteran Dog
Veteran Dog


Joined: 08 Nov 2003
Age: 97
Posts: 6307
Location: Back to where it all began. Back to my own slice of nirvana. Back home.

Post Posted: Tue Mar 20, 2007 2:40 pm   Post subject: Reply with quote Back to top  

Ok routing info is correct, and I can connect from a third party machine as long as I am accessing an internal system. If I use an external system it does the same thing.

fathertyme wrote:
You might consider setting everything back to the default ports, making sure it works, then screwing around with your ports.

I'm guessing that you are having some port forwarding issues


Done back to 21, and still no dice.. I'll be hoenst, Im at a complete loss

_________________


The Seven faces of Creed



View user's profile Send private message MSN Messenger
dugg
Cat Chaser
Cat Chaser


Joined: 18 Jan 2001
Posts: 735
Location: 15 miles from Hell

Post Posted: Wed Mar 21, 2007 5:15 am   Post subject: Reply with quote Back to top  

Doubt this will help but might lead you on the right track.
From http://download.pureftpd.org/pub/pure-ftpd/doc/README
Quote:
- '-N': NAT mode. Force ACTIVE mode. If your FTP server is behind a NAT box
that doesn't support applicative FTP proxying, or if you use port
redirection without a transparent FTP proxy, use this. Well... the previous
sentence isn't very clear. Okay: if your network looks like this:
(FTP server)-------(NAT/masquerading gateway/router)------(Internet)
and if you want people coming from the internet to have access to your FTP
server, please try without this option first. If Netscape clients can
connect without any problem, your NAT gateway rulez. If Netscape doesn't
display directory listings, your NAT gateway sucks. Use '-N' as a workaround.
View user's profile Send private message
creed
Veteran Dog
Veteran Dog


Joined: 08 Nov 2003
Age: 97
Posts: 6307
Location: Back to where it all began. Back to my own slice of nirvana. Back home.

Post Posted: Wed Mar 21, 2007 6:56 am   Post subject: Reply with quote Back to top  

dugg wrote:
Doubt this will help but might lead you on the right track.
From http://download.pureftpd.org/pub/pure-ftpd/doc/README
Quote:
- '-N': NAT mode. Force ACTIVE mode. If your FTP server is behind a NAT box
that doesn't support applicative FTP proxying, or if you use port
redirection without a transparent FTP proxy, use this. Well... the previous
sentence isn't very clear. Okay: if your network looks like this:
(FTP server)-------(NAT/masquerading gateway/router)------(Internet)
and if you want people coming from the internet to have access to your FTP
server, please try without this option first. If Netscape clients can
connect without any problem, your NAT gateway rulez. If Netscape doesn't
display directory listings, your NAT gateway sucks. Use '-N' as a workaround.


Well at least that did something different. Instead of timing out, it isntatly comes back with

Code: Select all
Could not open data connection to port ****: Connection refused


Where the port number is somewhere around the 3500-3700 range. Opening these ports on my router of course, did nothing Sad

_________________


The Seven faces of Creed



View user's profile Send private message MSN Messenger
squashman
Big Dog
Big Dog


Joined: 08 Oct 2001
Posts: 3465
Location: 1265 Lombardi Ave.

Post Posted: Wed Mar 21, 2007 7:33 am   Post subject: Reply with quote Back to top  

Just inquiring why you are using FTP instead of OpenSSH? Was just wondering if SFTP works ok using FileZilla from the outside?
View user's profile Send private message Send e-mail
creed
Veteran Dog
Veteran Dog


Joined: 08 Nov 2003
Age: 97
Posts: 6307
Location: Back to where it all began. Back to my own slice of nirvana. Back home.

Post Posted: Wed Mar 21, 2007 7:34 am   Post subject: Reply with quote Back to top  

squashman wrote:
Just inquiring why you are using FTP instead of OpenSSH? Was just wondering if SFTP works ok using FileZilla from the outside?


I was always told that OpenSSH was the protocol, while FTP was the delivery method. Once I get this working I can have it so all FTP traffic is encrypted, it's just a matter of getting it working that is the problem.

_________________


The Seven faces of Creed



View user's profile Send private message MSN Messenger
squashman
Big Dog
Big Dog


Joined: 08 Oct 2001
Posts: 3465
Location: 1265 Lombardi Ave.

Post Posted: Wed Mar 21, 2007 7:45 am   Post subject: Reply with quote Back to top  

You don't need an FTP server running to use SFTP over OpenSSH. Just install OpenSSH, forward port 22 or run it on whatever port you want to and forward that port to your server. That is all I have ever done.

I usually change the port number otherwise you log files tend to fill up with Failed login attempts from Script Kiddies.
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic     Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
phpBB SEO
All times are GMT - 8 Hours

Help us keep advertisements off this site. Donate today!