Community discussions

MikroTik App
 
MrdotApple
newbie
Topic Author
Posts: 43
Joined: Tue Oct 25, 2016 7:44 pm

Cannot connect from LAN to WAN IP

Wed Dec 07, 2016 9:55 pm

Hi,
I have only two firewall rule.
chain=srcnat action=masquerade out-interface=ether1
chain=dstnat action=dst-nat to-addresses=192.168.1.1 to-ports=80 protocol=tcp in-interface=ether1 dst-port=80

My problem is, I have 2 connection on the ether2 interface, 192.168.1.1 (.1 is a win 2012 server), 192.168.1.10 (.10 is a management win 10 client).

When I connect to the server WAN IP from my home PC the website loading, everything right. But when I try to connect from 1.10 management windows 10 client I am getting:
This site can’t be reached

WAN IP ADDRESS refused to connect.

What can be the problem?
 
JB172
Member
Member
Posts: 304
Joined: Fri Jul 24, 2015 3:12 pm
Location: AWMN

Re: Cannot connect from LAN to WAN IP

Wed Dec 07, 2016 10:02 pm

 
estar
Frequent Visitor
Frequent Visitor
Posts: 50
Joined: Wed Dec 07, 2016 9:26 pm

Re: Cannot connect from LAN to WAN IP

Thu Dec 08, 2016 12:29 am

If your connecting via a wireless ap connection you may have default forward not ticked which blocks client to client connections to the ap. That would explain if that's how it's setup. Or if it's not setup like that you need to do some tests like ping the server from the router to check if it can connect to the gateway. If not check the tests from the server itself too. Sounds like your computer works OK or you wouldn't be able to get online.
 
syedwajahat
newbie
Posts: 25
Joined: Mon Dec 05, 2016 12:03 pm
Location: Karachi, Pakistan

Re: Cannot connect from LAN to WAN IP

Fri Dec 09, 2016 5:25 pm

Both Side Nating Enable 1. Mikrotik and 2. Windows Server 2012
 
janus20
Member Candidate
Member Candidate
Posts: 108
Joined: Thu Nov 03, 2016 10:31 am
Location: Pitesti, Romania

Re: Cannot connect from LAN to WAN IP

Fri Dec 09, 2016 9:12 pm

Hi,

Based on your two rules and the fact that you need Hairpin Nat, try this:
/ip firewall nat
add action=masquerade chain=srcnat comment="Access WAN from local LAN" dst-address=192.168.1.1 dst-port=80 out-interface=\
    bridge-LAN protocol=tcp src-address=192.168.1.0/24 to-addresses=192.168.1.1 to-ports=80
bridge-LAN = {local_lan_port or lan_bridge_name }
Hope that helps!

kind regards,