Solved PF: How to NAT FTP?

My NAT rule is as below:
Code:
nat on $wan from <users> to any -> $pool round-robin
scrub on $wan reassemble tcp
pass in log on $lan inet from <users> to any
pass out log all

But I cannot log in to FTP sites. But with this rule yesterday I logged in to ftp sites. I don't know what is the issue.
 
I can not connect even in passive mode.
I'm not permitted to directory listing as showed in error
Cod you give an example of configuration?

Bad IP Connectivity Error
 
I'm not permitted to directory listing as showed in error
That's the problem with FTP. It creates a new connection for data. Depending on passive or active it's the server or the client that opens a port. The problems begin when both sides are firewalled, then neither active nor passive will work.
 
Back
Top