diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-10-16 22:47:15 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-10-16 22:47:15 +0000 |
commit | 6bf22464d99bc809c57c13a1322735b53d5602f8 (patch) | |
tree | 180af4a2630c34e3a7bd24b9b1b0d2333cb65b22 | |
parent | 2f3dfc19e6add0df7e92d3e9a2f1bbd3fd3ba725 (diff) | |
download | pfsense-packages-6bf22464d99bc809c57c13a1322735b53d5602f8.tar.gz pfsense-packages-6bf22464d99bc809c57c13a1322735b53d5602f8.tar.bz2 pfsense-packages-6bf22464d99bc809c57c13a1322735b53d5602f8.zip |
* Add more parameters
* Add filtering policies for BGP peers
-rw-r--r-- | packages/openbgpd/openbgpd.inc | 7 | ||||
-rw-r--r-- | packages/openbgpd/openbgpd_neighbors.xml | 6 |
2 files changed, 12 insertions, 1 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); 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 @@ <option><name>Announce self</name><value>announce self</value></option> <option><name>Announce default-route</name><value>announce default-route</value></option> <option><name>Metric</name><value>set metric</value></option> + <option><name>Multihop</name><value>multihop</value></option> + <option><name>Localpref</name><value>set localpref</value></option> <option><name>Softreconfig in yes</name><value>softreconfig in yes</value></option> + <option><name>Softreconfig in no</name><value>softreconfig in no</value></option> + <option><name>Softreconfig out yes</name><value>softreconfig out yes</value></option> + <option><name>Softreconfig out no</name><value>softreconfig out no</value></option> </options> </rowhelperfield> <rowhelperfield> @@ -129,7 +134,6 @@ </rowhelperfield> </rowhelper> </field> - </fields> <custom_php_command_before_form> $newoptions = array(); |