LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-02-2004, 06:15 AM   #1
Erik Plaggenmar
Member
 
Registered: Apr 2004
Location: Netherlands
Distribution: Debian Testing
Posts: 70

Rep: Reputation: 15
Outsiders can't connect to my FTP server? (using glFTPd)


Well, my problem is as this:
I run a glFTPd for my ftp server.... to connect to this server from inside the network, nothing goes wrong, everything well..... but, the problem: when i try to connect from outside the network (let's say from school, friends house) it's refused..... how is this happening??

Some information:

erik@debian:~$ netstat -a | grep ftp
tcp 0 0 *:glftpd *:* LISTEN

erik@debian:~$ grep -v '#' /etc/services | grep ftp
ftp-data 20/tcp
ftp 21/tcp
tftp 69/udp
sftp 115/tcp
ftps 990/tcp
glftpd 21/tcp

erik@debian:~$ grep -v '#' /etc/hosts.allow
glftpd: ALL

erik@debian:~$ grep -v '#' /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.2.171
netmask 255.255.255.0
broadcast 192.168.2.255
gateway 192.168.2.1

debian:/home/erik# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:FC:A2:6D5
inet addr:192.168.2.171 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:21171 errors:0 dropped:0 overruns:0 frame:0
TX packets:20249 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3093648 (2.9 MiB) TX bytes:15623052 (14.8 MiB)
Interrupt:17 Base address:0xec00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3559 errors:0 dropped:0 overruns:0 frame:0
TX packets:3559 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:853426 (833.4 KiB) TX bytes:853426 (833.4 KiB)

Well i think that's all you guys should know
btw, i also use a router... i forwarded port 21 to my computer, also it can't be a router problem since I run a serv-u ftp server on windows, also using port 21......

I've been struggeling with this for some time... it's making me sick

Last edited by Erik Plaggenmar; 06-02-2004 at 09:07 AM.
 
Old 06-02-2004, 06:29 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Re: Outsiders can't connect to my FTP server? (using glFTPd)

Quote:
Originally posted by Erik Plaggenmar
Well i think that's all you guys should know
btw, i also use a router... i forwarded port 21 to my computer, also it can't be a router problem since I run a serv-u ftp server on windows, also using port 21......

I've struggeling with this for some time... it's making me sick
That's most likely your problem, you can't forward port 21 to two different addresses behind a router/firewall to two different machines.. its either one of the other. Most likely if you have it setup to your Windows box, its probably first on the list in your router configuration so its defaulting to it over any others. Or you can just simply setup one to listen to port 2121 and the other 21.. etc.

Last edited by trickykid; 06-02-2004 at 06:32 AM.
 
Old 06-02-2004, 08:55 AM   #3
Erik Plaggenmar
Member
 
Registered: Apr 2004
Location: Netherlands
Distribution: Debian Testing
Posts: 70

Original Poster
Rep: Reputation: 15
Hmmmz... no I explained it wrong
it's like... i have one system with dual boot..... windows xp and linux.... if i run linux, i can't get to windows, so then serv-u isn't running..... so then the port should be forwarded correctly... or am i getting this wrong?
 
Old 06-02-2004, 11:38 AM   #4
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
do both your windows side and linux side pull the same IP?

if they are not pulling the same IP, then when you dual boot you are pointing to the wrong IP, thus the forwarding is not working.
 
Old 06-02-2004, 03:02 PM   #5
Erik Plaggenmar
Member
 
Registered: Apr 2004
Location: Netherlands
Distribution: Debian Testing
Posts: 70

Original Poster
Rep: Reputation: 15
no, both the same ip.... but, i made some progress i removed it completely......... en reinstalled... en yes! now it's working (though i don't know what i was doing different :S)

now... i only have to get xinerama to work.... and winxp can be deleted (wel, some printer drivers etc still aren't working )
 
  


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
Suddenly unable to connect to my web server and my ftp server. HELP! Silly22 Linux - Software 4 05-23-2004 04:42 PM
cant connect to glftpd even locally darazman Linux - Software 1 09-06-2003 08:27 PM
can't connect to ftp server glock19 Linux - General 3 07-31-2002 11:05 PM
can not connect too ftp server pover Linux - Newbie 0 01-18-2002 10:03 AM
ftp server does not let you connect browny_amiga Linux - General 0 12-21-2001 07:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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