Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Outgoing FTP

    Scheduled Pinned Locked Moved Firewalling
    2 Posts 2 Posters 1.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mryan321
      last edited by

      Im having trouble restricting outgoing FTP.

      I have 2 subnets - one I would like to restrict FTP to several servers only.

      I can do this by disabling the firewall helper - but then connection works but cant go any further.

      It works with the FTP Helper enabled but then I have no control over FTP - all firewall rules concerning FTP traffic are ignored!

      Any help much appreciated…..

      1 Reply Last reply Reply Quote 0
      • T Offline
        taspenatu
        last edited by

        I have the same problem here and found the reason in the code
        /etc/inc/filter.inc line 907 shows

        $natrules .= "rdr on $tmp_interface proto tcp from any to any port 21 -> 127.0.0.1 port {$tmp_port}\n";
        

        So all traffic to port 21 is redirected to the FTP helper. No chance to configure FTP for different networks.
        Not that amazing for a firewall.
        :(

        Any expert with a workaround here?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.