Connect
email: vic @ hong . com . au
mobile: +1 604-783-6519
office: +1 604-677-2829


Search
Twitter Updates

    Blog Categories
    Section2
    « Nexenta + NDMP Backup with BackupExec 12.5 + low free space issues | Main | NexentaStor 2.0/2.1 + Windows 2008 SP2 FAIL »
    Thursday
    27Aug2009

    pfSense - ftp server in DMZ / OPT interface - the userland FTP-Proxy setting

    Had some fun setting up a FTP server, on a OPT interface on a pfSense router.

    On the legacy router setup, we had Virtual IP for the ftp server. With this setup, we would put in a port forward to the ftp server in the DMZ, and everything would play nice.

    With pfSense, you need to tweak some settings to get things happening.

    After setting up my virtual IPs, and setting up some WAN rules, we couldn't connect to the ftp server via any interface. Problem turns out to be a combination of using the virt IP (as apposed to the primary IP of the WAN interface as the IP you are using to access ftp from the WAN side), and a little pfSense userland ftp-proxy setting

    I sifted through some pfSense forum entries, and the following links gave me the clues:

    http://forum.pfsense.org/index.php/topic,6218.0.html

    http://doc.pfsense.org/index.php/FTP_Troubleshooting

    So I went through things step by step, and as suggested:

    1. remove all ftp rules (WAN side) I setup previously
    2. removed the Virtual IP - I HAD to use the WAN interface primary IP address - the Virtual IP would NOT work - had to make an A record change and notify users of the change
    3. went to Interfaces -> WAN -> unticked the Disable the userland FTP-Proxy application (also unticked on the other interfaces)
    4. this auto created a WAN rule: * * * ext_WAN_IP 21 *
    5. then added another WAN rule: * * * ftpserver_opt_IP 21 *
    6. for users in the LAN, I made an internal DNS override for the ftp domain name to point to the ftp server's internal IP address - eg: ftp.blah.com -> 192.168.1.1 (normally on the net, it would point to the WAN interface primary IP address in the A record)

    Took a bit of time, but finally sorted it out and now we are back to ftp serving via pfSense!

    PrintView Printer Friendly Version

    Reader Comments

    There are no comments for this journal entry. To create a new comment, use the form below.

    PostPost a New Comment

    Enter your information below to add a new comment.

    My response is on my own website »
    Author Email (optional):
    Author URL (optional):
    Post:
     
    All HTML will be escaped. Hyperlinks will be created for URLs automatically.