Hello! Here's the thing: I connected WAN (public IP) to MT and forwarded port 80 through NAT to my webserver, which has a local IP address (as presented here: RouterOS - RouterOS - MikroTik Documentation ). Works like a charm, but when I look into my server's log, there is only one source IP for all the connections, and that is MT's IP. Is there a way to forward port 80 AND have the real IPs of users who visit my site?
/ip address print detail
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; added by setup
address=46.45.xxx.xxx/27 network=46.45.xxx.xxx interface=WAN actual-interface=WAN
1 address=192.168.99.131/24 network=192.168.99.0 interface=Local actual-interface=Local
2 address=178.211.99.11/27 network=178.211.99.0 interface=WAN actual-interface=WAN
/ip route print detail
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
0 A S ;;; added by setup
dst-address=0.0.0.0/0 gateway=46.45.xxx.xxx gateway-status=46.45.xxx.xxx reachable via WAN distance=1 scope=30 target-scope=10
1 S ;;; added by setup
dst-address=0.0.0.0/0 gateway=46.45.xxx.xxx gateway-status=46.45.xxx.xxx reachable via WAN distance=1 scope=30 target-scope=10
2 ADC dst-address=46.45.xxx.xxx/27 pref-src=46.45.xxx.xxx gateway=WAN gateway-status=WAN reachable distance=0 scope=10
3 ADC dst-address=178.211.99.0/27 pref-src=178.211.99.11 gateway=WAN gateway-status=WAN reachable distance=0 scope=10
4 ADC dst-address=192.168.99.0/24 pref-src=192.168.99.131 gateway=Local gateway-status=Local reachable distance=0 scope=10
/interface print detail
Flags: D - dynamic, X - disabled, R - running, S - slave
0 R name="Local" default-name="ether4" type="ether" mtu=1500 mac-address=00:50:56:AD:25:01 fast-path=no
1 R name="WAN" default-name="ether1" type="ether" mtu=1500 mac-address=00:50:56:AD:47:9D fast-path=no
2 X name="eth2" default-name="ether3" type="ether" mtu=1500 mac-address=00:50:56:AD:11:E0 fast-path=no
3 X name="sozlukbu" default-name="ether2" type="ether" mtu=1500 mac-address=00:50:56:AD:42:99 fast-path=no
/ip firewall export"
/ip firewall filter
add chain=forward protocol=tcp
/ip firewall nat
add action=dst-nat chain=dstnat dst-address=178.211.99.11 dst-port=80 protocol=tcp to-addresses=192.168.99.251 to-ports=80
add action=masquerade chain=srcnat