Community discussions

MikroTik App
 
jamshidm66
just joined
Topic Author
Posts: 2
Joined: Mon Aug 02, 2021 8:45 pm

Routing problem

Mon Aug 02, 2021 9:08 pm

hi everyone
given info about a problem
1 - i have a server with IPv4:192.168.50.100/24 connected to a port of routerBoard
2 - i have an connected LTE tp-link modem to router and the server has internet through by srcNat it (Not default gateway)
3 - i have another ISP intranet connected to the router and set as default gateway also has static IP


question is :
if srcNat(internet) is enabled for the server , then a dstNat(by intranet) access for http port on the server is not working .
/ip firewall nat add chain=srcnat src-address=192.168.50.100 action=masquerade out-interface=LTE-internet
/ip firewall nat add chain=dstnat protocol=tcp dst-port=80 in-interface=pppoe-intranet action=dst-nat to-addresses=192.168.50.100 to-port=80
but is disabled dstNat works correctly.
so how can i do this case?
thanks in advance
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Routing problem

Tue Aug 03, 2021 5:54 pm

I think you are confused and/or your config is wrong.
/export hide-sensitive file=anynameyouwish

Also draw a network diagram

Who is online

Users browsing this forum: No registered users and 26 guests