Please help, i have some problem, when forwarding my Public IP to Local IP
i already set NAT like manual, but still cannot reach my Local Server from Public IP
the code :
chain=dstnat action=dst-nat to-addresses=192.168.0.252 to-ports=8081
protocol=tcp dst-address=222.124.139.xxx dst-port=8081
That looks about right. How are you testing? Where is the test machine located in relation to the target server? Also, post the output of “/ip address print detail”, “/ip route print detail”, “/interface print”, “/ip firewall export”, and an accurate network diagram.
[ptpm@PTPM] /ip address> print
Flags: X - disabled, I - invalid, D - dynamic
ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.0.1/24 192.168.0.0 192.168.0.255 Local
1 222.124.139.xxx/29 222.124.139.yyy 222.124.139.zzz Internet
[ptpm@PTPM] /ip route> print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 222.124.139.193 1
1 ADC 192.168.0.0/24 192.168.0.1 Local 0
2 ADC 222.124.139.xxx/29 222.124.139.aaa Internet 0
[ptpm@PTPM] /interface> print
Flags: D - dynamic, X - disabled, R - running, S - slave
NAME TYPE MTU L2MTU
0 R Internet ether 1500 1526
1 R Local ether 1500 1524
2 ether3 ether 1500 1524
3 ether4 ether 1500 1524
4 ether5 ether 1500 1524
You either did not read the link I posted, or didn’t implement it right. The configuration you posted only reflects NAT, not hairpin NAT.
You also need to permit that traffic in the forward chain in your firewall filters.
Thanks,[/quote]
You either did not read the link I posted, or didn’t implement it right. The configuration you posted only reflects NAT, not hairpin NAT.
You also need to permit that traffic in the forward chain in your firewall filters.[/quote]
/ip service
set telnet disabled=yes port=23
set ftp disabled=yes port=21
set www disabled=yes port=80
set ssh disabled=no port=220 set www-ssl certificate=none disabled=yes port=443
set api disabled=yes port=8728
set winbox disabled=no port=8291
Ether1 is connected to Internet with public IP, Ether2 is connected to private WAN, Ether 3 is connected to some servers, Ether4 and Ether5 are connected to LAN (2 segments). Everything is OK except the port forwarding of port 443 to my SSL server. The counter on this NAT rule is never moving. As configured, there is no enabled service using port 443 and this port is allowed by firewall. Please help on this.
I added those 3 rules that are given on the link provided, and I am still unable to access it. I am trying with
90.x.x.x/mywebsite - this one gives Error 404: Not Found
90.x.x.x - no response!
If I disable the first rule I have added, I am able to access web page for mikrotik router configuration.
If I set in-interface to my pppoe interface, I am again able to access mikrotik router web configuration.
So, why I cant access it using
PublicIP/mywebsite
and also how can I disable login to my router from public IP address? In NAT I have additional default srcnat masquerade rule.
Please, could someone help me with this problem. I can´t set that, to redirect some port (RDP, PPTP connections to another internal mikrotik and http redirection to an internal web server).
Hi kangndo, I add the Route that you mentioned, but it looks like nothing change. I see the packages but can´t see the Web server (going to the public IP:8000).
What is the wan connection method, pppoe client?
Try,
Firewall>Nat> add chain=dstnat in-interface=“pppoe client interface” protocol=tcp Dst. Port=“the port” action dst-nat to-addresses= “the local ip” to-ports=“the port”
I have a public static IP configured in the Ether1 interface (190.2.37.X), and is wired to a Modem. I have a Gatway address (190.2.37.(X+1)) in the same submask than my public IP. Is this a PPPOE?
It doesn’t work, but now when i write the public IP in the page and do not show I do not see the packages going trough this policy (the one you mentioned)
I Test making the same, but in the internal network. I set if an internal IP try to go the Local IP:8000 redirect (dst-nat) to the local ip (10.0.0.201:80), but doesent work too…