[strongSwan] automating Strongswan for Android with Tasker

David H. Durgee dhdurgee at verizon.net
Wed Feb 5 18:24:17 CET 2020


Tobias Brunner wrote:
> Hi David,
>
>> I am populating the Action, Extra and Package in the Tasker "Send
>> Intent" definition as per the wiki.  When I run the task nothing happens.
> Typo perhaps?
>
>> Is the wiki out of date?  Did I miss something required for this to
>> work?  Is anyone using this successfully?
> I never tried it with Tasker, only with Llama (not available anymore in
> the Play store).  But I now tried it with the Automate app, works fine
> as described on the wiki.  And I know there have been users who used
> Tasker for this.
>
> Regards,
> Tobias
>
Just had a chance to get back to this.  If there is a typo I don't see
it.  I exported the two tasks I created in XML for your inspection:

<TaskerData sr="" dvi="1" tv="5.9.2">
    <Task sr="task2">
        <cdate>1580920935423</cdate>
        <edate>1580921818574</edate>
        <id>2</id>
        <nme>Enter_VPN</nme>
        <pri>100</pri>
        <Action sr="act0" ve="7">
            <code>877</code>
            <Str sr="arg0"
ve="3">org.strongswan.android.action.START_PROFILE</Str>
            <Int sr="arg1" val="3"/>
            <Str sr="arg2" ve="3"/>
            <Str sr="arg3" ve="3"/>
            <Str sr="arg4" ve="3">org.strongswan.android.VPN_PROFILE_ID
: 8d582063-fb0d-4234-aa1b-23d961583dd8</Str>
            <Str sr="arg5" ve="3"/>
            <Str sr="arg6" ve="3"/>
            <Str sr="arg7" ve="3">org.strongswan.android</Str>
            <Str sr="arg8" ve="3"/>
            <Int sr="arg9" val="0"/>
        </Action>
    </Task>
</TaskerData>

 <TaskerData sr="" dvi="1" tv="5.9.2">
    <Task sr="task3">
        <cdate>1580921356532</cdate>
        <edate>1580921888200</edate>
        <id>3</id>
        <nme>Exit_VPN</nme>
        <pri>100</pri>
        <Action sr="act0" ve="7">
            <code>877</code>
            <Str sr="arg0"
ve="3">org.strongswan.android.action.DISCONNECT</Str>
            <Int sr="arg1" val="0"/>
            <Str sr="arg2" ve="3"/>
            <Str sr="arg3" ve="3"/>
            <Str sr="arg4" ve="3">org.strongswan.android.VPN_PROFILE_ID
: 8d582063-fb0d-4234-aa1b-23d961583dd8</Str>
            <Str sr="arg5" ve="3"/>
            <Str sr="arg6" ve="3"/>
            <Str sr="arg7" ve="3">org.strongswan.android</Str>
            <Str sr="arg8" ve="3"/>
            <Int sr="arg9" val="0"/>
        </Action>
    </Task>
</TaskerData>

Neither of the above does anything when I run them.  If you see an error
in the above please let me know.

Dave
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4056 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.strongswan.org/pipermail/users/attachments/20200205/1f14939d/attachment.bin>


More information about the Users mailing list