Hello,
I think it's known problem but I can't still resolve it. When I turn off my firewall ftp works good but when I turn it on again can't list directory.
I'm using these rules for ftp:
I have one additionally ip where jail working.
79.137.X.X (jail ip) -> pure-ftpd (21)
Someone can help me ?
I think it's known problem but I can't still resolve it. When I turn off my firewall ftp works good but when I turn it on again can't list directory.
I'm using these rules for ftp:
Code:
#!/bin/sh
# ipfw config/rules
# from FBSD Handbook, rc.firewall, et. al.
# Flush all rules before we begin.
ipfw -q -f flush
# Set rules command prefix
cmd="ipfw -q add "
vif="em0"
# allow all for localhost
$cmd 00010 allow ip from any to any via lo0
# checks stateful rules. If marked as "keep-state" the packet has
# already passed through filters and is "OK" without futher
# rule matching
$cmd 00101 check-state
# allow FTP
$cmd 00107 allow tcp from any to any 21 setup keep-state
$cmd 00108 allow tcp from any to any 20 setup keep-state
I have one additionally ip where jail working.
Code:
inet 91.121.X.X netmask 0xffffff00 broadcast 91.121.78.255
inet 79.137.X.X netmask 0xffffffff broadcast 79.137.46.236
79.137.X.X (jail ip) -> pure-ftpd (21)
Someone can help me ?