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 10th August 2008, 18:03
Guido64 Guido64 is offline
Junior Member
 
Join Date: Jan 2006
Location: Maastricht
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Proftpd MasqueradeAddress Virtaulhosts question

Hello,

I read on howtoforge and several other sites up and down about the problem nothing helped me so far. After pulling all my hair out i'm putting my problem here in the forum and hope somebody can help.

Few things you maybe need to know:
-I'm running proftpd on a Openvz VPS.
-My router/firewall is m0n0wall 1.3b13
-I can't reach my public external IP address just because m0n0wall/freebsd doesn't allow it (http://doc.m0n0.ch/handbook-single/#id11646041).

Because proftpd is behind m0n0wall NAT router there is a problem with passive FTP connection.

When I add "MasqueradeAddress [my_public_ip]" to the proftpd.conf this problem is solved. But then I have a problem connecting local clients to proftpd with passive ports enabled because my external public ip is not reachable on the lan side.

Wen I try to setup a Virtualhost for local users and a virtualhost for external users i can't get it to work. I thought virtualhosts in proftpd was like apache were i can give one ip address more hostnames with the same tcp port. But with proftpd I receive errors like "address already in use" or "port already in use"

"DefaultAddress 127.0.0.1" doesn't help
"SocketBindTight on" doesn't help

Can I configure 2 virtualhosts like ftp.mydomain.com and ftp-loc.mydomain.com on the same (vps)system with both using port 21 and both using the same IP, just like apache can?

So external users get the ftp.mydomain.com virtualhost config with, for exmaple, the MasqueradeAddress direction and internal users get the ftp-loc.mydomain.com virtualhost without the MasqueradeAddress direction?

I don't like to explain users to use active FTP over and over again I would like to fix the passive FTP ports problem instead.
Reply With Quote
Sponsored Links
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
Stop - start process ProFTPD and get warning kvdd Installation/Configuration 2 13th November 2007 17:25
Question from a newbie: can't login on proftpd Chris_elmp Installation/Configuration 2 24th August 2007 21:36
Proftpd stops and general install question JaJunk Installation/Configuration 6 10th May 2007 21:17
proftpd virtual host not working DaddyFix Installation/Configuration 6 19th April 2006 19:59
Im thinking about throwing proftpd to the trashcan danf.1979 Installation/Configuration 2 23rd December 2005 09:27


All times are GMT +2. The time now is 07:27.


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