Sorry for me bad English, but im from Poland and never learn this language…
Im use MT 2.8 , this is my small network :
How redirect ports or IP-s from server (192.168.1.200) to outside ? On server runs Apache, from local network is working on browser’s address http://192.168.1.200 , but dont work from internet : http://80.55.159.106.
[admin@MikroTik] ip firewall src-nat> print
Flags: X - disabled, I - invalid, D - dynamic
0 src-address=192.168.1.200/32 action=nat to-src-address=80.55.159.106
[admin@MikroTik] ip firewall dst-nat> print
Flags: X - disabled, I - invalid, D - dynamic
0 dst-address=80.55.159.106/32 action=nat to-dst-address=192.168.1.200
remove the rule that encompouses the entire 192.168.1.0/24 network because that is incorrect. Those two posted above are the only ones you’ll need. Make sure there aren’t any rules in the forward filter of your firewall blocking any of the ports you are trying to access (http port 80 for example). Also when this rule is configured you’ll have a tough time accessing the MT router from the WAN interface because all requests are going to be forwarded to 192.168.1.200, so you’ll have to manage the router locally unless you can get a second IP address from your ISP.
For managing the router from the WAN side it would be sufficient to change the http service port (under “/ip service”) to something else than 80. Then just enter this port number in WinBox connection dialog, like:
1.2.3.4:81, if you changed the web port to port 81…
yeah he may want to do that anyway so not to confuse the router having two hosts listening on the same IP with the same service.. might cause problems.
DESTINATION-NAT shows any traffic of packets, but SRC-NAT is traffic = zero…
I moved this rule to first position , masquerade to second = still zero traffic…
in “Filter Rules” dont have any rules.
Pls help me, it is very big problem - my company website dont exist…
I make some printscreens for better visualization of my problem :
Try changing the masquerade rule to only masq traffic coming from 192.168.1.0/24 (or however big the network is).
src-address=192.168.1.0/24 instead of src-address=0.0.0.0 (which means all traffic).
I doubt it matters, and I’m not sure if you can do this with NAT rules, but try and move the src-nat rule to the top of the list above the masquerade rule.
is the public IP address for the local client (192.168.1.200) setup on the WAN interface of the router?
If it isn’t you need to add it for this to work.
EDIT::: sorry forgot you’re using only one IP address…
wait.. thats the problem.. the rule isn’t being matched because its always going to have a src-address of 80.xx.xx.xx whatever your public address is because you’re only using 1 static IP address on the WAN side.. so you really don’t need the src-nat rule cause the masquerade rule does practically the same thing…
What you should do is get a second static IP address and use the one you have now for your masqueraded clients and set the new one up for 1:1 NAT.