From 6bf22464d99bc809c57c13a1322735b53d5602f8 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 16 Oct 2007 22:47:15 +0000 Subject: * Add more parameters * Add filtering policies for BGP peers --- packages/openbgpd/openbgpd.inc | 7 +++++++ packages/openbgpd/openbgpd_neighbors.xml | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'packages/openbgpd') diff --git a/packages/openbgpd/openbgpd.inc b/packages/openbgpd/openbgpd.inc index 39dcc66d..29cd3380 100644 --- a/packages/openbgpd/openbgpd.inc +++ b/packages/openbgpd/openbgpd.inc @@ -84,6 +84,13 @@ function openbgpd_install_conf() { } } + // OpenBGPD filters + $conffile .= "deny all\n"; + foreach($openbgpd_neighbors as $neighbor) { + $conffile .= "allow from {$neighbor['neighbor']}\n"; + $conffile .= "allow to {$neighbor['neighbor']}\n"; + } + // Write out the configuration file fwrite($fd, $conffile); diff --git a/packages/openbgpd/openbgpd_neighbors.xml b/packages/openbgpd/openbgpd_neighbors.xml index d9653d57..84455c72 100644 --- a/packages/openbgpd/openbgpd_neighbors.xml +++ b/packages/openbgpd/openbgpd_neighbors.xml @@ -117,7 +117,12 @@ + + + + + @@ -129,7 +134,6 @@ - $newoptions = array(); -- cgit v1.2.3