Hello everyone, I bought Mikrotik(hap ax2) for the first time after many years on TP Link, so I ask for your help.
We have 2 computers:
- 192.168.88.251 - a computer with 3 DayZ game servers
Required ports:
2302-2308, 27016, 2312 - first (TCP + UDP)
2402-2408, 27017, 2412 - second (TCP + UDP)
2502-2508, 27018, 2512 - third (TCP + UDP)
- 8766 bonus port
- 192.168.88.252 - home GiTea server
Required port 3000 TCP
Before I changed the router, on TP-Link I simply reserved the MAC address of the first computer and set it to 192.168.0.200 (so that it was outside DHCP) and the ports were also open. This was enough to:
- the game servers were visible on the Internet
- they could be connected to
- they were visible online (Steam Querry) in my case it was 27016, 27017 and 27018 respectively for each server.
On Mikrotik there are two problems:
- Gitea does not work
- The game servers do not show online, but players can connect and play too.
What settings did I do:
- First of all IP > DHCP SERVER > LEASES
I did "Make Static" both 192.168.88.251 and 252 - IP > Firewall > Nat
I created rules:
UDP separately and TCP separately for each range
a) 2302-2308
b) 27016
c) 2312
d) 2402-2408
e) 27017
e) 2412
f) 2502-2508
g) 27018
h) 2512
i) 8766
with the following settings:
- chain dst - nat
- protocol - udp and tcp separate rules
- port specified in "dst.port"
- in interface "ether1"
- action "dst.nat" + "to addresses" set 192.168.88.251
Also entered these commands:
/ip firewall filter disable [find action=fasttrack-connection]
/ip firewall filter add chain=forward action=accept connection-nat-state=dstnat place-before=11
/ip firewall connection remove [find]