OpenBGPD configuration issue



  • So I looked on sub forum, there is no forum for this package.  Hopefully someone here can help.  I'm new to configuring the OpenBGPD package in Pfsense (2.4.1).  It seems the package generate the bgpd.conf file by itself, yet when I try to start the service, it says "syntax error"?!  Here is the auto generated file:

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

    AS 65505
    fib-update yes
    listen on 192.168.60.2
    router-id 74.95.31.137
    network 0.0.0.0
    group "VerizonBackup" {
    remote-as 1111
    neighbor 192.168.60.1 {
    descr "Verizon Backup"
    announce all 
    local-address 192.168.60.2
    }
    }
    deny from any
    deny to any
    allow from 192.168.60.1
    allow to 192.168.60.1

    So I'm not sure why it would generate something by itself and yet it gives a "syntax error"?

    I'm trying to connect pfsense 2.4.1 to a Cisco ASR1000.  The configuration of the ASR1000 is as follow: (the configuration below is actually "my side" if I HAD use a CISCO ASR1000, so I just need to "convert" the following config into something OpenBGP would understand).

    router bgp 65505

    neighbor  192.168.60.1 remote-as 1111

    neighbor  192.168.60.1 
    default-originate route-map prepend
    route-map
    prepend permit 10
    set metric 100
    set as-path prepend 65505 65505 65505

    Thank you in advance!



  • Nevermind I got it working, I guess that line "network 0.0.0.0" caused issue.  I didn't configure ANYTING in the GUI for that 0.0.0.0, so not sure why they generated a line that it knows is going to cause error… hope this would help someone if they ran into the same problem.



  • That config means advertise a default route and the correct syntax is

    network 0.0.0.0 mask 0.0.0.0
    So you were missing the mask and also the entry for the default route.

    i_p route 0.0.0.0 0.0.0.0 "IP Address of Default Gateway"_


Log in to reply