diff options
Diffstat (limited to 'packages/openbgpd')
-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(); |