Hello to all.
I’m trying to set up port 21 forwarding on RB450 to our FTP server, but can’t get it working, and now I am stuck because can’t find what else to try - I have read through all the related documents and posts, and still no luck, so maybe someone will be able to help me going and see what I did wrong.
Anyway, LAN (192.168.0.0/24) is connected to ether1, and DSL provider to pppoe-out1 (via ether2). Server’s IP is 192.168.0.200, static public IP is 93.x.x.x, router’s FTP service disabled under IP/services. I can ping FTP server from LAN and NAT is working without a flaw.
Here is my nat and filter firewall config:
[admin@MikroTik] > ip addr pri
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 ;;; default configuration
192.168.0.205/24 192.168.0.0 192.168.0.255 ether1
1 D 93.xx.xx.xx/32 212.200.191.127 0.0.0.0 pppoe-out1
[admin@MikroTik] > ip fire filt pri
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; Added by webbox
chain=input action=accept protocol=icmp
1 ;;; Added by webbox
chain=input action=accept connection-state=established
in-interface=pppoe-out1
2 ;;; Added by webbox
chain=input action=accept connection-state=related
in-interface=pppoe-out1
3 ;;; Added by webbox
chain=input action=drop in-interface=pppoe-out1
4 ;;; Added by webbox
chain=forward action=jump jump-target=customer in-interface=pppoe-out1
5 ;;; Added by webbox
chain=customer action=accept connection-state=established
6 ;;; Added by webbox
chain=customer action=accept connection-state=related
7 ;;; Added by webbox
chain=customer action=drop
[admin@MikroTik] > ip fire nat pri
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; Added by webbox
chain=srcnat action=masquerade out-interface=pppoe-out1
1 chain=dstnat action=dst-nat to-addresses=192.168.0.200 to-ports=21
protocol=tcp dst-address=93.xx.xx.xx in-interface=pppoe-out1 dst-port=21
2 chain=srcnat action=src-nat to-addresses=93.xx.xx.xx to-ports=21
protocol=tcp src-address=192.168.0.200 out-interface=ether1 src-port=21
If I change dst-nat action to log, then I get the following log record, so I reckon this should be ok.
14:08:30 firewall,info dstnat: in:pppoe-out1 out:(none), proto TCP (SYN), 82.x.x.x:53982->93.x.x.x:x, len 28
Does anyone have an idea?