summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Fuchs <mfuchs@pfsense.org>2007-06-24 21:03:25 +0000
committerMartin Fuchs <mfuchs@pfsense.org>2007-06-24 21:03:25 +0000
commit8fc63cd85d228fee1480f2fdda0ab4c5dd14e051 (patch)
tree0d10e9a00e07ea62e1bceb74a0fa7c55f7c83ecb
parentaf624dbc832018dd8bb568153c2ed256f2984bba (diff)
downloadpfsense-8fc63cd85d228fee1480f2fdda0ab4c5dd14e051.zip
pfsense-8fc63cd85d228fee1480f2fdda0ab4c5dd14e051.tar.gz
Add Type-Of-Service-passthru for server and client
-rw-r--r--etc/inc/openvpn.inc4
-rw-r--r--usr/local/pkg/openvpn.xml6
-rw-r--r--usr/local/pkg/openvpn_cli.xml6
3 files changed, 15 insertions, 1 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 8ec2e5b..457f492 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -441,6 +441,8 @@ EOD;
if ($settings['use_lzo']) $openvpn_conf .= "comp-lzo\n";
+ if ($settings['passtos']) $openvpn_conf .= "passtos\n";
+
if ($settings['dynamic_ip']) {
$openvpn_conf .= "persist-remote-ip\n";
$openvpn_conf .= "float\n";
@@ -655,4 +657,4 @@ function openvpn_print_javascript2() {
EOD;
print($javascript);
}
-?> \ No newline at end of file
+?>
diff --git a/usr/local/pkg/openvpn.xml b/usr/local/pkg/openvpn.xml
index ab90599..71511ab 100644
--- a/usr/local/pkg/openvpn.xml
+++ b/usr/local/pkg/openvpn.xml
@@ -285,6 +285,12 @@
<type>input</type>
</field>
<field>
+ <fieldname>passtos</fieldname>
+ <fielddescr>Pass Type-Of-Service</fielddescr>
+ <description>Checking this will set the TOS field of the tunnel packet to what the payload's TOS is.</description>
+ <type>checkbox</type>
+ </field>
+ <field>
<fieldname>custom_options</fieldname>
<fielddescr>Custom options</fielddescr>
<description>You can put your own custom options here, separated by semi-colons (;). They'll be added to the server configuration.</description>
diff --git a/usr/local/pkg/openvpn_cli.xml b/usr/local/pkg/openvpn_cli.xml
index d199a77..3495f40 100644
--- a/usr/local/pkg/openvpn_cli.xml
+++ b/usr/local/pkg/openvpn_cli.xml
@@ -196,6 +196,12 @@
<type>checkbox</type>
</field>
<field>
+ <fieldname>passtos</fieldname>
+ <fielddescr>Pass Type-Of-Service</fielddescr>
+ <description>Checking this will set the TOS field of the tunnel packet to what the payload's TOS is.</description>
+ <type>checkbox</type>
+ </field>
+ <field>
<fieldname>custom_options</fieldname>
<fielddescr>Custom options</fielddescr>
<description>You can put your own custom options here, separated by semi-colons (;). They'll be added to the client configuration.</description>
OpenPOWER on IntegriCloud