Hi
Read everything on manual and on the forum about FTP but something is missing me. Tried evey example presented on the forum and still no go.
I ftp to the routerboard with no problem, I want a computer in LAN to serve as FTP server for all LAN users (not for the internet, LAN only), but I cannot make it work.
By manual&forum I know I have to redirect ports in nat and rules in firewall/filter for input chain and for new/established/related connections, and also to drop connections.
Well, here I am asking support guys, something is wrong and I can’t manage to solve it. I have put FTP rules in top of filter and nat sections of firewall, so that no obstacles exist for FTP inside the LAN. Still it doesn’t work. Below are the rules:
Filter
0 ;;; Allow FTP
chain=input src-address=20.0.0.0/24 protocol=tcp dst-port=20-21 connection-state=invalid action=drop
1 chain=input src-address=20.0.0.0/24 protocol=tcp dst-port=20-21 connection-state=new action=accept
2 chain=input src-address=20.0.0.0/24 protocol=tcp dst-port=20-21 connection-state=related action=accept
3 chain=forward src-address=20.0.0.0/24 protocol=tcp dst-port=20-21 connection-state=new action=accept
4 chain=forward src-address=20.0.0.0/24 protocol=tcp dst-port=20-21 connection-state=established action=accept
Nat
0 chain=dstnat src-address=20.0.0.0/24 protocol=tcp src-port=20-21 dst-port=20-21 action=dst-nat to-addresses=20.0.0.0-20.0.0.255 to-ports=20-21
Mangle
3 chain=prerouting in-interface=ether2 src-address=20.0.0.0/24 protocol=tcp dst-port=20-21 action=mark-connection new-connection-mark=ftp_conn passthrough=yes
4 chain=prerouting in-interface=ether2 src-address=20.0.0.0/24 protocol=udp dst-port=20-21 action=mark-connection new-connection-mark=ftp_conn passthrough=yes
5 chain=prerouting connection-mark=ftp_conn action=mark-packet new-packet-mark=ftp passthrough=no
IP/Service
1 ftp 21 20.0.0.0/24
Firewall/Service ports
0 ftp 21
I have no routing, no bridging, the network is simple: ADSL–>RB532–>AP (transmitter)–>APs (clients)–>Computers. I just mangle ftp packets, like http packets.
When I try to connect with a client’s computer for testing a FTP server, the Filezilla client displays the message “Connection established, waiting for welcome message…”
I don’t know why this is not working. Any help is appreciated guys, I need this service but I’m in the end of my resources, just cannot make it work. Maybe I tried so much examples, so that I miss a very small detail that is causing this mess. If you need any details about config, let me know.
Thanks in advance.
B.