New function in script vpnconfig

Home Page Forums Network Management ZeroShell New function in script vpnconfig

This topic contains 0 replies, has 0 voices, and was last updated by  ny.bash 6 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43464

    ny.bash
    Member

    Hi!

    I’m trying to add new functionality to the page add openvpn client. At the moment I want to add the ability to change the type of device (tun/tap).

    I added the necessary objects in the source code “templates/vpnconfig”.

    
    
    cut
    if (""!="") {
    X.Dev.value="TUN";
    } else {
    X.Dev.value="TAP";
    }
    cut

    And

    
    
    cut
    Dev  
    cut

    But the script “templates/vpnconfig” do not transfer new parameters was script “script/createvpn”

    I created a test script “script/createvpn” with the contents:


    #!/bin/sh
    for i in "${@}"; do echo "$i"; done > /root/test.txt

    And on the way out, I get the following:

    root@zeroshell scripts> cat /root/test.txt
    VPN02
    Virtual Private Network
    test
    1197
    UDP
    Server

    yes

    X509

    Auto

    But why, among the variables is missing the TUN or TAP?

    Help please!

    #52494

    ny.bash
    Member

    OK, I understand that the output vpnconfig processed binary file /usr/local/apache2/cgi-bin/kerbynet

    Where to find sources kerbynet?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.