PfSense2.3.4+ Openbgpd(0.11_9) bgpctl: connect: /var/run/bgpd.sock: No such file
-
Error:
bgpctl: connect: /var/run/bgpd.sock: No such file or directory
Problem:
Service not started
RAW CONFIG:
This file was created by the package manager. Do not edit!
AS 65002
fib-update yes
listen on 192.168.56.101
network
group "group65001" {
remote-as 65001
neighbor 192.168.56.201 {
descr "cisco 65001"
announce all
local-address 192.168.56.101
}
}
deny from any
deny to any
allow from 192.168.56.201
allow to 192.168.56.201My action:
- Change target location of configuration file replaced , because error: /usr/local/etc/bgpd.conf is not readable ( absent in fact)
Original:
vi /usr/local/etc/rc.d/openbgpd
required_files="/usr/local/etc/bgpd.conf"Replace:
vi /usr/local/etc/rc.d/openbgpd
required_files="/var/etc/openbgpd/bgpd.conf"Now i see no error but not started
[2.3.4-RELEASE][admin@pfSense.localdomain]/usr/local/sbin: /usr/local/etc/rc.d/openbgpd restart
openbgpd not running?
Starting openbgpd.
[2.3.4-RELEASE][admin@pfSense.localdomain]/usr/local/sbin: /usr/local/etc/rc.d/openbgpd start –help
Starting openbgpd.How can i see logs fail-start or anythings think of start service?
Tech Info
Name pfSense.localdomain
System pfSense
Serial: d37e1790-47c1-11e7-8654-080027340ffc
Netgate Unique ID: 0200d65d826fcf2a5b52
BIOS Vendor: innotek GmbH
Version: VirtualBox
Release Date: 12/01/2006
Version 2.3.4-RELEASE (i386)
built on Wed May 03 15:22:11 CDT 2017
FreeBSD 10.3-RELEASE-p19The system is on the latest version.
Platform pfSenseOpenBGPD net 0.11_9
OpenBGPD is a free implementation of the Border Gateway Protocol, version 4. It allows ordinary machines to be used as routers exchanging routes with other systems speaking the BGP protocol. Conflicts with Quagga_OSPF; both packages cannot be installed at the same time.Package Dependencies:
openbgpd-5.2.20121209_2 - Change target location of configuration file replaced , because error: /usr/local/etc/bgpd.conf is not readable ( absent in fact)
-
Solved. Just wrong config. Need more accurate and not more. ( not edit files, chown and other, just config )
Good config must be:
This file was created by the package manager. Do not edit!
AS 65002
fib-update yes
holdtime 30
listen on 0.0.0.0
router-id 192.168.56.101
network 192.168.57.0/24
group "GR_65001" {
remote-as 65001
neighbor 192.168.56.201 {
descr "to_as_65001"
announce all
local-address 0.0.0.0
}
}
deny from any
deny to any
allow from 192.168.56.201
allow to 192.168.56.201P.S.
Log installation OpenBGPd at WEB-configurator
Installing pfSense-pkg-OpenBGPD…
Updating pfSense-core repository catalogue...
pfSense-core repository is up to date.
Updating pfSense repository catalogue...
pfSense repository is up to date.
All repositories are up to date.
Updating database digests format: .... done
The following 2 package(s) will be affected (of 0 checked):New packages to be INSTALLED:
pfSense-pkg-OpenBGPD: 0.11_9 [pfSense]
openbgpd: 5.2.20121209_2 [pfSense]Number of packages to be installed: 2
155 KiB to be downloaded.
[1/2] Fetching pfSense-pkg-OpenBGPD-0.11_9.txz: .. done
[2/2] Fetching openbgpd-5.2.20121209_2.txz: …....... done
Checking integrity... done (0 conflicting)
[1/2] Installing openbgpd-5.2.20121209_2…
===> Creating groups.
Creating group '_bgpd' with gid '130'.
===> Creating users
Creating user '_bgpd' with uid '130'.
[1/2] Extracting openbgpd-5.2.20121209_2: …...... done
[2/2] Installing pfSense-pkg-OpenBGPD-0.11_9…
Extracting pfSense-pkg-OpenBGPD-0.11_9: .......... done
Saving updated package information...
done.
Loading package configuration... done.
Configuring package components...
Loading package instructions...
Custom commands...
Executing custom_php_resync_config_command()...done.
Menu items... done.
Services... done.
Writing configuration... done.
Message from openbgpd-5.2.20121209_2:OpenBGPD has been successfully installed.
Configuration file must be created at /usr/local/etc/bgpd.conf
and permission set to 0600.Cleaning up cache... done.
SuccessAny question?
Contact here: http://ciscooc.blogspot.ru/