Changeset 2181


Ignore:
Timestamp:
Sep 19, 2012, 3:27:56 PM (7 years ago)
Author:
matthijs
Message:

luci-openvpn: Allow enabling client-to-client access.

Thanks to Jon Spriggs for this patch.

Closes: #908

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/fon/openvpn/files/etc/config/openvpn

    r2180 r2181  
    2121        option comp_lzo 1
    2222        option max_clients 2
     23        option client_to_client 0
    2324        option persist_key 1
    2425        option persist_tun 1
  • trunk/luci/applications/luci-openvpn/luasrc/model/cbi/openvpn/firewall.lua

    r2179 r2181  
    2020x:value("1", translate("enable"))
    2121x.default = require("luci.model.uci").cursor():get("openvpn", "openvpn", "wan") or "0"
     22
     23local x = s:option(ListValue, "client_to_client", translate("openvpn_ctc", "Other clients"))
     24x:value("0", translate("disable"))
     25x:value("1", translate("enable"))
     26x.default = require("luci.model.uci").cursor():get("openvpn", "openvpn", "client_to_client") or "0"
    2227
    2328local x = s:option(ListValue, "proto", translate("openvpn_proto", "Protocol"))
  • trunk/luci/i18n/english/luasrc/i18n/default.en.lua

    r2179 r2181  
    119119openvpn_client_desc = "Here you can manage your clients"
    120120openvpn_client_title = "Clients"
     121openvpn_ctc = "Other clients"
    121122openvpn_ddns = " You currently have no DynDns configured. <br>If you are on a dial-up line and your ip changes, you need to active DynDns."
    122123openvpn_desc = "Here you can configure your vpn server. VPN allows you to remotely connect to your home network from anywhere in the world."
  • trunk/luci/modules/admin-fon/root/sbin/save-config.sh

    r2179 r2181  
    121121echo "uci import -m openvpn <<EOF"
    122122echo "config 'openvpn' 'openvpn'"
    123 for o in enable lan wan keepalive max_clients proto port tls_auth; do
     123for o in enable lan wan keepalive max_clients proto port tls_auth client_to_client; do
    124124        echo "  option '$o' '$(config_get openvpn $o)'"
    125125done
Note: See TracChangeset for help on using the changeset viewer.