aboutsummaryrefslogtreecommitdiffstats
path: root/packages/openbgpd/openbgpd.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-10-16 22:47:15 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-10-16 22:47:15 +0000
commit6bf22464d99bc809c57c13a1322735b53d5602f8 (patch)
tree180af4a2630c34e3a7bd24b9b1b0d2333cb65b22 /packages/openbgpd/openbgpd.inc
parent2f3dfc19e6add0df7e92d3e9a2f1bbd3fd3ba725 (diff)
downloadpfsense-packages-6bf22464d99bc809c57c13a1322735b53d5602f8.tar.gz
pfsense-packages-6bf22464d99bc809c57c13a1322735b53d5602f8.tar.bz2
pfsense-packages-6bf22464d99bc809c57c13a1322735b53d5602f8.zip
* Add more parameters * Add filtering policies for BGP peers
Diffstat (limited to 'packages/openbgpd/openbgpd.inc')
-rw-r--r--packages/openbgpd/openbgpd.inc7
1 files changed, 7 insertions, 0 deletions
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);