diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-11-20 19:51:06 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-11-20 19:51:06 +0000 |
commit | 0bfab70558832850a76bd940b75a7d95af551884 (patch) | |
tree | 17f33f26ce6ce62158a1f8ff1b7e3cbf185feef1 /etc/bgpd.conf | |
parent | 39b327d7e45ab9c05f7d6b68ca1b2a5d619b8ea6 (diff) |
The deny all and allow from any inet prefixlen 8 - 24 will block the default
route already so don't add an additional rule for that. Instead add a commented
allow rule. Idea from Mitja Muzenic (mitja at muzenic dot net)
Diffstat (limited to 'etc/bgpd.conf')
-rw-r--r-- | etc/bgpd.conf | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/bgpd.conf b/etc/bgpd.conf index d5583e5f588..c71a20c0f54 100644 --- a/etc/bgpd.conf +++ b/etc/bgpd.conf @@ -1,4 +1,4 @@ -# $OpenBSD: bgpd.conf,v 1.8 2007/03/29 13:37:35 claudio Exp $ +# $OpenBSD: bgpd.conf,v 1.9 2009/11/20 19:51:05 claudio Exp $ # sample bgpd configuration file # see bgpd.conf(5) @@ -78,8 +78,8 @@ neighbor 10.2.1.1 { deny from any allow from any inet prefixlen 8 - 24 -# do not accept a default route -deny from any prefix 0.0.0.0/0 +# accept a default route (since the previous rule blocks this) +#allow from any prefix 0.0.0.0/0 # filter bogus networks deny from any prefix 10.0.0.0/8 prefixlen >= 8 |