Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add back Vrf interfaces in firewall

...

Feature

Support

Comment

BGP+


Code Block
languageros
/routing bgp template
add name=bgp-template1 vrf=vrf1
/routing bgp vpls
add name=bgp-vpls1 site-id=10 vrf=vrf1
/routing bgp vpn
add label-allocation-policy=per-vrf vrf=vrf1


E-mail+


Code Block
languageros
/tool e-mail
set address=192.168.88.1 vrf=vrf1


IP Services+

VRF is supported for telnet, www, ssh, www-ssl, api, winbox, api-ssl services. The ftp service does not support changing the VRF.

Code Block
languageros
/ip service
set telnet vrf=vrf1


L2TP Client+


Code Block
languageros
/interface l2tp-client
add connect-to=192.168.88.1@vrf1 name=l2tp-out1 user=l2tp-client 


MPLS+


Code Block
languageros
/mpls ldp
add vrf=vrf1


Netwatch

+


Code Block
languageros
/tool netwatch
add host=192.168.88.1@vrf1


NTP

+


Code Block
languageros
/system ntp client
set vrf=vrf1
/system ntp server
set vrf=vrf1


OSPF

+


Code Block
languageros
/routing ospf instance
add disabled=no name=ospf-instance-1 vrf=vrf1


ping

+


Code Block
languageros
/ping 192.168.88.1 vrf=vrf1


RADIUS

+


Code Block
languageros
/radius add address=192.168.88.1@vrf1
/radius incoming set vrf=vrf1


RIP

+


Code Block
languageros
/routing rip instance
add name=rip-instance-1 vrf=vrf1


RPKI

+


Code Block
languageros
/routing rpki
add vrf=vrf1


SNMP

+


Code Block
languageros
/snmp
set vrf=vrf1



EoIP

+


Code Block
languageros
/interface eoip
add remote-address=192.168.1.1@vrf1


IPIP

+


Code Block
languageros
/interface ipip 
add remote-address=192.168.1.1@vrf1


GRE

+


Code Block
languageros
/interface gre 
add remote-address=192.168.1.1@vrf1


SSTP-client

+


Code Block
languageros
/interface sstp-client 
add connect-to=192.168.1.1@vrf1


OVPN-client

+


Code Block
languageros
/interface ovpn-client
add connect-to=192.168.1.1@vrf1


L2TP-ether

+


Code Block
languageros
/interface l2tp-ether
add connect-to=192.168.2.2@vrf


VXLAN

+


Code Block
languageros
/interface vxlan
add vni=10 vrf=vrf1


Fetch

+

Code Block
languageros
/tool/fetch
address=10.155.28.236@vrf1 mode=ftp src-path=my_file.pcap user=admin password=""
DNS

+

Starting from RouterOS v7.15

Code Block
languageros
/ip dns set vrf=vrf1
DHCP-Relay

+

Starting from RouterOS v7.15

Code Block
languageros
/ip dhcp-relay set dhcp-server-vrf=vrf1
If dhcp-client is in vrf - special parameter in "ip dhcp-relay" configuration is not needed

VRF interfaces in firewall

Warning

Before RouterOS version 7.14, firewall filter rules with the property in/out-interface would apply to interfaces within a VRF instance. Starting from RouterOS version 7.14, these rules no longer target individual interfaces within a VRF, but rather the VRF interface as a whole.


Started from version 7.14 when interfaces are added in VRF - virtual VRF interface is created automatically. If it is needed to match traffic which belongs to VRF interface, VRF virtual interface should be used in firewall filters, for example:

Code Block
languageros
/ip vrf add interfaces=ether5 name=vrf5
/ip firewall filter add chain=input in-interface=vrf5 action=accept

If there are several interfaces in one VRF but it is needed to match only one of these interfaces - marks should be used. For example:

Code Block
languageros
/ip vrf add interface=ether15,ether16 vrf=vrf1516
/ip firewall mangle
add action=mark-connection chain=prerouting connection-state=new in-interface=ether15 new-connection-mark=input_allow passthrough=yes 
/ip firewall filter
add action=accept chain=input connection-mark=input_allow

Examples

Simple VRF-Lite setup

...