pfSense Support Subscription

Author Topic: OpenBGPD configuration issue  (Read 99 times)

0 Members and 1 Guest are viewing this topic.

Offline bluerains

  • Jr. Member
  • **
  • Posts: 26
  • Karma: +1/-0
    • View Profile
OpenBGPD configuration issue
« on: November 10, 2017, 12:09:25 pm »
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!

Offline bluerains

  • Jr. Member
  • **
  • Posts: 26
  • Karma: +1/-0
    • View Profile
Re: OpenBGPD configuration issue
« Reply #1 on: November 10, 2017, 12:50:41 pm »
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.


Offline Gloom

  • Full Member
  • ***
  • Posts: 226
  • Karma: +5/-0
    • View Profile
Re: OpenBGPD configuration issue
« Reply #2 on: November 13, 2017, 04:22:24 am »
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.

ip route 0.0.0.0 0.0.0.0 "IP Address of Default Gateway"
Never underestimate the power of human stupidity