Hello.
I am relatively new to RouterOS and have a configuration problem.
I have a Mikrotik 3011 where I set up a WAN interface (ether1) connected to my ISP 5 Public IP that was assigned to me by the supplier.
Connected to the LAN interface (ether2) there are 2 servers connected.
I entered a route directed towards the gateway indicated by my ISP and I configured two complete nat thus transferring two Public IPs to the two servers.
Configuration (the IPs are an example):
/ip address
add address=123.123.123.2/29 comment=“IP 1” interface=eth1 network=123.123.123.0
add address=123.123.123.3/29 comment=“IP 2” interface=eth1 network=123.123.123.0
add address=123.123.123.4/29 comment=“IP 3” interface=eth1 network=123.123.123.0
add address=123.123.123.5/29 comment=“IP 4” interface=eth1 network=123.123.123.0
add address=123.123.123.6/29 comment=“IP 5” interface=eth1 network=123.123.123.0
add address=192.168.1.1/24 comment=“LAN Gateway” interface=eth2 network=192.168.1.0
/ip route
add comment=Gateway distance=1 gateway=123.123.123.1
/ip firewall nat
add action=src-nat chain=srcnat comment=“Server 1” out-interface=eth1 src-address=192.168.1.2 to-addresses=123.123.123.2
add action=dst-nat chain=dstnat comment=“Server 1” in-interface=eth2 dst-address=123.123.123.2 to-addresses=192.168.1.2
add action=src-nat chain=srcnat comment=“Server 2” out-interface=eth1 src-address=192.168.1.3 to-addresses=123.123.123.3
add action=dst-nat chain=dstnat comment=“Server 2” in-interface=eth2 dst-address=123.123.123.3 to-addresses=192.168.1.3
The problem is the following:
Assigning public IP to servers works. If I try to establish a connection from one public IP to another it is not reachable.
(from 123.123.123.2 to 123.123.123.3)
Thanks in advance to all those who will reply, if there is need for more information I will be happy to provide it.