aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-05-14 02:23:54 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-05-14 02:23:54 -0400
commita7bb1242d9e2c7b3b6c816071ded9a5e8871433f (patch)
tree2dfdf184c887967c38833b4898f65e315b8fa925
parentf61fd7ef2e4a5a6f6395214b3a70149c63e71d7e (diff)
downloadpfsense-packages-a7bb1242d9e2c7b3b6c816071ded9a5e8871433f.tar.gz
pfsense-packages-a7bb1242d9e2c7b3b6c816071ded9a5e8871433f.tar.bz2
pfsense-packages-a7bb1242d9e2c7b3b6c816071ded9a5e8871433f.zip
Add tcp md5sig support
-rw-r--r--config/openbgpd/openbgpd.inc4
-rw-r--r--config/openbgpd/openbgpd_neighbors.xml12
2 files changed, 16 insertions, 0 deletions
diff --git a/config/openbgpd/openbgpd.inc b/config/openbgpd/openbgpd.inc
index 835c3081..c786f0d9 100644
--- a/config/openbgpd/openbgpd.inc
+++ b/config/openbgpd/openbgpd.inc
@@ -79,6 +79,10 @@ function openbgpd_install_conf() {
if($neighbor['groupname'] == $group['name']) {
$conffile .= " neighbor {$neighbor['neighbor']} {\n";
$conffile .= " descr \"{$neighbor['descr']}\"\n";
+ if($neighbor['md5sigpass'])
+ $conffile .= " tcp md5sig password {$neighbor['md5sigpass']}\n";
+ if($neighbor['md5sigkey'])
+ $conffile .= " tcp md5sig key {$neighbor['md5sigkey']}\n";
foreach($neighbor['row'] as $row) {
$conffile .= " {$row['paramaters']} {$row['parmvalue']} \n";
}
diff --git a/config/openbgpd/openbgpd_neighbors.xml b/config/openbgpd/openbgpd_neighbors.xml
index cc170c0b..28fa87ab 100644
--- a/config/openbgpd/openbgpd_neighbors.xml
+++ b/config/openbgpd/openbgpd_neighbors.xml
@@ -106,6 +106,18 @@
</options>
</field>
<field>
+ <fielddescr>MD5 Signature Password</fielddescr>
+ <fieldname>md5sigpass</fieldname>
+ <description></description>
+ <type>input</type>
+ </field>
+ <field>
+ <fielddescr>MD5 Signature Key</fielddescr>
+ <fieldname>md5sigkey</fieldname>
+ <description></description>
+ <type>input</type>
+ </field>
+ <field>
<fielddescr>none</fielddescr>
<fieldname>none</fieldname>
<type>rowhelper</type>