Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th July 2006, 15:47
koroshiya1 koroshiya1 is offline
Junior Member
 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Routing multiple FTP servers

Hi there (never mind the grammar in this post)

I have got this problem with my second ftp server.

My first ftp serv works fine, I forwarded port 21 on my router (NAT) to my first server and it works

Now my second ftp server cannot use port 21 right?
so I configured it at port 79 and did a forwarding on my router to my second ftp server on port 79

I also made a port range forwarding to my second ftp server (for passive connections)

192.168.1.54 (first FTP)
192.168.1.60 (second FTP)

**nat table snippet**
21 -> 21 192.168.1.54
79 -> 79 192.168.1.60
40000:40100 192.168.1.60
**nat table snippet**

I configured the ftp server with 2 deamons (I never run them at the same time)

vsftpd (very secure ftp deamon)
pure-ftpd (pure..)

On intranet 192.168.1.x clients can login to both servers
doesn't matter witch deamon I run

I configured vsftd like this:
**************************************
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=NO
xferlog_std_format=YES
ftpd_banner=Welcome to FTP server 2
pasv_enable=YES
pasv_promiscuous=YES
pasv_min_port=40000
pasv_max_port=40100
pasv_address=192.168.1.60
pam_service_name=vsftpd
userlist_enable=YES
listen=YES
listen_port=79
tcp_wrappers=YES
*******************************************


And pure-ftp like this:
*******************************************

ChrootEveryone yes

BrokenClientsCompatibility no
MaxClientsNumber 50
Daemonize yes
MaxClientsPerIP 8
VerboseLog no
DisplayDotFiles yes
AnonymousOnly no
NoAnonymous no
SyslogFacility ftp
DontResolve yes
MaxIdleTime 15
LimitRecursion 2000 8
AnonymousCanCreateDirs no
MaxLoad 4

DefaultAddress 192.168.1.60
PassivePortRange 40000 40100
ForcePassiveIP (ip from ISP)

AntiWarez yes
Bind 192.168.1.60,79

Umask 133:022
MinUID 100
AllowUserFXP yes
AllowAnonymousFXP no
ProhibitDotFilesWrite no
ProhibitDotFilesRead no
AutoRename no
AnonymousCantUpload no
MaxDiskUsage 99
CustomerProof yes
*******************************************

Now the problem is
I can't contact my second ftp server from the outside (internet)
Reply With Quote
Sponsored Links
  #2  
Old 27th July 2006, 13:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Did you tell your FTP clients to use port 79? Did you try both active and passive transfers in your FTP clients?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 27th July 2006, 14:51
koroshiya1 koroshiya1 is offline
Junior Member
 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes i did, I tested from my house and made a php script to test it remote from "outside" while i'm at work (working on intranet). Tested the script and manual login on my other FTP serv and it works
Reply With Quote
  #4  
Old 28th July 2006, 14:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Do your firewalls (on the router and your server) allow connections to port 79?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 31st July 2006, 10:39
koroshiya1 koroshiya1 is offline
Junior Member
 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes they do...
Reply With Quote
  #6  
Old 1st August 2006, 12:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

What's the output of
Code:
netstat -tap
and
Code:
iptables -L
on the server where you run FTP on port 79?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig on multiple servers Piccent Installation/Configuration 4 26th March 2010 14:24
Multiple Servers / Dedicated Tasks ( Bind, Postfix ) Mr.Mr Installation/Configuration 1 18th July 2006 13:27
Multiple servers nenad General 1 27th April 2006 16:10
Routing to multiple web servers on separate computers serutan Server Operation 1 16th April 2006 14:35
Multiple physical servers BommelFly Installation/Configuration 1 7th October 2005 13:34


All times are GMT +2. The time now is 14:19.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.