########### # Preamble ########### log syslog all; timeformat protocol iso long; router id 198.18.2.4; ########## # Filters ########## filter all_dynamic { if (source ~ [ RTS_OSPF, RTS_OSPF_EXT1, RTS_OSPF_EXT2, RTS_STATIC ]) then accept; reject; }; ################## # Direct protocol ################## protocol direct { ipv4; ipv6; }; ################## # Device protocol ################## protocol device {} ################## # Kernel protocol ################## protocol kernel kernel6 { kernel table 0; learn; ipv6 { table master6; import none; export filter all_dynamic; }; } protocol kernel kernel4 { kernel table 0; learn; ipv4 { table master4; import none; export filter all_dynamic; }; } ################## # Static protocol ################## protocol static static6 { ipv6 { table master6; import all; }; } protocol static static4 { ipv4 { table master4; import all; }; } ################ # OSPF protocol ################ protocol ospf v2 core4 { ipv4 { export none; import all; }; area 0 { interface "lo1" { stub yes; }; interface "genet0" { type ptp; authentication cryptographic; password "..." { algorithm hmac sha256; }; }; }; } protocol ospf v3 core6 { ipv6 { export none; import all; }; area 0 { interface "lo1" { stub yes; }; interface "genet0" { type ptp; authentication cryptographic; password "..." { algorithm hmac sha256; }; }; }; }