LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-30-2004, 11:28 AM   #1
NonSumPisces
Member
 
Registered: May 2004
Location: Västerås, Sweden
Distribution: Slackware Current
Posts: 228

Rep: Reputation: 30
newbie ftp and firewall/ip question


I've just installed pureftpd and pureadmin. I'm behind a dlink firewall/router and it gives my computer a private ip. I want a few select people to connect to this box through the firewall, and I've opened port 21 which pureftpd uses. What ip can they connect on? I know the router has an internet ip, should I tell them them to try to connect to that ip or what?
 
Old 07-30-2004, 11:46 AM   #2
Ankheg
Member
 
Registered: Jul 2004
Location: Woodland Hills, CA
Distribution: Debian/Mandrake
Posts: 37

Rep: Reputation: 15
Yes, you'll want to point them at your internet IP address, not the computer's local address. That is correct. If you've opened up port 21 on the router, and made it forward to the computer running pureftpd, then as far as the router is concerned, everything should be all set. It can be tried at this point, and will probably have success, so long as you have no additional firewalling happening on the ftp server machine.
 
Old 07-30-2004, 12:37 PM   #3
NonSumPisces
Member
 
Registered: May 2004
Location: Västerås, Sweden
Distribution: Slackware Current
Posts: 228

Original Poster
Rep: Reputation: 30
My brother is trying to get into my ftpserver, but he can't. I've opened port 21 in the firewall and pointed all connections to that port to the machine the server is on, 192.168.0.102, but it doesn't work.

I told him to connect to the ip 213.214.xxx.xxx:21 (which is supposed to be my itnernet ip, blurted out the last six digits here on lq, don't want skiddies to know my ip ^_^) and I've given him a user account with password. I can see that he is trying to get in, but the server kicks him out every time he tries.
How do I check the internet ip of the router in the shell btw?
 
Old 07-30-2004, 01:03 PM   #4
Ankheg
Member
 
Registered: Jul 2004
Location: Woodland Hills, CA
Distribution: Debian/Mandrake
Posts: 37

Rep: Reputation: 15
Masking is just fine, and encouraged, I'd say...no worries there.

Checking the internet IP of the router...I think for a D-Link, I would just go to the web interface it has, and go check in there (I think it's displayed where you would normally release/renew).

As far as the server rejecting him... I guess I would make sure that the ftp server is actually running on 21 (is 21 the default FTP or is 23? I forget...). If you have an ssh service running as well, you might try to sftp to your machine also. I don't know why yet (haven't had time to look), but on my own machine, using wu-ftpd at the moment, everything runs peachy if you connect via sftp (ssh is port 22, by the way), but it just lags like no tomorrow if I try just a standard ftp connection. Lucky for me, I don't allow a standard, and only the sftp, so it's not high priority either...

If sftp works, its probably going to be a configuration issue with the ftp server. If it doesn't, then we're kinda back at square one. By the time you reply with results, I should hopefully think of something else...a little distracted at the moment.

Hope it helps though.
 
Old 07-30-2004, 01:46 PM   #5
NonSumPisces
Member
 
Registered: May 2004
Location: Västerås, Sweden
Distribution: Slackware Current
Posts: 228

Original Poster
Rep: Reputation: 30
Nah, can't be the port, I've specically started it on port 21, besides, it's the default
I simply can't figure out what the problem is. Can it have something to do with him being on wind0z3?

Let's go through this from the beginning...

I installed pureftpd from source with the options --with-ftpwho --with-puredb, just like the guys who made pureadmin said I should in their readme. Then I made a standrard installation of pureadmin.
Then I opened port 21 and routed the connections to it to 192.168.0.102.
Then I added login/passwd for my brother and told him to connect to xxx.xxx.xxx.xxx:21, which is the internet ip. I could see that he tried to connect in pureadmin, but he got thrown out.
Can it have anything to do with filepermissions?

I've added the groups and users the readme for pureadmin said I should:

groupadd ftpgroup
useradd -g ftpgroup -d /dev/null -s /etc ftpuser


I'm trying to share the files in /export with him, and it's owned by the group users.
Could it be that? I feel like a n00b...
 
Old 07-30-2004, 03:40 PM   #6
NonSumPisces
Member
 
Registered: May 2004
Location: Västerås, Sweden
Distribution: Slackware Current
Posts: 228

Original Poster
Rep: Reputation: 30
I think now that it is pureadmin who's making a mess out of things... I've doodled around a bit and I've realized that the only thing wrong is the password not being accepted.
 
Old 07-30-2004, 04:13 PM   #7
arrruken
Member
 
Registered: Apr 2003
Distribution: gentoo
Posts: 238

Rep: Reputation: 32
You need to check your cable or DSL modem for any firewall functions. Most of the ones Ive used not only have a dhcp server but also have firewall functions and that can complicate things. For this reason, it is my opinion that people shouldnt use routers on top of their modem but get switches instead. But in your case just make sure the ports is forwarded to your server. BTW I needed port 21(FTP control) and port 20(FTP data) for my ftp to work. Here's a link explaining: http://slacksite.com/other/ftp.html

Last edited by arrruken; 07-30-2004 at 04:16 PM.
 
  


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
FTP Question for Newbie Tony33221 Linux - Software 3 09-10-2005 04:00 PM
firewall newbie question matador Linux - Security 13 08-18-2003 10:46 AM
Question on firewall, ftp spindley Linux - Networking 3 03-03-2003 11:49 PM
Typical Newbie pro-ftp question mrsolo Linux - General 4 01-28-2003 03:08 PM
Newbie firewall question menhilmor Linux - Security 9 07-18-2002 02:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration