Tristan Pilat
2017-05-10 17:00:50 UTC
Hi OpenBSD team,
I'm facing an odd syntax error in bgpd.conf.
# sysctl -n kern.version
OpenBSD 6.1 (GENERIC.MP) #4: Sat May 6 09:33:37 CEST 2017
***@syspatch-61-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
# bgpd -vnf /etc/bgpd.conf
/etc/bgpd.conf:251: syntax error
# cat -n /etc/bgpd.conf
[…]
250 deny to 192.0.2.1
251 allow to 192.0.2.1 prefix { 203.0.113.0/24, 198.51.100.0/24 } prefixlen <= 24
[…]
But if I substitute the line containing brackets for two lines, it's alright.
deny to 192.0.2.1
allow to 192.0.2.1 prefix 198.51.100.0/24 prefixlen <= 24
allow to 192.0.2.1 prefix 203.0.113.0/24 prefixlen <= 24
The man page however specifies :
prefix address/len or-longer
This rule applies only to UPDATES for the specified prefix.
Multiple entries may be specified, separated by commas or
whitespace, if enclosed in curly brackets:
deny from any prefix { 192.168.0.0/16, 10.0.0.0/8 or-longer }
Am I missing something here?
Regards,
I'm facing an odd syntax error in bgpd.conf.
# sysctl -n kern.version
OpenBSD 6.1 (GENERIC.MP) #4: Sat May 6 09:33:37 CEST 2017
***@syspatch-61-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
# bgpd -vnf /etc/bgpd.conf
/etc/bgpd.conf:251: syntax error
# cat -n /etc/bgpd.conf
[…]
250 deny to 192.0.2.1
251 allow to 192.0.2.1 prefix { 203.0.113.0/24, 198.51.100.0/24 } prefixlen <= 24
[…]
But if I substitute the line containing brackets for two lines, it's alright.
deny to 192.0.2.1
allow to 192.0.2.1 prefix 198.51.100.0/24 prefixlen <= 24
allow to 192.0.2.1 prefix 203.0.113.0/24 prefixlen <= 24
The man page however specifies :
prefix address/len or-longer
This rule applies only to UPDATES for the specified prefix.
Multiple entries may be specified, separated by commas or
whitespace, if enclosed in curly brackets:
deny from any prefix { 192.168.0.0/16, 10.0.0.0/8 or-longer }
Am I missing something here?
Regards,
--
Tristan
Tristan