Hello everybody,
I’ve been searching about my problem here, but unfortunately any topic could help me, I’ve tried everything that I found.
So, my current scenario is: Link!!
Wan1 = 1.1.1.1
Wan2 = 2.2.2.2
Server= 192.168.0.2
What I need is:
The server (192.168.0.2) has nat rule to forward 3389 port, this rule must be available through both links
My mikrotik need to be available through both links as well (web and winbox access)
At this time, I just trying to make the Wan2 work in parallel.
Here are my rules:
On first look, access to router should work from WAN1 and if you remove out-interface=eth4_Wan_Net from mangle rule #2, it should then work for WAN2 too. Dstnat for RDP port is limited to WAN2, so either duplicate the rule for WAN1, or replace in-interface=wan2 with dst-address-type=local.
Sob, sorry it was my mess during typing.
Where there is eth4_Wan_Net, is suppose to be Wan2. I’ve just changed to make it simple for you understand.
So forget about this. (Wan2 = eth4_Wan_Net)
About NAT, yes when I duplicate it works on Wan1, but Wan2 still not working.
What’s happening, the connection just doesn’t happen.
I can see the in packets counters increasing when I try to connect, but fail with timeout connection error.
Analyzing with Torch, I found something that is strange.
The traffic arrives in WAN2_interface, but it doesn’t arrive in DMZ_interface (which is where the server is plugged).
Even if I disable mangles rules, the traffic still not arriving in DMZ_interface.
It seems like if the router doesn’t know where this network is.
No, there is no rule blocking!
And to make sure, I have created a filter rule, that log traffic foward on port 3389 to my server IP, but no packets were registered.
But, when I make a connection to the server from local network, the packets were registered in filter rule.
If you suspect that router might be getting lost in different routing tables, you can use rules like this, to make sure that it uses the right one for selected destination:
Listed below are the log about prerouting rule.:
15:59:11 firewall,info prerouting: in:eth4_Wan_Net out:(none), src-mac 94:87:7c:3a:8c:a1, proto TCP (SYN), REMOTE_IP:51401->WAN2_IP:3389, len 52
15:59:14 firewall,info prerouting: in:eth4_Wan_Net out:(none), src-mac 94:87:7c:3a:8c:a1, proto TCP (SYN), REMOTE_IP:51401->WAN2_IP:3389, len 52
I don’t, at least.
But here are my confs:
ip-forward: yes
send-redirects: yes
accept-source-route: no
accept-redirects: no
secure-redirects: yes
rp-filter: strict
tcp-syncookies: no
max-neighbor-entries: 8192
arp-timeout: 30s
icmp-rate-limit: 10
icmp-rate-mask: 0x1818
route-cache: yes
allow-fast-path: yes
ipv4-fast-path-active: no
ipv4-fast-path-packets: 0
ipv4-fast-path-bytes: 0
ipv4-fasttrack-active: no
ipv4-fasttrack-packets: 0
ipv4-fasttrack-bytes: 0