Community discussions

MikroTik App
 
congds
just joined
Topic Author
Posts: 16
Joined: Wed Dec 06, 2017 4:14 am

Hairpin NAT is not working

Wed Dec 06, 2017 9:22 am

Dear all,
I'm a new member. I have problem with hairpin nat, I read many topic in forum and config by https://wiki.mikrotik.com/wiki/Hairpin_NAT but not working.
My netwowrk have 6 port WAN (load balancing - PCC (Per Connection Classifier)) and 1 port LAN (connect to Switch layer 3 (8 vlan))
Ether1 - WAN1 - IP address 1.1.1.1
Ether2 - WAN2 - IP address 2.2.2.2
Ether3 - WAN3 - IP address 3.3.3.3
Ether4 - WAN4 - IP address 4.4.4.4
Ether5 - WAN5 - IP address 5.5.5.5
Ether6 - WAN6 - IP address 6.6.6.6
Ether7 - LAN - IP address 192.168.10.254
When I from outsite I can remote desktop to server, but when I from inside, i can not remote desktop to server by ip WAN
************************************************
ip firewall nat print all
Flags: X - disabled, I - invalid, D - dynamic
0 chain=srcnat action=masquerade protocol=tcp src-address=192.168.10.0/24
dst-address=192.168.10.253 out-interface=ether7 dst-port=3389 log=no
log-prefix=""
2 ;;; DHCP Server
chain=dstnat action=dst-nat to-addresses=192.168.10.253 to-ports=3389 protocol=tcp dst-address-type=local in-interface=!ether7 dst-port=3389 log=no
log-prefix=""
8 ;;; Viettel1-Ether1-WAN1
chain=srcnat action=masquerade out-interface=Viettel1-Ether1-WAN1
log=no log-prefix=""
9 ;;; Viettel2-Ether2-WAN2
chain=srcnat action=masquerade out-interface=Viettel2-Ether2-WAN2
log=no log-prefix=""
10 ;;; VNPT1-Ether3-WAN3
chain=srcnat action=masquerade out-interface=VNPT1-Ether3-WAN3
log=no log-prefix=""
11 ;;; VNPT2-Ether4-WAN4
chain=srcnat action=masquerade out-interface=VNPT2-Ether4-WAN4
log=no log-prefix=""
12 ;;; VNPT4-Ether6-WAN5
chain=srcnat action=masquerade out-interface=VNPT4-Ether6-WAN5
log=no log-prefix=""
13 ;;; VNPT3-Ether5-WAN6
chain=srcnat action=masquerade out-interface=VNPT3-Ether5-WAN6 log=no
log-prefix=""
************************************************
Please advice me,
Thank you
 
User avatar
Anumrak
Forum Guru
Forum Guru
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: Hairpin NAT is not working  [SOLVED]

Wed Dec 06, 2017 4:07 pm