diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 8ec2e5b070..457f4927f0 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 ab90599781..71511abdd9 100644
--- a/usr/local/pkg/openvpn.xml
+++ b/usr/local/pkg/openvpn.xml
@@ -284,6 +284,12 @@
The maximum number of concurrently connected clients we want to allow.
input
+
+ passtos
+ Pass Type-Of-Service
+ Checking this will set the TOS field of the tunnel packet to what the payload's TOS is.
+ checkbox
+
custom_options
Custom options
diff --git a/usr/local/pkg/openvpn_cli.xml b/usr/local/pkg/openvpn_cli.xml
index d199a7715c..3495f40124 100644
--- a/usr/local/pkg/openvpn_cli.xml
+++ b/usr/local/pkg/openvpn_cli.xml
@@ -195,6 +195,12 @@
Checking this will let the openvpn client choose a dynamic sourceport for this connection.
checkbox
+
+ passtos
+ Pass Type-Of-Service
+ Checking this will set the TOS field of the tunnel packet to what the payload's TOS is.
+ checkbox
+
custom_options
Custom options