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 06-29-2004, 12:58 PM   #1
RINO2004
LQ Newbie
 
Registered: Jun 2004
Location: Lithuania
Distribution: Slackware 9.x
Posts: 21

Rep: Reputation: 15
Arrow Anonymous only from LAN, Users only from WAN ! on Proftpd


Hi

I have slack 9.1 and made FTP for my LAN users they can connect as anonymous, but is there any chance to make special FTP users for my friends that are not in my LAN, couse i don't want that others from WAN could connect as anonymous.

using: ProFTPD Version 1.2.9
kernel 2.4.*
iptables v1.2.8
 
Old 06-29-2004, 01:05 PM   #2
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
You need to use a limit statement in your config file. Check this example at the bottom...

http://proftpd.linux.co.uk/localsite...ref_Allow.html

This way, you can control what IP's have anonymous access and limit them to your local network.
 
Old 06-30-2004, 08:11 AM   #3
RINO2004
LQ Newbie
 
Registered: Jun 2004
Location: Lithuania
Distribution: Slackware 9.x
Posts: 21

Original Poster
Rep: Reputation: 15
everything with users seems to be ok now but one problem is that when somebody connect from WAN :

230 Anonymous access granted, restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
200 PORT command successful
425 Unable to build data connection: Connection refused
ftp> passive
Passive mode on.
ftp> dir
227 Entering Passive Mode (81,7,83,86,11,10).
ftp: connect: Connection refused


i think that some kind of port should be opened in firewall not only 21 ? Any ideas ?
 
Old 06-30-2004, 09:05 AM   #4
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
The port you are thinking of is port 20 which is the data port for FTP. I believe if you don't try to use passive mode, this is not a problem because the server will be initiating the connections to the client so your firewall should not try to block it unless you've got outgoing connections filtered too.

REF:
http://slacksite.com/other/ftp.html
 
  


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
Proftpd Anonymous Users zaicheke Linux - Networking 1 08-20-2004 10:03 PM
Routing LAN -> WAN -> LAN with unhelpful router synx13 Linux - Networking 2 06-14-2004 02:35 PM
Proftpd and anonymous logins Wynd Linux - Software 5 11-12-2003 10:05 PM
Anonymous ProFTPd access tisource Linux - Networking 2 03-04-2003 09:13 PM
Proftpd & anonymous users Mithrilhall Linux - Newbie 3 04-18-2002 10:50 AM

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

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