Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15394

Beginner Basics • Problem NAT Server, Client's Public IP Not Show in log

$
0
0
Hi guys!

I have installed Ubuntu server, when NAT is configured on the router it is then directed to the Ubuntu server. All IP access records in webserver logs, SSH and all other accesses are in the name of the router. Not in the name of the client's public IP.

The main scenario is following (I will put it with below test rig information, in order to be easier to follow, please don't mind the non-public link IP):

- WAN: 123.123.123.XXX/29
- LAN: 192.168.40.XXX/24
Code:
/ip firewall natchain=srcnat action=masquerade log=no log-prefix="" chain=srcnat action=src-nat to-addresses=IP_WAN src-address=IP_LAN out-interface=WAN log=no log-prefix=""chain=dstnat action=dst-nat to-addresses=IP_LAN dst-address=IP_WAN in-interface=WAN log=no log-prefix="" chain=srcnat action=src-nat to-addresses=IP_WAN src-address=IP_LAN out-interface=WAN
Image

thank's

Statistics: Posted by mchandranugraha — Thu Jan 04, 2024 5:46 pm



Viewing all articles
Browse latest Browse all 15394

Trending Articles