From 8fc63cd85d228fee1480f2fdda0ab4c5dd14e051 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sun, 24 Jun 2007 21:03:25 +0000 Subject: [PATCH] Add Type-Of-Service-passthru for server and client --- etc/inc/openvpn.inc | 4 +++- usr/local/pkg/openvpn.xml | 6 ++++++ usr/local/pkg/openvpn_cli.xml | 6 ++++++ 3 files changed, 15 insertions(+), 1 deletion(-) 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