Pages

Thursday, December 24, 2015

NAT with MikroTik ( One to One Mapping)


Using Multiple Public IP to NAT private IP addresses


If we use private ip in our server and want to access that server from internet then we need to set 1 to 1 netmap bellow are the configuration of netmap, you just need to change the public IP, Private IP and WAN interface name as per your configuration.

say we have 4 public ip address 10.10.55.171 to 10.10.55.174
and we want to netmap private IP address 192.168.123.71 to 192.168.123.74


/ip address add address=10.10.55.171/32 interface=wan
/ip address add address=10.10.55.172/32 interface=wan
/ip address add address=10.10.55.173/32 interface=wan
/ip address add address=10.10.55.174/32 interface=wan

/ip firewall nat add chain=dstnat dst-address=103.10.55.171 action=dst-nat to-addresses=192.168.123.71
/ip firewall nat add chain=dstnat dst-address=103.10.55.172 action=dst-nat to-addresses=192.168.123.72
/ip firewall nat add chain=dstnat dst-address=103.10.55.173 action=dst-nat to-addresses=192.168.123.73
/ip firewall nat add chain=dstnat dst-address=103.10.55.174 action=dst-nat to-addresses=192.168.123.74

/ip firewall nat add chain=srcnat src-address=192.168.123.71 action=src-nat to-addresses=103.10.55.171
/ip firewall nat add chain=srcnat src-address=192.168.123.72 action=src-nat to-addresses=103.10.55.172
/ip firewall nat add chain=srcnat src-address=192.168.123.73 action=src-nat to-addresses=103.10.55.173
/ip firewall nat add chain=srcnat src-address=192.168.123.74 action=src-nat to-addresses=103.10.55.174

1 comment:

  1. New gamers depositing with crypto can seize a 125% match bonus as much as} $1250, which is legitimate three times. betmove It’s the same for fiat deposits only they get one hundred pc as much as} $1000. That mentioned, we’d prefer to see more recreation studio partnerships sooner or later right here. The one hundred fifty mobile games is sufficient for gamers on the lookout for a traditional on line casino library, but a more continuously refreshed ‘new games’ menu would improve this on line casino a lot.

    ReplyDelete