Community discussions

MikroTik App
 
kraljek
just joined
Topic Author
Posts: 18
Joined: Fri Apr 24, 2015 8:13 am

DST-NAT allow only from specified SRC address

Mon Sep 28, 2015 12:07 pm

Hi,


how I can specified source adresse that can resolve through the public IP local IP



1.1.1.1 - - -- - ---- 2.2.2.2/Mikrotik/192.168.1.1 ---- - -- - 192.168.1.2


/ip firewall nat add chain=dstnat dst-port=1234 dst-address=2.2.2.2 action=dst-nat \
to-addresses=192.168.1.2 to-port=1234


I want that only 1.1.1.1 can goes to 192.168.1.2 through port 1234, and of course vice versa.
- 192.168.1.2 only can goes to 1.1.1.1

thx
 
ditonet
Forum Veteran
Forum Veteran
Posts: 835
Joined: Mon Oct 19, 2009 12:52 am
Location: Europe/Poland/Konstancin-Jeziorna
Contact:

Re: DST-NAT allow only from specified SRC address

Mon Sep 28, 2015 12:46 pm

src-address=1.1.1.1
Regards,