Community discussions

MikroTik App
 
NTXsp
just joined
Topic Author
Posts: 5
Joined: Wed Dec 22, 2021 2:23 pm

Port Forwarding with VRF Lite

Mon Aug 08, 2022 9:08 pm

Hi to all!!
I need to do a port forwarding to an internal server but I don't know how to do it (RouterOS 7.4)
This server is in other routing table (not in main table, due to VRF Lite configuration)

When I try to add a dst-nat to this server (in firewall->nat) I see "routing mark" and "connection mark" parameters but doesn't work.
(I already have routing and mangle rules for masquerade and internet access where I use connection mark and then specific the new-routing-mark and it works well)

Have I add mangle rules first and then dst-nat with routing mark parameter? Or is it not necessary? How I can do these rules?
Is there anything else to do afterwards?

Thanks and regards,
 
NTXsp
just joined
Topic Author
Posts: 5
Joined: Wed Dec 22, 2021 2:23 pm

Re: Port Forwarding with VRF Lite

Wed Aug 10, 2022 5:14 pm

Hi!
It works when I add this routing rule: scr-address 0.0.0.0/0 dst-address 192.168.10.0/24 lookup vrf10
but this rule can accept connections from everywhere and I only want connections from internet (and not from other networks of other vrf's)
how can do more specific??

Thanks!!
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: Port Forwarding with VRF Lite

Wed Aug 10, 2022 5:38 pm

Place
src-address=10.0.0.0/8 dst-address=192.168.10.0/24 action=drop
src-address=172.16.0.0/12 dst-address=192.168.10.0/24 action=drop
src-address=192.168.0.0/16 dst-address=192.168.10.0/24 action=drop

before your rule.

What do you mean by "VRF lite"? Manually configured routing marks and routing tables?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Port Forwarding with VRF Lite

Wed Aug 10, 2022 5:42 pm

VRF lite is cisco terminology for VRF setups without MPLS.
 
NTXsp
just joined
Topic Author
Posts: 5
Joined: Wed Dec 22, 2021 2:23 pm

Re: Port Forwarding with VRF Lite

Wed Aug 10, 2022 7:10 pm

Place
src-address=10.0.0.0/8 dst-address=192.168.10.0/24 action=drop
src-address=172.16.0.0/12 dst-address=192.168.10.0/24 action=drop
src-address=192.168.0.0/16 dst-address=192.168.10.0/24 action=drop

before your rule.

What do you mean by "VRF lite"? Manually configured routing marks and routing tables?
thank you, it's true.. it's as simple as drop all local networks before accept the rest.. :lol:
I'm going to try it tomorrow

Yes, I mean VRF Lite as VRF configuration without MPLS.

Regards!

Who is online

Users browsing this forum: Benzebub, Bing [Bot], Google [Bot], GoogleOther [Bot], litogorospe, llamajaja, washcroft and 80 guests