Community discussions

MikroTik App
 
jamesredvers
just joined
Topic Author
Posts: 1
Joined: Thu Sep 01, 2016 12:04 pm

Multiple WAN IP's & Port Forward

Thu Sep 01, 2016 12:10 pm

Hi,

Just CCR1036-12G-4S running 6.34.3 for a client with a 1Gb WAN connection. It is in and working fine in terms of throughput etc.

Where I am stuck is that we have 5 useable public IP addresses. I have added 2 of them to the SFP1 port and setup a port forward for 3389 traffic. When connecting externally I can connect to their TS farm from either public IP address. I now want to only allow access from 1 specific public IP but cannot get this to work. I have created a dstnat rule as mentioned above which works for ALL public IP addresses currently.

All help welcomed :-)

Cheers,

Stuart.
 
User avatar
voxmaster
just joined
Posts: 12
Joined: Tue Sep 29, 2015 9:53 am
Location: Kyiv

Re: Multiple WAN IP's & Port Forward

Fri Sep 02, 2016 2:09 pm

Try to use dst-address= instead of in-interface=
/ip firewall nat add action=dst-nat chain=dstnat comment=RDP dst-address=[YOUR-PREFERRED-PUBLIC-IP] dst-port=3389 protocol=tcp to-addresses=[Internal-IP] to-ports=3389
/ip firewall nat add action=dst-nat chain=dstnat comment=RDP dst-address=[YOUR-PREFERRED-PUBLIC-IP] dst-port=3389 protocol=udp to-addresses=[Internal-IP] to-ports=3389
 
Rudios
Forum Veteran
Forum Veteran
Posts: 977
Joined: Mon Mar 11, 2013 12:58 pm
Location: The Netherlands

Re: Multiple WAN IP's & Port Forward

Fri Sep 02, 2016 4:49 pm

Or even combine both in-interface AND dst-address.

Who is online

Users browsing this forum: No registered users and 24 guests