Community discussions

MikroTik App
 
jimlill
just joined
Topic Author
Posts: 24
Joined: Wed Dec 26, 2018 9:48 pm

Port Forwarding seemed simple, but...

Fri Mar 10, 2023 1:40 pm

I want to forward inbound connections from the public WAN on a specific port to the same port on a specfic machine on my LAN. I have found/used several rules to do this but they must be incorrect as they affect outbound stuff too.

Assuming my public IP is 64.232.1.29
Port to forward is 8073
IP and Port on LAN machine is 192.168.1.73 8073

what is the correct /ip firewall nat command I should use?

Sorry if this seems simple and a redundant question but none of the examples or guidance I found so far work

Thanks

Jim
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19107
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Port Forwarding seemed simple, but...

Fri Mar 10, 2023 1:50 pm

check out Para E - viewtopic.php?t=182373
 
jimlill
just joined
Topic Author
Posts: 24
Joined: Wed Dec 26, 2018 9:48 pm

Re: Port Forwarding seemed simple, but...

Fri Mar 10, 2023 1:56 pm

Thank You!....
 
jimlill
just joined
Topic Author
Posts: 24
Joined: Wed Dec 26, 2018 9:48 pm

Re: Port Forwarding seemed simple, but...

Fri Mar 10, 2023 4:40 pm

that guidance lead me to try

/ip firewall nat add chain=dstnat dst-port=8073 action=dst-nat protocol=tcp to-address=192.168.1.73 to-port=8073

but that is what I already had that doesn't work as I need

That interferes with outbound traffic, whereas I only want to forward inbound.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19107
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Port Forwarding seemed simple, but...

Fri Mar 10, 2023 5:47 pm

No the guidance certainly did not!!

Where is the dst-address=WANIP of the router for fixed//static WANIP OR
where is the out-interface-list=WAN for dynamic wanip or any variation needed for hairpin NAT.
 
jimlill
just joined
Topic Author
Posts: 24
Joined: Wed Dec 26, 2018 9:48 pm

Re: Port Forwarding seemed simple, but...

Fri Mar 10, 2023 6:09 pm

Thanks again.... let me re-read that again.....
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19107
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Port Forwarding seemed simple, but...

Fri Mar 10, 2023 6:17 pm

Thanks again.... let me actually read the reference.....
Fixed it for ya
(another clue that you didnt is the fact that you still have both dst-port and to-port LOL )
 
jimlill
just joined
Topic Author
Posts: 24
Joined: Wed Dec 26, 2018 9:48 pm

Re: Port Forwarding seemed simple, but...

Fri Mar 10, 2023 6:26 pm

fixed....

Who is online

Users browsing this forum: CGGXANNX and 46 guests