Community discussions

MikroTik App
 
Xaesar
just joined
Topic Author
Posts: 10
Joined: Mon Feb 06, 2023 12:44 am

dst-nat for VLAN bridge

Sat May 06, 2023 8:36 pm

Hi!

I am still rudimentary at best in my understanding of routing, so I have tried to read and see if there is something I am missing.
I recently realized my dst-nat rule did not work for
/ip firewall nat add chain=dstnat action=dst-nat in-interface=bridge dst-port=53 to-addresses=10.0.0.3 protocol=udp
but after changing it to
/ip firewall nat add chain=dstnat action=dst-nat in-interface-list=VLAN dst-port=53 to-addresses=10.0.0.3 protocol=udp
It seems to work fine.
The VLAN list contains all VLAN interfaces, which are in the bridge interface.
Is there something which makes bridges unable to match dst-nat rules?


Cheers,

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

Re: dst-nat for VLAN bridge

Sat May 06, 2023 9:16 pm

Bridges are not interfaces???
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3476
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: dst-nat for VLAN bridge

Sat May 06, 2023 9:33 pm

OP walked right into this one: viewtopic.php?t=173692&hilit=mysteries

There can only be one interface into the routing/firewall. vlan-filtering=yes is likely set, so from the Layer3/IPv4 POV, the interface is the VLAN and its IP – the bridge VLAN filtering just forwards it to the VLAN interface at Layer2/Ethernet.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11627
Joined: Thu Mar 03, 2016 10:23 pm

Re: dst-nat for VLAN bridge

Sun May 07, 2023 12:54 pm

I suspect that @OP also enabled some use-ip-firewall & co ... which might not be necessary if only firewalling between different subnets (carried over VLANs) is necessary. I suggest to read bridge settings section of bridge manual.

Who is online

Users browsing this forum: GoogleOther [Bot] and 173 guests