Hello, I had a question, I was searching on the Internet when I came across IP forwarding in Linux, it was interesting to me and I tried it and they were connected to each other in two separate networks. Basically, every packet sent to the server one was automatically forwarded to the server two without tunneling ! , without being in the same gateway. Now the question is, how can this work be done with Mikrotik?
this command running in linux :
sysctl net.ipv4.ip_forward=1
iptables -t nat -A PREROUTING -p tcp --dport 22 -j DNAT --to-destination “server1”
iptables -t nat -A PREROUTING -j DNAT --to-destination “server2”
iptables -t nat -A POSTROUTING -j MASQUERADE