Hello,
we have a Routerboard 1100AH with RouterOS 5.8.
Now we want to NAT some Public IP´s to private ones and also a general NAT-Rule for the other private IP´s.
example:
localnet= 10.0.0.0/8
wan-ip=1.1.1.0/24
What I´ve done:
define IP-Adresses
add address=10.1.1.1/8 disabled=no interface=ether2-lan network=10.0.0.0
add address=1.1.1.1/24 disabled=yes interface=ether1-wan network=1.1.1.0
Client 1
add address=1.1.1.2/24 disabled=yes interface=ether1-wan network=1.1.1.0
Client 2
add address=1.1.1.3/24 disabled=yes interface=ether1-wan network=1.1.1.0
Client 3
add address=1.1.1.4/24 disabled=yes interface=ether1-wan network=1.1.1.0
Client 4
add address=1.1.1.5/24 disabled=yes interface=ether1-wan network=1.1.1.0
...and so on
define default route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=1.1.1.254 scope=30 target-scope=1
default nat + public ip natting
Client 1
add action=src-nat chain=srcnat disabled=no out-interface=ether1-wan src-address=10.1.1.2 to-addresses=1.1.1.2
add action=dst-nat chain=dstnat disabled=no dst-address=1.1.1.2 in-interface=ether1-wan to-addresses=10.1.1.2
Client 2
add action=src-nat chain=srcnat disabled=no out-interface=ether1-wan src-address=10.1.1.3 to-addresses=1.1.1.3
add action=dst-nat chain=dstnat disabled=no dst-address=1.1.1.3 in-interface=ether1-wan to-addresses=10.1.1.3
Client 3
add action=src-nat chain=srcnat disabled=no out-interface=ether1-wan src-address=10.1.1.4 to-addresses=1.1.1.4
add action=dst-nat chain=dstnat disabled=no dst-address=1.1.1.4 in-interface=ether1-wan to-addresses=10.1.1.4
...and so on
General Nat-Rule
add action=src-nat chain=srcnat disabled=no out-interface=ether1-wan src-address=10.0.0.0/8 to-addresses=1.1.1.1
- This seems to work, but now there is a problem that clients with public ip randomly loose (every 5-10 minutes) their connection for about 1 minute.They can´t access the internet. (about 70 clients with public ip´s)
- Also it seems that not all ports with services are reachable from outside of the network, especially web-services.
- Clients with public IP cannot reach other clients with public ip´s. I can´t figure out whats wrong.
The Netmap-function shouldn´t be the solution, because in my opionen it´s only for equal subnets (public - local).
Hope you can point me to the right direction.