Score:0

Mikrotik NAT rules does not trigger

ao flag
xtg

I have a LAN subnet 192.168.10.0/24 connected to my CCR-1036. this router acts as DHCP server and Hotspot for users to access internet, a third party accounting server (172.17.1.0/30) is connected to this CCR-1036 router as well. The router is behind a FortiGate firewall (192.168.100.0/30) and the firewall is connected to ISP, firewall has a connection on the other side to ESX-i server(192.168.13.0/24 for Server-Farm). I know this router is not needed and is a bottleneck in my network, I'm gonna remove it and connect LAN to firewall directly, but for now... When I'm going to SSH from a client (192.168.10.134) to a server on ESX-i with IP 192.168.13.1 everything works fine, but on the server I appear to have 192.168.100.1 which is the router (CCR-1036) IP address, I don't want my connection gets NAT on CCR-1036 when going to Server-Farm, I want to see my computer IP address connected to the server instead of the router IP address. My connection gets NAT:

18    chain=srcnat action=accept dst-address=192.168.13.0/24 out-interface=ether7-Firewall log=no log-prefix="" 

19    chain=srcnat action=accept dst-address=192.168.10.0/24 out-interface=ether4-LAN log=no log-prefix=""

20    chain=srcnat action=masquerade to-addresses=192.168.100.2 src-address=192.168.10.0/24 log=no log-prefix=""

21    chain=srcnat action=masquerade to-addresses=192.168.100.2 src-address=192.168.60.0/24 log=no log-prefix=""

I tried rule numbers 18 and 19 but when I SSH to a server my connection times out:

ssh: connect to host 192.168.13.1 port 22: Connection timed out

rule number 1 to 17 are the ones predefined by hotspot.

A.B avatar
cl flag
A.B
my guess: there's a missing route on the FortiGate
xtg avatar
ao flag
xtg
the routes in FortiGate is set already
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.