A ip: 1.1.1.1
B ip: 2.2.2.2
C ip: 3.3.3.3
B is a Routeros router
All three are public networks.
A accesses C through B.
You can’t use vpn, just nat.
How does this NAT do?
Example:
A Visit http://2.2.2:1963 Actually Visit 3.3.3.3:1963
I don’t know if it can be implemented on Routeros.
But I heard that Routeros firewall is based on iptables.
If B is a Centos server, he can use:
= = =
Iptables - t NAT - I PREROUTING - P TCP – dport 440:65535 - J DNA T – to 3.3.3.3
Iptables-t nat-I POSTROUTING-p tcp-dport 440:65535-j MASQUERADE
Iptables - t NAT - I PREROUTING - P UDP – dport 440:65535 - J DNA T – to 3.3.3.3
Iptables-t nat-I POSTROUTING-p udp-dport 440:65535-j MASQUERADE
= = =
to Implementing functions
I converted the above command into Routeros command.
But he doesn’t work. Maybe I made the wrong transition.
Who can help me?
Thanks a lot
My English is not very good. If there are any mistakes in the statement, I will correct them.