On 02/03/16 12:39, Yevgeny Kosarzhevsky wrote:
Thank you, that worked! Was not obvious, may be manpage needs to be corrected.

this is a very good remark - I have taken it up with the developers :)

cheers,

JJK

On 2 March 2016 at 18:27, Jan Just Keijser <janj...@nikhef.nl <mailto:janj...@nikhef.nl>> wrote:

    On 02/03/16 12:03, Yevgeny Kosarzhevsky wrote:
    Hello,

    I have the following up script:
    #!/bin/sh

    echo local=$local,port=$local_port,dev=$dev,proto=$proto

    Now I run openvpn and don't get variables exported:

    ~# openvpn --dev tun --local 127.0.0.1 --lport 1234 <tel:1234>
    --script-security 2 --up up

    [..skipped..]

    Wed Mar  2 17:56:09 2016 TUN/TAP device tun1 opened
    Wed Mar  2 17:56:09 2016 up tun1 1500 <tel:1500> 1500 <tel:1500> init
    local=,port=,dev=tun1,proto=
    Wed Mar  2 17:56:09 2016 UDPv4 link local (bound):
    [AF_INET]127.0.0.1:1234 <http://127.0.0.1:1234>
    Wed Mar  2 17:56:09 2016 UDPv4 link remote: [undef]

    Is there anything I can do about it?

    what about
      $local_1
      $local_port_1
      $proto_1

    ? are those available? this is caused by connection entries - you
    can (unknowingly) specify multiple connection entries which causes
    the _1, _2 to be added.

    HTH,

    JJK




--
Regards,
Yevgeny

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to