I would like to port forward multiple ips on the same interface.
69.69.69.100 eth1 → admin interface to Mikrotik
69.69.69.101:80 eth1 → 192.168.2.101:80 eth2
69.69.69.102:80 eth1 → 192.168.2.102:80 eth2
69.69.69.103:80 eth1 → 192.168.2.103:80 eth2
69.69.69.104:80 eth1 → 192.168.2.104:80 eth2
if i go to http://69.69.69.100 id like to to to the web admin interface of the Mikrotik
if i go to http://69.69.69.101 i’d like to go to the web server at 192.168.2.101
sorry…I’m not sure what I was thinking. It’s been a long day. Either way, the syntax all looks correct. Do your rules match when you try to connect to the public IP?
(there is no need for src-nat unless you want that, too).
When you look at winbox, you will see a packet counter and byte counter. Does that packet counter increase when you open a web browser to http://69.69.69.10/
Ok, here is my setup.
Public IP’s 10.10.10.10/25 and 10.10.10.104/25 on interface=Public
Local address 192.168.30.104/24 the server is located on a private network with a gateway on interface=Local
My basic question is, can a single interface with 2 or more IP’s be used to port forward to different servers?
Doh! I found the problem. I should have used dst-address instead of src-address
Change
add action=dst-nat chain=dstnat comment=“” disabled=no dst-port=80 protocol=
tcp src-address=10.10.10.104 to-addresses=192.168.30.104 to-ports=80
to
add action=dst-nat chain=dstnat comment=“” disabled=no dst-port=80 protocol=
tcp dst-address=10.10.10.104 to-addresses=192.168.30.104 to-ports=80