Using Route-map to redistribute static route to OSPF



  • Hello I am using pfsense 2.3.4-RELEASE-p1. One interface is part of an OSPF area and redistributed connected is selected.

    I also have static route to route trafic to a network connected with a transport vlan.

    I don't want to select " enables the redistribution of kernel routing table " in the GUI, cause too many unwanted static routes will be redistributed.

    I olny want to redistribute some static route.

    ip route 192.168.122.0/24 10.193.20.20
    ip route 192.168.110.4/32 10.193.20.20

    How to do that in the raw config GUI page .

    Here is the content of the config displayed in the status page

    Quagga ospfd.conf

    This file was created by the pfSense package manager. Do not edit!

    password Passport
    interface igb0_vlan33

    router ospf
    ospf router-id 10.193.253.71
    redistribute connected
    network 10.193.253.64/27 area 0.0.0.22
    distribute-list dnr-list out connected
    distribute-list dnr-list out kernel
    distribute-list dnr-list out static
    access-list dnr-list deny 172.16.200.0/30
    access-list dnr-list deny 10.195.55.0/24
    access-list dnr-list deny 10.195.65.0/24
    access-list dnr-list permit any

    Quagga zebra.conf

    This file was created by the pfSense package manager. Do not edit!

    password Passport

    Thank you for your help.