Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

dream-alpha / enigma2-plugin-extensions-vpnmanager   deb

Repository URL to install this package:

Version: 1.2.1 

/ usr / lib / enigma2 / python / Plugins / Extensions / VpnManager / plugin.pyo

ó
îÜícc@sEddlmZmZddlmZddlmZddlmZddl	m
Z
ddlmZddl
mZmZmZmZmZmZmZmZmZmZmZmZmZmZmZddlmZdd	lmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/dd
l0m1Z1ddl2m3Z3ddl4m5Z5dd
l6m7Z7ddl8m9Z9ddl:m;Z;ddl<m=Z=ddl>m?Z?m@Z@mAZAddlBZBddlCmDZDddlEZEddlFZFddlGZGddlHZHddlIZIddlJZJddlKZKddlLZLddlMmNZNddlOmOZOddlPmQZQddlRmSZSddlTmUZUddlVZVddlHmWZWe=jXƒZYeYd eWd<eVjZde?e@ƒƒeVj[dƒeVjZdde?eAƒd fƒd!„Z\y
eLj]Z^Wne_k
rDn
Xe^eL_`d"Zad#ead$Zbd%d&d'd(d)gZcxrecD]jZdeHjejfd*edd+ƒr¶eHjgd*edd+ƒneHjejfd*edd,ƒrèeHjgd*edd,ƒnq~Wd-Zhd.Zid/Zjd0Zkd1Zld2d3gZmeƒe_ned4d5d6eoƒejn_ped4d7d6eoƒejn_qed4d8d6eoƒejn_red4eoƒejn_sed4eoƒejn_ted4euƒejn_ved4d9d9d9d9gd:euƒejn_wed4d;d6eoƒejn_xed4d<d6eoƒejn_yed=d>d?fd@dAfgd4d>ƒejn_zed4eoƒejn_{ed4d9d9d9d9gd:euƒejn_|ed4d9d9d9d9gd:euƒejn_}ed4eoƒejn_~ed=dBdCfdDdEfgd4dDƒejn_e$d9ƒj€ƒZej‚ƒdFkrdGZƒdHZ„dIZ…ndJZƒdKZ„dLZ…dMeeNeOfdN„ƒYZ†dOeefdP„ƒYZ‡dQefdR„ƒYZˆdSe‰fdT„ƒYZŠdU„Z‹dV„ZŒdW„ZdX„ZŽdY„ZdZ„Zd[„Z‘d\„Z’d]„Z“d^„Z”d_„Z•d`„Z–da„Z—db„Z˜dc„Z™dd„Zšde„Z›df„Zœdg„Zdh„ZždS(iiÿÿÿÿ(t	ActionMaptNumberActionMap(tPluginDescriptor(tLabel(tScreen(t
MessageBox(tConfigListScreen(tconfigt
ConfigIntegertConfigIPtConfigSelectiontgetConfigListEntryt
ConfigTexttConfigDirectorytConfigYesNot
configfileR
tConfigSubsectiont	ConfigPINtNoSavet
ConfigNothingtConfigPassword(tFileList(tgFonttaddFontteNetworkManagerteNetworkServiceteTimert
getDesktopteListboxPythonMultiContenttRT_HALIGN_LEFTtRT_HALIGN_RIGHTtRT_HALIGN_CENTERtRT_VALIGN_CENTERt
RT_VALIGN_TOPtRT_WRAPteListboxt
gPixmapPtrtePicLoadtloadPNG(tMenuList(tPixmap(t
LoadPixmap(tMultiContentEntryText(tVirtualKeyBoard(tNetworkInterface(tlanguage(tresolveFilenametSCOPE_LANGUAGEt
SCOPE_PLUGINSN(tthreadsi(t
my_scroll_bar(t
infoHelper(tget_ip_info(tVpnBook(tVpnMe(tenvironitLANGUAGEtenigma2t
VpnManagers%s%ssExtensions/VpnManager/locale/cCs4tjd|ƒ}||kr0tj|ƒ}n|S(NR:(tgettexttdgettext(ttxttt((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyt_4ss1.2.1s7Package: enigma2-plugin-extensions-vpnmanager
Version: sT
Description: Manage your VPN connections
Maintainer: murxer <support@boxpirates.to>tGoldenPanelt
SatVenusPanelt
GoldenFeedtPersianDreamboxtDreamOSatDownloaders+/usr/lib/enigma2/python/Plugins/Extensions/s/plugin.pyos
/plugin.pysO/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/resolv/update-resolv-confsD/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/image/spinner/sF/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/image/is_vpn.pngsF/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/image/no_vpn.pngs/etc/openvpn/vpn_dnss/media/usb/openvpnauths/media/hdd/openvpnauthtdefaults/media/hdd/vpn/t
fixed_sizes/media/hdd/WireGuard/t it	auto_jumptUsernametPasswordtchoicestvpntOpenVPNt	wireguardt	WireGuardtmeR6tbookR5i€t_1920sQ/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/image/openvpn_logo_1920.pngsS/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/image/wireguard_logo_1920.pngt_1280sQ/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/image/openvpn_logo_1280.pngsS/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/image/wireguard_logo_1280.pngtVpnManagerScreencBsÚeZd„Zdd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd	„Zd
„Z
d„Zd„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsîytdddtƒWn)tk
rB}tdddtdƒnXtjƒdkr«ddtdƒdd	dtd
ƒdddtdƒdd
td|_n»tjƒdkrddtdƒdddtd
ƒdddtdƒddtd|_nSddtdƒdddtd
ƒdddtdƒddtd|_tj	||ƒt
dgi|jd6|jd6|j
d6|jd6|jd6|jd6|jd 6|jd!6|jd"6|jd#6|jd$6d%ƒ|d&<tgd'td(tƒ|_|jjjdtdtd)ƒƒƒ|jjjtd*ƒƒtj	|td+ƒtd*ƒƒt j	|ƒt!ƒ|d,<t!ƒ|d-<t"d.ƒ|d/<|j|d0<t|_#t$ƒ|_%d|_&|j%j'j(|j)ƒ|_*t$ƒ|_+d|_,|j+j'j(|j-ƒ|_.t/ƒsWd1t0j1j2_3t0j1j2j4ƒt5j4ƒnt6ƒ|_7t8ƒ|_9t$ƒ|_:t|_;d2|_<|j:j'j(|j=ƒ|_>g|_?|j@jA|jBƒ|j@jA|jCƒ|j@jA|jDƒdS(3NsO/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/font/OpenSans-Regular.ttftVpnidii€s!
<screen name="VpnManagerScreen" backgroundColor="#00ffffff" position="center,center" size="2560,1440" title="VpnManagerScreen" flags="wfNoBorder">
                        <eLabel name="BackgroundColor" position="3,3" size="2555,1435" zPosition="1" backgroundColor="#002a2a2a" />
                        <widget name="logo" position="103,3" size="1357,396" alphatest="blend" zPosition="2" />
                        <eLabel name="line1" position="37,399" size="1488,1013" zPosition="1" backgroundColor="#00ffffff" />
                        <eLabel name="line2" position="1496,401" size="27,1008" zPosition="2" backgroundColor="#002a2a2a" />
                        <widget name="vpnlist" position="40,401" size="1453,1008" backgroundColorSelected="#002f4665" foregroundColorSelected="#00ffffff" foregroundColor="#00ffffff" backgroundColor="#002a2a2a" zPosition="3" transparent="0" />
                        <widget name="myScrollBar" position="1496,401" size="27,1008" transparent="0" backgroundColor="#002a2a2a" zPosition="3" itemHeight="1008"  enableWrapAround="1" />
                        <eLabel name="line3" position="1584,51" size="933,3" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line5" position="1584,464" size="933,3" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line6" position="1584,1363" size="933,3" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line7" position="1584,1409" size="933,3" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line8" position="1584,51" size="3,1359" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line9" position="2517,51" size="3,1359" zPosition="2" backgroundColor="#00ffffff" />
                        <widget name="hop1_png" position="1587,67" size="171,171" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/image/no_vpn.png" alphatest="blend" zPosition="2" />
                        <widget name="hop1" position="1771,53" size="744,400" foregroundColor="#00ffffff"  backgroundColor="#002a2a2a" font="Vpn; 36" valign="top" halign="left"  zPosition="2" transparent="0" />
                        <widget name="myInfoLabel" position="1587,467" size="925,896" transparent="0" foregroundColor="#00ffffff" backgroundColor="#002a2a2a" zPosition="3" itemHeight="56"  enableWrapAround="1" />
                        <eLabel name="line10" position="1587,1363" size="267,3" zPosition="4" backgroundColor="#00ff0000" />
                        <eLabel text=t"sStop VPNsD position="1587,1365" size="267,44" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 32" valign="top" halign="center" />
                        <eLabel name="line10" position="1587,1409" size="267,3" zPosition="4" backgroundColor="#00ff0000" />
                        <eLabel name="line10" position="1853,1363" size="3,49" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line10" position="1856,1363" size="267,3" zPosition="4" backgroundColor="#0000ff00" />
                        <eLabel text=s	Start VPNsÇ position="1856,1365" size="267,44" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 32" valign="top" halign="center" />
                        <eLabel name="line10" position="1856,1409" size="267,3" zPosition="4" backgroundColor="#0000ff00" />
                        <eLabel name="line11" position="2123,1363" size="3,49" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text=tMenus› position="2125,1365" size="133,44" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 32" valign="top" halign="center" />
                        <eLabel name="line12" position="2259,1363" size="3,49" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text="OK" position="2261,1365" size="113,44" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 32" valign="top" halign="center" />
                        <eLabel name="line13" position="2375,1363" size="3,49" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text="V sË" position="2377,1365" size="140,44" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 32" valign="top" halign="center" />
                        </screen>s>

                        <screen name="VpnManagerScreen" backgroundColor="#00ffffff" position="center,center" size="1920,1080" title="VpnManagerScreen" flags="wfNoBorder">
                        <eLabel name="BackgroundColor" position="2,2" size="1916,1076" zPosition="1" backgroundColor="#002a2a2a" />
                        <widget name="logo" position="77,2" size="1018,297" alphatest="blend" zPosition="2" />          
                        <eLabel name="line1" position="28,299" size="1116,760" zPosition="1" backgroundColor="#00ffffff" />
                        <eLabel name="line2" position="1122,301" size="20,756" zPosition="2" backgroundColor="#002a2a2a" />
                        <widget name="vpnlist" position="30,301" size="1090,756" backgroundColorSelected="#002f4665" foregroundColorSelected="#00ffffff" foregroundColor="#00ffffff" backgroundColor="#002a2a2a" zPosition="3" transparent="0" />
                        <widget name="myScrollBar" position="1122,301" size="20,756" transparent="0" backgroundColor="#002a2a2a" zPosition="3" itemHeight="756"  enableWrapAround="1" />
                        <eLabel name="line3" position="1188,38" size="700,2" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line5" position="1188,348" size="700,2" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line6" position="1188,1022" size="700,2" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line7" position="1188,1057" size="700,2" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line8" position="1188,38" size="2,1019" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line9" position="1888,38" size="2,1019" zPosition="2" backgroundColor="#00ffffff" />
                        <widget name="hop1_png" position="1190,50" size="128,128" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/image/no_vpn.png" alphatest="blend" zPosition="2" />
                        <widget name="hop1" position="1328,40" size="558,300" foregroundColor="#00ffffff"  backgroundColor="#002a2a2a" font="Vpn; 27" valign="top" halign="left"  zPosition="2" transparent="0" />
                        <widget name="myInfoLabel" position="1190,350" size="694,672" transparent="0" foregroundColor="#00ffffff" backgroundColor="#002a2a2a" zPosition="3" itemHeight="42"  enableWrapAround="1" />
                        <eLabel name="line10" position="1190,1022" size="200,2" zPosition="4" backgroundColor="#00ff0000" />
                        <eLabel text=sD position="1190,1024" size="200,33" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 24" valign="top" halign="center" />
                        <eLabel name="line10" position="1190,1057" size="200,2" zPosition="4" backgroundColor="#00ff0000" />
                        <eLabel name="line10" position="1390,1022" size="2,37" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line10" position="1392,1022" size="200,2" zPosition="4" backgroundColor="#0000ff00" />
                        <eLabel text=sÈ position="1392,1024" size="200,33" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 24" valign="top" halign="center" /> 
                        <eLabel name="line10" position="1392,1057" size="200,2" zPosition="4" backgroundColor="#0000ff00" />
                        <eLabel name="line11" position="1592,1022" size="2,37" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text=s› position="1594,1024" size="100,33" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 24" valign="top" halign="center" /> 
                        <eLabel name="line12" position="1694,1022" size="2,37" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text="OK" position="1696,1024" size="85,33" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 24" valign="top" halign="center" />
                        <eLabel name="line13" position="1781,1022" size="2,37" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text="V sä" position="1783,1024" size="105,33" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 24" valign="top" halign="center" />
                        </screen>
                        s

                        <screen name="VpnManagerScreen" backgroundColor="#00ffffff" position="center,center" size="1280,720" title="VpnManagerScreen" flags="wfNoBorder">
                        <eLabel name="BackgroundColor" position="1,1" size="1277,717" zPosition="1" backgroundColor="#002a2a2a" />
                        <widget name="logo" position="51,1" size="678,198" alphatest="blend" zPosition="2" />
                        <eLabel name="line1" position="18,199" size="744,506" zPosition="1" backgroundColor="#00ffffff" />
                        <eLabel name="line2" position="748,200" size="13,504" zPosition="2" backgroundColor="#002a2a2a" />
                        <widget name="vpnlist" position="20,200" size="726,504" backgroundColorSelected="#002f4665" foregroundColorSelected="#00ffffff" foregroundColor="#00ffffff" backgroundColor="#002a2a2a" zPosition="3" transparent="0" />
                        <widget name="myScrollBar" position="748,200" size="13,504" transparent="0" backgroundColor="#002a2a2a" zPosition="3" itemHeight="504"  enableWrapAround="1" />
                        <eLabel name="line3" position="792,25" size="466,1" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line5" position="792,232" size="466,1" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line6" position="792,681" size="466,1" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line7" position="792,704" size="466,1" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line8" position="792,25" size="1,679" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line9" position="1258,25" size="1,679" zPosition="2" backgroundColor="#00ffffff" />
                        <widget name="hop1_png" position="793,33" size="85,85" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/image/no_vpn.png" alphatest="blend" zPosition="2" />
                        <widget name="hop1" position="885,26" size="372,200" foregroundColor="#00ffffff"  backgroundColor="#002a2a2a" font="Vpn; 18" valign="top" halign="left"  zPosition="2" transparent="0" />
                        <widget name="myInfoLabel" position="793,233" size="462,448" transparent="0" foregroundColor="#00ffffff" backgroundColor="#002a2a2a" zPosition="3" itemHeight="28"  enableWrapAround="1" />
                        <eLabel name="line10" position="793,681" size="133,1" zPosition="4" backgroundColor="#00ff0000" />
                        <eLabel text=s< position="793,682" size="133,22" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 16" valign="top" halign="center" />
                        <eLabel name="line10" position="793,704" size="133,1" zPosition="4" backgroundColor="#00ff0000" />
                        <eLabel name="line10" position="926,681" size="1,24" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line10" position="928,681" size="133,1" zPosition="4" backgroundColor="#0000ff00" />
                        <eLabel text=s position="928,682" size="133,22" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 16" valign="top" halign="center" />
                        <eLabel name="line10" position="928,704" size="133,1" zPosition="4" backgroundColor="#0000ff00" />
                        <eLabel name="line11" position="1061,681" size="1,24" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text=s• position="1062,682" size="66,22" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 16" valign="top" halign="center" />
                        <eLabel name="line12" position="1129,681" size="1,24" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text="OK" position="1130,682" size="56,22" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 16" valign="top" halign="center" />
                        <eLabel name="line13" position="1187,681" size="1,24" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text="V sâ" position="1188,682" size="70,22" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 16" valign="top" halign="center" />
                        </screen>
                        tOpenVPN_Actionstoktuptdowntrighttlefttredtgreentmenutcanceltinfot0iÿÿÿÿtactionstenableWrapAroundtcontentii*iôtlogothop1_pngtthop1tvpnlistRLi(ERtFalset	ExceptiontDESKTOPSIZEtwidthR?t
PLUGINVERSIONtskinRt__init__RtkeyOKtkeyUptkeyDowntkeyRighttkeyLefttkeyRedtkeyGreentkeyMenut	keyCanceltkeyInfotkeyExitR'tTrueRtchooseMenuListtltsetFontRtskinValueCalculatet
setItemHeightR2R3R(Rtis_vpnRtStatusTimerCheckOpenVpntStatusCheckOpenVpnTimerttimeouttconnecttcheckOpenVpntStatusTimerCheckOpenVpn_conntStatusTimerCheckWireguardtStatusCheckWireguardTimertcheckWireguardtStatusTimerCheckWireguard_conntisWireGuardInstalledRt
vpnmanagerttypetvaluetsaveRR5tfreeVpnBookR6t	freeVpnMetStatusTimerSpinnert
StatusSpinnertStatusSpinnerTimertloadSpinnertStatusTimerSpinner_conntlistVpntonLayoutFinishtappendtsaveDefaultResolvtsetTypeLogotsetList(tselftsessionterror((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRrysrI
I
I












%



				
			cCsJg|_tjjjdkr'tƒntƒ|_tjjjdkrWtjjjntjj	j}tjj
js‹tjjjdkr:tjj
|ƒr‚tjjjsIx…tj|ƒD]†}tjj|d|ƒr¼tjjj|krt}|jrdnd}nt}d}|jj||d|||fƒq¼q¼Wq7xëtj|ƒD]×}tjj|d|ƒrY|jdƒs—|jdƒr0tjjj|jd	d
ƒjdd
ƒkrât}|jrÙdnd}nt}d}|jj|jd	d
ƒjdd
ƒ|d|||fƒq0qYqYWq‚nHtjjjdkrj|jj|jƒ|_n|jj|jƒ|_|jr2|jjƒd
}d
}x7|jD],\}	}
}}|rÐ|}Pn|d}q®W|jjtt t!|jƒƒƒ|jj"|ƒ|j#d|dt$|jƒƒn|j%ƒ|j&ƒdS(NRLRNt/iiitconftovpns.confRis.ovpnRQitindext	max_items('R›RRR‘R’t	statusTuntstatusWireguardR„t	directorytdirectory_wireguardt	free_modetostpathtexistst
one_foldertlistdirtisdirtactiveR~RlRtisfiletendswithtreplacetfree_mode_typeR”tget_config_dataR•tsortRR tlisttmaptenterListEntrytmoveToIndext
loadScrollbartlentreadIPt	load_info(R¡treloadtconfig_destinationR«t
is_connecttpngR¥txtsttitletdirectory_destination((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR sV	*3%	%-	(	
""
cCs‡|jrƒ|jrƒ|djƒdd}|djƒdd}|tjj_tjjjƒtjƒtjj	jdkrÕt
ƒr”tƒntj
jdƒr¶tjdƒnd}d}tjjjs)tj
j|ƒr/tj|ƒ}x1|D]&}|jd	ƒrù|d
|}qùqùWq/n|}|r\tjd||fƒtjdƒnt
ƒs³|d
jtdƒƒtƒtƒt|_|jƒ|jjdtƒq€|jjtdtjddƒqƒt ƒ}|dk	r|jjt|tj"ddƒnt#ƒrt$ƒnt%ƒr5|j&ƒntj
jdƒrWtjdƒnd|j'ddƒj'd
dƒ}t|dƒ}d}tjjjs1tj
j|ƒrÕtj|ƒ}xm|D]b}|jd	ƒsé|jdƒrú|d
|}qÅt(j)|d
|d|ƒtjd|ƒqÅWqÕn¤|}tjtjj*jƒ}xƒ|D]{}tjj*jd
|}	tj
j+|	ƒrV|jd	ƒsÑ|jdƒsÎt(j)|	d|ƒtjd|ƒqÎqÑqVqVWtj
j+|ƒržt|dƒ£}t,}
t,}x2|D]*}t-j.d|ƒr:d}
|j/|
ƒqt-j.d|ƒrzt}
tjj0jr6d }
|j/|
ƒq6qt-j.d!|ƒr´tjj0jr6d"}
|j/|
ƒq6qt-j.d#|ƒs6t-j.d$|ƒrÛqt-j.d%|ƒrt}|j/|ƒq|d& d'kr)d(}
|j/|
ƒq|j/|ƒqW|sVd)}
|j/|
ƒn|
r•tjj0jr•d }
|j/|
ƒd"}
|j/|
ƒnWdQXntj
j+d*ƒsûd*}t|d+ƒ}|j/d,tjj1jtjj2jfƒ|j3ƒn|j3ƒtj
jdƒrtjj0jrötjj4jr´d-t5tjj6jƒ}d-t5tjj7jƒ}tt8d+ƒ}|j/d.|ƒ|d/ks§|j/d.|ƒn|j3ƒnyt(j9t:d0ƒWnt(j;k
rå}|GHnXtjd1ƒntjd2ƒtjd3ƒnt#ƒsa|d
jtdƒƒt<ƒtƒt|_|jƒ|j=ƒqƒ|jjtd4tjddƒndS(5NRkiiRNs/etc/wireguardsrm -R /etc/wireguard/*s/etc/wireguard/Wg0.confRiR¥R¤scp %s %ss!chmod 600 /etc/wireguard/Wg0.confRjs
Connecting...i¸s(WireGuard Stop Error: WireGuard running!R‡i
s/etc/openvpnsrm -R /etc/openvpn/*s/etc/openvpn/%s.confRGR?taR¦s
/etc/openvpn/schmod 600 /etc/openvpn/%strsauth-user-passsgauth-user-pass /etc/openvpn/pass.file
log /etc/openvpn/openvpn.log
status /etc/openvpn/openvpn.stat 10
s$up\s+/etc/openvpn/update-resolv-confslsetenv PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
up /etc/openvpn/update-resolv-conf
s&down\s+/etc/openvpn/update-resolv-confs.down /etc/openvpn/update-resolv-conf
down-pre
sroute-delaysroute-methodsscript-securityitdevsdev tun
s
script-security 2
s/etc/openvpn/pass.filetws%s
%ss%d.%d.%d.%dsnameserver %s
s0.0.0.0s/etc/openvpn/update-resolv-confs)chmod 755 /etc/openvpn/update-resolv-confschmod 600 /etc/openvpn/*.confs chmod 600 /etc/openvpn/pass.files%Open Vpn Stop Error: OpenVpn running!(>R—R›t
getCurrentRRR´R’R“RR‘trunningWireGuardtstop_wireguardR®R¯R°tsystemR±R³R²R¶tsetTextR?tstart_wireguardtset_auto_startR~R™R‹tstartR¢topenRt
TYPE_ERRORtcheckVpnVersiontNonet	TYPE_INFOtrunningOpenVPNtstop_vpntstatusTunOfft
setDefaultDnsR·tshutiltcopy2R«RµRltretsearchtwritetresolvtusernametpasswordtcloset	vpnresolvttupletvpndns1tvpndns2tVPNDNStcopyfilet
RESOLVCONFtErrort	start_vpnR‰(R¡tcitytconf_destinationt
new_configt	conf_filetdatatfiletversiontnew_conf_writetfile_destinationRåtsecuritytlinetnew_linet	pass_filetpass_file_writetdns1tdns2tvpn_dnste((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRsQsú
	

		
"	"	
	
"


$
)


	
		

cCsY|jrU|jsU|djƒ|djƒ}|jd|dt|jƒƒqUndS(NRkR§R¨(R›R—RZtgetSelectionIndexR¿RÀ(R¡R§((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRtïs
		cCsY|jrU|jsU|djƒ|djƒ}|jd|dt|jƒƒqUndS(NRkR§R¨(R›R—R[RR¿RÀ(R¡R§((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRuös
		cCsY|jrU|jsU|djƒ|djƒ}|jd|dt|jƒƒqUndS(NRkR§R¨(R›R—tpageDownRR¿RÀ(R¡R§((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRvýs
		cCsY|jrU|jsU|djƒ|djƒ}|jd|dt|jƒƒqUndS(NRkR§R¨(R›R—tpageUpRR¿RÀ(R¡R§((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRws
		cCs&|js"|jj|jtƒndS(N(R—R¢topenWithCallbacktExittVpnManagerConfigScreen(R¡((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRzs	cCs>|js:tjjjdkrÔtƒrGtƒtƒrG|jƒqGntƒrddg}x4|D],}t	j
j|ƒrct	jd|ƒqcqcWt
ƒn|djtdƒƒt|_|jƒ|jƒq:tƒrçtƒntƒrútƒn|djtdƒƒt|_|jƒ|jjdtƒndS(NRLs/etc/openvpn/openvpn.logs/etc/openvpn/openvpn.statsrm %sRjs
Connecting...i¸(R—RRR‘R’RÜRÝRÞRßR®R¯RµRÒRñRÓR?R~R™R‰RÐRÑtstatusWg0OffRÔR‹RÖ(R¡trm_filetlog((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRys0				

	

	
	
	
cCs_|js[tjjjdkrãtƒrttƒddg}x7|D],}tjj	|ƒrAtj
d|ƒqAqAWntƒrµ|jƒd}|j
j|jt|tjddƒqXd}|j
j|jt|tjddƒq[tƒrötƒntƒr-d	}|j
j|jt|tjddƒq[d
}|j
j|jt|tjddƒndS(NRLs/etc/openvpn/openvpn.logs/etc/openvpn/openvpn.statsrm %ssOpenVpn StopR‡i
s!OpenVpn Error: OpenVpn is RunningsWireGuard Stops%WireGuard Error: WireGuard is Running(R—RRR‘R’RÜRÝR®R¯RµRÒRÞRßR¢RR RRÛRØRÐRÑR
(R¡RRttext((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRx,s*		
	
((	
	(c
Cs^tƒsZdttjjjƒ}|dkr=tjƒ}d}xú|jƒD]é}|j	ƒrMt
|ƒ}|jƒ}|jƒ}|j
tjkr¡|j}n|j
tjkr¿|j}nt|jƒƒdkrê|jƒd}n|}d|kr6g|jdƒD]}	tj|	ƒ^qtjj_q6qMqMWntjjjƒtjƒndS(Ns%d.%d.%d.%ds0.0.0.0Riit:t.(R©RêRRtdnsR’RtgetInstancetgetServicest	connectedR,tgetIpv4tgetIpv6tmethodRt
METHOD_OFFtgatewayRÀtnameserverstsplittasttliteral_evalR“R(
R¡tdefault_dnstnmtgwtservicetnettip4tip6RRÇ((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRžGs*	AcCsêdttjjjƒ}|dksÜtjdƒ}xH|D]@}tjj|ƒ}t	j
dd|d|gƒ}|jƒq;Wtjdƒ}xK|D]@}tjj|ƒ}t	j
dd|d|gƒ}|jƒq•Wn|jƒdS(Ns%d.%d.%d.%ds0.0.0.0s!/var/lib/connman/*ethernet*cable*t
connmanctlRs
--nameserverss/var/lib/connman/wifi*(
RêRRRR’tglobR®R¯tbasenamet
subprocesstPopentwaitRž(R¡RtfilesR÷tconntp((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRß`s

cCs‰|jdk	ritƒrDd|_t|_tjdƒ|jƒq…|jd7_|jjdt	ƒnd|_t|_|jƒdS(Niiiii¸(
RŒRªRlR—ttimetsleepR R‹RÖR~(R¡((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRps			

		cCs.tjjdƒrþd}tddƒ}xÚ|D]Ò}tjd|ƒršd}tƒddg}x4|D],}tjj|ƒrftjd|ƒqfqfWPq.tjd|ƒr.d}tƒddg}x4|D],}tjj|ƒrÌtjd|ƒqÌqÌWPq.q.W|rSd	|_	t
|_|jjt
|t
jd
dƒ|jƒ|jƒdS|j	dk	r¼tƒr—d	|_	t
|_tjd
ƒ|jƒqñ|j	d7_	|jjdtƒn5d	|_	t
|_tƒrçtjd
ƒn|jƒ|jƒn,tƒrtjd
ƒnt
|_|jƒdS(Ns/etc/openvpn/openvpn.logRÌs+AUTH: Received control message: AUTH_FAILEDsLogin Error: AUTH_FAILEDs/etc/openvpn/openvpn.statsrm %ssVERIFY ERRORsLogin Error: VERIFY ERRORiR‡i
iiii¸(R®R¯RµRÚR×RâRãRÝRÒR†RlR—R¢RRØR RèR©R-R.R…RÖR~tstatusTunOn(R¡R£tread_logRüRR((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR‰sZ


		

			

			

		cCs^|djtdƒƒtjjjdkr5tƒntƒ}tj	t
d|d|jƒdS(NRjsLoad IP data ...RLttuntcallback(RÓR?RRR‘R’R©RªR1t
deferToThreadR4tcallbackReadIP(R¡tstatus((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRÁ²s'cCs[tjjjdkrtƒntƒ}|r3tnt}|dj|ƒ|j	|ƒdS(NRLRj(
RRR‘R’R©RªtISVPNtNOVPNRÓtshowVpnConnect(R¡RbR5RÆ((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR4·s'cCs6|jr2dtt|jƒf}|j|ƒndS(Ns%s%s.png(R—t
SPINNERDIRtstrR˜R8(R¡RÆ((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR™½s	cCsa|djj|ƒ|jr]|jdk	r>|jd7_n	d|_|jjdtƒndS(NRhiiiÈ(tinstancetsetPixmapFromFileR—R˜R–RÖR~(R¡RÆ((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR8Âs		cCs9tjjjdkrtnt}|djj|ƒdS(NRLRg(RRR‘R’tVPN_PNGt
WIREGUARD_PNGR;R<(R¡RÆ((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRŸËs!cCs|j|jtƒdS(N(RèR¢R~(R¡((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR}ÏscCs|j|jtƒdS(N(RèR¢Rl(R¡((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRÒscCs#|js|j|jtƒndS(N(R—RèR¢R~(R¡((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR{Õs	cCs)|jjtdddtdtjƒdS(NtwindowTitlesVPN-Manager InfoR
R‘(R¢R×RtINFORÛ(R¡((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR|ÙsN(t__name__t
__module__RrRÚR RsRtRuRvRwRzRyRxRžRßRR‰RÁR4R™R8RŸR}RR{R|(((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRTxs.	¥3	ž											3									R	cBs¡eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zd„Zd„ZRS(cCs)tjƒdkr<ddtdƒddtd|_nctjƒdkrxddtdƒddtd	|_n'd
dtdƒddtd|_tj||ƒ||_td
ddgi|j	d6|j
d6|jd6|jd6|j
d6|jd6|jd6dƒ|d<tdgi
|jd6|jd6|jd6|jd6|jd6|jd6|jd 6|jd!6|jd"6|jd#6dƒ|d$<tƒ|d%<tƒ|d&<|d&jƒtd'ƒ|d(<g|_|jƒtj||jd)|jƒtƒ|_tƒ|_tjjj |_!xÑt"D]É}t#j$j%|ƒr2t&|d*ƒ}|j'ƒ}t(|ƒd+krò|d,j)d-d'ƒj*ƒtjj+_ |d+j)d-d'ƒj*ƒtjj,_ tjj+j-ƒtjj,j-ƒt.j-ƒPnWdQXq2q2W|j/j0|jƒ|j/j0|j1ƒdS(.Ni€s^
                        <screen name="VpnManger" backgroundColor="#00ffffff" position="center,center" size="2560,1440" title="VpnManager" flags="wfNoBorder">
                        <eLabel name="BackgroundColor" position="3,3" size="2555,1435" zPosition="1" backgroundColor="#002a2a2a" />
                        <widget name="logo" position="103,3" size="1357,396" alphatest="blend" zPosition="2" />
                        <widget name="PwLogo" position="1783,733" size="533,69" alphatest="blend" zPosition="4" />
                        <eLabel name="line1" position="37,399" size="1488,1013" zPosition="1" backgroundColor="#00ffffff" />
                        <eLabel name="line2" position="1496,401" size="27,1008" zPosition="2" backgroundColor="#002a2a2a" />
                        <widget name="config" position="40,401" size="1453,1008" backgroundColorSelected="#002f4665" foregroundColorSelected="#00ffffff" foregroundColor="#00ffffff" backgroundColor="#002a2a2a" zPosition="3" transparent="0" />
                        <eLabel name="line3" position="1584,51" size="933,3" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line6" position="1584,1363" size="933,3" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line7" position="1584,1409" size="933,3" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line8" position="1584,51" size="3,1359" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line10" position="1587,1363" size="267,3" zPosition="4" backgroundColor="#00ff0000" />
                        <widget name="myInfoLabel" position="1587,53" size="925,1163" transparent="0" foregroundColor="#00ffffff" backgroundColor="#002a2a2a" zPosition="3" font="Vpn; 37" valign="center" halign="center"/>
                        <eLabel text=RVsSet default DNSs‹ position="1587,1365" size="267,44" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 32" valign="top" halign="center" />
                        <eLabel name="line10" position="1587,1409" size="267,3" zPosition="4" backgroundColor="#00ff0000" />
                        <eLabel name="line9" position="2517,51" size="3,1359" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line10" position="1853,1363" size="3,49" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line11" position="2123,1363" size="3,49" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line12" position="2259,1363" size="3,49" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text="OK" position="2261,1365" size="113,44" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 32" valign="top" halign="center" />
                        <eLabel name="line13" position="2375,1363" size="3,49" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text="V sË" position="2377,1365" size="140,44" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 32" valign="top" halign="center" />
                        </screen>sd
                        <screen name="VpnManger" backgroundColor="#00ffffff" position="center,center" size="1920,1080" title="VpnManager" flags="wfNoBorder">
                        <eLabel name="BackgroundColor" position="2,2" size="1916,1076" zPosition="1" backgroundColor="#002a2a2a" />
                        <widget name="logo" position="77,2" size="1018,297" alphatest="blend" zPosition="2" />  
                        <widget name="PwLogo" position="1337,550" size="400,52" alphatest="blend" zPosition="4" />         
                        <eLabel name="line1" position="28,299" size="1116,760" zPosition="1" backgroundColor="#00ffffff" />
                        <eLabel name="line2" position="1122,301" size="20,756" zPosition="2" backgroundColor="#002a2a2a" />
                        <widget name="config" position="30,301" size="1090,756" backgroundColorSelected="#002f4665" foregroundColorSelected="#00ffffff" foregroundColor="#00ffffff" backgroundColor="#002a2a2a" zPosition="3" transparent="0" />
                        <eLabel name="line3" position="1188,38" size="700,2" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line6" position="1188,1022" size="700,2" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line7" position="1188,1057" size="700,2" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line8" position="1188,38" size="2,1019" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line10" position="1190,1022" size="200,2" zPosition="4" backgroundColor="#00ff0000" />
                        <widget name="myInfoLabel" position="1190,40" size="694,872" transparent="0" foregroundColor="#00ffffff" backgroundColor="#002a2a2a" zPosition="3" font="Vpn; 28" valign="center" halign="center"/>
                        <eLabel text=sŠ position="1190,1024" size="200,33" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 24" valign="top" halign="center" />
                        <eLabel name="line10" position="1190,1057" size="200,2" zPosition="4" backgroundColor="#00ff0000" />
                        <eLabel name="line9" position="1888,38" size="2,1019" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line10" position="1390,1022" size="2,37" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line11" position="1592,1022" size="2,37" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line12" position="1694,1022" size="2,37" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text="OK" position="1696,1024" size="85,33" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 24" valign="top" halign="center" />
                        <eLabel name="line13" position="1781,1022" size="2,37" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text="V sä" position="1783,1024" size="105,33" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 24" valign="top" halign="center" />
                        </screen>
                        s<
                        <screen name="VpnManager" backgroundColor="#00ffffff" position="center,center" size="1280,720" title="VpnManager" flags="wfNoBorder">
                        <eLabel name="BackgroundColor" position="1,1" size="1277,717" zPosition="1" backgroundColor="#002a2a2a" />
                        <widget name="logo" position="51,1" size="678,198" alphatest="blend" zPosition="2" />
                        <widget name="PwLogo" position="891,366" size="266,34" alphatest="blend" zPosition="4" />
                        <eLabel name="line1" position="18,199" size="744,506" zPosition="1" backgroundColor="#00ffffff" />
                        <eLabel name="line2" position="748,200" size="13,504" zPosition="2" backgroundColor="#002a2a2a" />
                        <widget name="config" position="20,200" size="726,504" backgroundColorSelected="#002f4665" foregroundColorSelected="#00ffffff" foregroundColor="#00ffffff" backgroundColor="#002a2a2a" zPosition="3" transparent="0"/>
                        <eLabel name="line3" position="792,25" size="466,1" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line6" position="792,681" size="466,1" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line7" position="792,704" size="466,1" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line8" position="792,25" size="1,679" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line9" position="1258,25" size="1,679" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line10" position="926,681" size="1,24" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line10" position="793,681" size="133,1" zPosition="4" backgroundColor="#00ff0000" />
                        <widget name="myInfoLabel" position="793,26" size="462,581" transparent="0" foregroundColor="#00ffffff" backgroundColor="#002a2a2a" zPosition="3" font="Vpn; 18" valign="center" halign="center"/>
                        <eLabel text=sr position="793,682" size="133,22" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 16" valign="top" halign="center" />
                        <eLabel name="line10" position="793,704" size="133,1" zPosition="4" backgroundColor="#00ff0000" /><eLabel name="line11" position="1061,681" size="1,24" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line12" position="1129,681" size="1,24" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text="OK" position="1130,682" size="56,22" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 16" valign="top" halign="center" />
                        <eLabel name="line13" position="1187,681" size="1,24" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text="V sâ" position="1188,682" size="70,22" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 16" valign="top" halign="center" />
                        </screen>
                        tOkCancelActionstColorActionstDirectionActionsRYR^R]R\RZR[RaiÿÿÿÿRdtInputActionst1t2t3t4t5t6t7t8t9RctmyNumberActionsRgtPwLogoRitmyInfoLabelt	on_changeRÌiis
(2RnRoR?RpRqRRrR¢RRsRxRwRvRtRuR{RtkeyNumberGlobalR(thideRR»tcreateConfigListRt
setInfoTxtR5R”R6R•RRR¸R’tfreeModeProvidertVPNAUTHFILESR®R¯RµR×t	readlinesRÀR·tstripRæRçR“RRœRRŸ(R¡R¢Rút	auth_fileRö((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRrÞsl


	




















	

%%
cCs¶g|_tƒr:|jjttdƒtjjƒƒntjjjdkrþ|jjttdƒtjj	ƒƒtjj	jsÖ|jjttdƒtjj
ƒƒtjj}|jjttdƒ|ƒƒqf|jjttdƒtjjƒƒnhtjjjdkrf|jjttdƒtjj
ƒƒtjj
}|jjttdƒ|ƒƒn|jjttdƒtjjƒƒ|jjtd	tjjƒƒtjjjdkr²|jjtd
tjjƒƒtjjjre|jjttdƒtjjƒƒtjjjre|jjtdtjjƒƒ|jjtd
tjjƒƒqen|jjttdƒtjjƒƒ|jjttdƒtjjƒƒndS(NsSelect connection type:RLsVPN free mode:sAll config's in one folder:s"Storage location for config files:s	Provider:RNsDefault DNS 1:s
Autostart:sresolv:sSet optional DNS server:sDNS 1:sDNS 2:sOpenVpn username:sOpenVpn password:(R»RRRR?RRR‘R’R­R±R«R¸R¬Rt	autostartRåRéRëRìRæRç(R¡RÄ((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRVas2		(%%"(%"%%%%cCsU|djƒdtjjks@|djƒdtjjkr²tjjjrbtj||ƒqQ|djƒd}|djƒdj}|j	j
|jtd|d|ƒnŸ|djƒdtjj
ksò|djƒdtjjkrAtjjjdkrtjj
jntjjj}|j	j
|jt|ƒntj||ƒdS(NRiiRÉR
RL(RÏRRRæRçR­R’RRTR¢Rtset_config_valueR+R«R¬R‘RVtFolderScreen(R¡tnumberRÉR
tconfig_value((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRT}s@%@3cCsN|dkrJ|djƒd}||_|jƒtjƒ|jƒndS(NRi(RÚRÏR’R“RtchangedEntry(R¡R2Ra((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR^‹s	

cCsO|djƒdtjjkr-|jƒn|jƒ|dj|jƒdS(NRi(RÏRRR‘RŸRVR R»(R¡((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRb“s 

cCstj|ƒ|jƒdS(N(RRwRb(R¡((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRw™s
cCstj|ƒ|jƒdS(N(RRvRb(R¡((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRvs
cCs,|djj|djjƒ|jƒdS(NR(R;t
moveSelectiontmoveUpRW(R¡((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRt¡scCsY|djƒt|djƒƒdkrK|djj|djjƒn|jƒdS(NRi(tgetCurrentIndexRÀtgetListR;RctmoveDownRW(R¡((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRu¥s*!cCsô|djƒdtjjks@|djƒdtjjkrtjjjdkrdtjjjntjjj}|jj|j	t
|ƒna|djƒdtjjksÏ|djƒdtjjkr1tjj
jsð|djƒd}|djƒdj}|jj|jtd|d|ƒqðn¿tjj
jrætjjjdkrætjjjdkr¨|jjsã|jj|jttdƒtjd	tƒdSqæ|jjsæ|jj|jttdƒtjd	tƒdSn|jƒdS(
NRiRLiRÉR
RQs6No new configs have been loaded yet!
Download configs?RE(RÏRRR«R¬R‘R’R¢RRVR_RæRçR­R^R+R¸R”tupdatet
loadNewConfigRR?t
TYPE_YESNOR~R•tsaveExit(R¡RaRÉR
((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRsªs"@3@($++cCsgdttjjjƒ}|dkscyGd}tjj|ƒrktjd|ƒtjd||fƒnWnt	k
r†}|GHnXt
j
dƒ}xH|D]@}tjj|ƒ}tj
dd|d	|gƒ}|jƒqWt
j
d
ƒ}xH|D]@}tjj|ƒ}tj
dd|d	|gƒ}|jƒq÷W|jjttdƒtjdd
ƒndS(Ns%d.%d.%d.%ds0.0.0.0s/var/run/connman/resolv.confssed -i '/nameserver/d' %ssecho nameserver %s >> %ss!/var/lib/connman/*ethernet*cable*R$Rs
--nameserverss/var/lib/connman/wifi*sDefault DNS enabledR‡i
(RêRRRR’R®R¯RµRÒtOSErrorR%R&R'R(R)R¢R×RR?RÛ(R¡RRåRR*R÷R+R,((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRx¿s(	

cCs®tjjjr tjjjdkrb|jjs|jj|j	t
tdƒt
jdt
ƒdSq |jjs |jj|j	t
tdƒt
jdt
ƒdSn|jƒdS(NRQs6No new configs have been loaded yet!
Download configs?RE(RRR­R’R¸R”RhR¢RRiRR?RjR~R•Rk(R¡((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR{Ös++cCse|rWtjjjdkr4|jjƒd|_nd|_|jjƒ|jƒn
|j	ƒdS(NRQRP(
RRR¸R’R”tget_free_vpnRXR•RbRk(R¡tanswer((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRiâs
	

cCs„tjjjr¤tjjjdkr¤|jtjjjksmtjd|j	j
ƒtjd|j	j
ƒn|j	j
tjj_tjjjƒt
tjj_n€tjjjdkrätjjjtjj_tjjjƒn@tjjjdkr$tjjjtjj_tjjjƒntjjjƒtjjjƒtjjjƒtjjjƒtjjjƒtjjjƒtjjjƒtjjjƒtjjjƒtjjjƒtjjjƒtjjjƒtjƒtƒtjjjdkr tƒrvtƒqvnVtƒr3tƒnddg}x4|D],}tjj|ƒrFtjd|ƒqFqFW|j ƒdS(NRLsrm -R %ssmkdir %sRNs/etc/openvpn/openvpn.logs/etc/openvpn/openvpn.statsrm %s(!RRR­R’R‘RXR¸R®RÒR”tCONF_DIRECTORYR«R“R~R±R¬RæRçRåR]RéRëRìRRRÕRÐRÑRÜRÝR¯RµRè(R¡RR((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRkîsJ$
	
	

cCs9tjjjdkrtnt}|djj|ƒdS(NRLRg(RRR‘R’R=R>R;R<(R¡RÆ((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRŸs!cCsd|jj}tjj|ƒrC|djj|ƒ|djƒntdƒ}|dj	|ƒdS(NRQs'Sorry the password image was not found!RR(
R”tPW_PNGR®R¯RµR;R<tshowR?RÓ(R¡RÆR=((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyt	showPwPngscCsþd}t}|djƒdtjjkr_tjjjdkrPtdƒ}qÈtdƒ}ni|djƒdtjjkrŽtdƒ}n:|djƒdtjjksÎ|djƒdtjj	krÝtdƒ}në|djƒdtjj
krtd	ƒ}n¼|djƒdtjjkr;td
ƒ}n|djƒdtjjkrjtdƒ}n^|djƒdtjj
kr™tdƒ}n/|djƒdtjjkrÈtd
ƒ}n|djƒdtjjkr÷tdƒ}nÑ|djƒdtjjks7|djƒdtjjkrÈtjjjru|djƒdtjjkrutdƒ}qÈtjjjr¹|djƒdtjjkr¹tdƒ}t}qÈtdƒ}n|rÛ|jƒn|djƒ|dj|ƒdS(NRiRiRLsýOpenVPN is a virtual private network (VPN) system that implements techniques to create secure point-to-point or site-to-site connections in routed or bridged configurations and remote access facilities. It implements both client and server applications.srWireGuard is a free and open-source software application and communication protocol that implements virtual private network (VPN) techniques to create secure point-to-point connections in routed or bridged configurations. It is run as a module inside the Linux kernel, and aims for better performance and more power saving than the IPsec and OpenVPN tunneling protocols.s@If all configs are in one folder, please activate this function.s:Here you can specify the storage location for the configs.s%Here you can change the standard DNS.scHere you can activate the autostart.
Thus, a VPN connection is started automatically after booting.s[If you disable resolvconf, the standard DNS servers are used. This creates a security hole.sRPlease only activate if you do not want to use the DNS server of the VPN provider.s,This allows you to use free VPN connections.smHere you can choose between different providers.

https://www.vpnbook.com/freevpn
https://www.freeopenvpn.me/sUsername is set automatically.s+Please enter the password from the picture.sŽ1 variant:
Enter login data

2 variant:
creates a text file in /media/hdd or/media/usb, this must be openvpnauth. This openvpnauth file should only consist of 2 lines, these are
username
password
If you now open the settings again, these access data will also be used.

3 variant:
Add a file to the configs with the name pass.file. The content of the file consists of 2 lines, like the openvpnauth.RQRR(RlRÏRRR‘R’R?R±R«R¬RR]RåRéR­R¸RæRçR~RrRURÓ(R¡R=Rq((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRW#sB  @      @//	
(RARBRrRVRTR^RbRwRvRtRuRsRxR{RiRkRŸRrRW(((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR	Ýs"	ƒ													(			R_cBseeZd
d„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd	„ZRS(c
Cs¥tjƒdkr&dtd|_n7tjƒdkrLdtd|_ndtd|_tj||ƒ|d jd	ƒ}t|ƒd
kr¹tj	d	|t|ƒd
d|ƒn|}t
jj|ƒsÚd	}nt
|dtd
tdtdtƒ|d<tƒ|d<t|ƒ|d<tdddgi|jd6|jd6|jd6|jd6|jd6|jd6|jd6|jd6dƒ|d<|jj|jƒdS(Ni€sz

                        <screen name="VpnManagerScreen" backgroundColor="#00ffffff" position="center,center" size="2560,1440" title="VpnManagerScreen" flags="wfNoBorder">
                        <eLabel name="BackgroundColor" position="3,3" size="2555,1435" zPosition="1" backgroundColor="#002a2a2a" />
                        <widget name="logo" position="103,3" size="1357,396" alphatest="blend" zPosition="2" />
                        <widget name="media" position="40,405" size="1480,49" foregroundColor="#00ffffff"  backgroundColor="#002a2a2a" font="Vpn; 36" valign="top" halign="left"  zPosition="2" transparent="0" />
                        <eLabel name="line1" position="37,403" size="1485,1007" zPosition="1" backgroundColor="#00ffffff" />
                        <widget name="folderlist" scrollbarMode="showOnDemand" position="40,457" size="1480,949" backgroundColorSelected="#002f4665" foregroundColorSelected="#00ffffff" foregroundColor="#00ffffff" backgroundColor="#002a2a2a" zPosition="3" transparent="0" itemHeight="56"/>
                        <eLabel name="line3" position="1584,51" size="933,3" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line5" position="1584,464" size="933,3" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line6" position="1584,1363" size="933,3" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line7" position="1584,1409" size="933,3" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line8" position="1584,51" size="3,1359" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line9" position="2517,51" size="3,1359" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line10" position="1587,1363" size="267,3" zPosition="4" backgroundColor="#00ff0000" />
                        <eLabel text="Exit" position="1587,1365" size="267,44" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 32" valign="top" halign="center" />
                        <eLabel name="line10" position="1587,1409" size="267,3" zPosition="4" backgroundColor="#00ff0000" />
                        <eLabel name="line10" position="1853,1363" size="3,49" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line10" position="1856,1363" size="267,3" zPosition="4" backgroundColor="#0000ff00" />
                        <eLabel text="Save" position="1856,1365" size="267,44" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 32" valign="top" halign="center" />
                        <eLabel name="line10" position="1856,1409" size="267,3" zPosition="4" backgroundColor="#0000ff00" />
                        <eLabel name="line11" position="2123,1363" size="3,49" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line12" position="2259,1363" size="3,49" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text="OK" position="2261,1365" size="113,44" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 32" valign="top" halign="center" />
                        <eLabel name="line13" position="2375,1363" size="3,49" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text="V sä" position="2377,1365" size="140,44" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 32" valign="top" halign="center" />
                        </screen>
                        s‚

                        <screen name="VpnManagerScreen" backgroundColor="#00ffffff" position="center,center" size="1920,1080" title="VpnManagerScreen" flags="wfNoBorder">
                        <eLabel name="BackgroundColor" position="2,2" size="1916,1076" zPosition="1" backgroundColor="#002a2a2a" />
                        <widget name="logo" position="77,2" size="1018,297" alphatest="blend" zPosition="2" />          
                        <widget name="media" position="30,304" size="1110,37" foregroundColor="#00ffffff"  backgroundColor="#002a2a2a" font="Vpn; 27" valign="top" halign="left"  zPosition="2" transparent="0" />
                        <eLabel name="line1" position="28,302" size="1114,755" zPosition="1" backgroundColor="#00ffffff" />
                        <widget name="folderlist" scrollbarMode="showOnDemand" position="30,343" size="1110,712" backgroundColorSelected="#002f4665" foregroundColorSelected="#00ffffff" foregroundColor="#00ffffff" backgroundColor="#002a2a2a" zPosition="3" transparent="0" itemHeight="42"/>
                        <eLabel name="line3" position="1188,38" size="700,2" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line5" position="1188,348" size="700,2" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line6" position="1188,1022" size="700,2" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line7" position="1188,1057" size="700,2" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line8" position="1188,38" size="2,1019" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line9" position="1888,38" size="2,1019" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line10" position="1190,1022" size="200,2" zPosition="4" backgroundColor="#00ff0000" />
                        <eLabel text="Exit" position="1190,1024" size="200,33" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 24" valign="top" halign="center" />
                        <eLabel name="line10" position="1190,1057" size="200,2" zPosition="4" backgroundColor="#00ff0000" />
                        <eLabel name="line10" position="1390,1022" size="2,37" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line10" position="1392,1022" size="200,2" zPosition="4" backgroundColor="#0000ff00" />
                        <eLabel text="Save" position="1392,1024" size="200,33" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 24" valign="top" halign="center" /> 
                        <eLabel name="line10" position="1392,1057" size="200,2" zPosition="4" backgroundColor="#0000ff00" />
                        <eLabel name="line11" position="1592,1022" size="2,37" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line12" position="1694,1022" size="2,37" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text="OK" position="1696,1024" size="85,33" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 24" valign="top" halign="center" />
                        <eLabel name="line13" position="1781,1022" size="2,37" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text="V sä" position="1783,1024" size="105,33" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 24" valign="top" halign="center" />
                        </screen>
                        s=

                        <screen name="VpnManagerScreen" backgroundColor="#00ffffff" position="center,center" size="1280,720" title="VpnManagerScreen" flags="wfNoBorder">
                        <eLabel name="BackgroundColor" position="1,1" size="1277,717" zPosition="1" backgroundColor="#002a2a2a" />
                        <widget name="logo" position="51,1" size="678,198" alphatest="blend" zPosition="2" />
                        <widget name="media" position="20,202" size="740,24" foregroundColor="#00ffffff"  backgroundColor="#002a2a2a" font="Vpn; 18" valign="top" halign="left"  zPosition="2" transparent="0" />
                        <eLabel name="line1" position="18,201" size="744,503" zPosition="1" backgroundColor="#00ffffff" />
                        <widget name="folderlist" scrollbarMode="showOnDemand" position="20,228" size="740,474" backgroundColorSelected="#002f4665" foregroundColorSelected="#00ffffff" foregroundColor="#00ffffff" backgroundColor="#002a2a2a" zPosition="3" transparent="0" itemHeight="28"/>
                        <eLabel name="line3" position="792,25" size="466,1" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line5" position="792,232" size="466,1" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line6" position="792,681" size="466,1" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line7" position="792,704" size="466,1" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line8" position="792,25" size="1,679" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line9" position="1258,25" size="1,679" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line10" position="793,681" size="133,1" zPosition="4" backgroundColor="#00ff0000" />
                        <eLabel text="Exit" position="793,682" size="133,22" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 16" valign="top" halign="center" />
                        <eLabel name="line10" position="793,704" size="133,1" zPosition="4" backgroundColor="#00ff0000" />
                        <eLabel name="line10" position="926,681" size="1,24" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line10" position="928,681" size="133,1" zPosition="4" backgroundColor="#0000ff00" />
                        <eLabel text="Save" position="928,682" size="133,22" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 16" valign="top" halign="center" />
                        <eLabel name="line10" position="928,704" size="133,1" zPosition="4" backgroundColor="#0000ff00" /><eLabel name="line11" position="1061,681" size="1,24" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel name="line12" position="1129,681" size="1,24" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text="OK" position="1130,682" size="56,22" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 16" valign="top" halign="center" />
                        <eLabel name="line13" position="1187,681" size="1,24" zPosition="2" backgroundColor="#00ffffff" />
                        <eLabel text="V sâ" position="1188,682" size="70,22" backgroundColor="#002a2a2a" transparent="0" foregroundColor="#00ffffff" zPosition="3" font="Vpn; 16" valign="top" halign="center" />
                        </screen>
                        iÿÿÿÿR¤iRit
inhibitMountstinhibitDirstshowMountpointst	showFilest
folderlistRgtmediaRCRDtSetupActionsRaR]R\RZR[RYR_R^Rd(RnRoRpRqRRrRRÀRâtsubR®R¯R³RRlR(RRRaR]R\RZR[tOKR_RœRRŸ(R¡R¢tinitDirtplugin_pathtdirectory_dataR«((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRrKs:


<	










cCs|jƒdS(N(Rè(R¡((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRa¸scCsftjjjdkr!tjjn	tjj}|djƒd|_|jƒtjƒ|j	ƒdS(NRLRwi(
RRR‘R’R«R¬tgetSelectionR“RRè(R¡tconfig_item((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR_»s
-

cCs|djƒ|jƒdS(NRw(RZt
updateFile(R¡((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRZÂscCs|djƒ|jƒdS(NRw(R[R(R¡((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR[ÆscCs|djƒ|jƒdS(NRw(RR(R¡((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR]ÊscCs|djƒ|jƒdS(NRw(RR(R¡((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR\ÎscCs%|djƒr!|djƒndS(NRw(t
canDescenttdescent(R¡((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR{ÒscCs)|djƒd}|dj|ƒdS(NRwiRx(RRÓ(R¡t
currFolder((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRÖscCs9tjjjdkrtnt}|djj|ƒdS(NRLRg(RRR‘R’R=R>R;R<(R¡RÆ((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRŸÚs!N(
RARBRÚRrRaR_RZR[R]R\R{RRŸ(((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR_Jsm								tCommandcBseZd„Zd„ZRS(cCs(||_d|_d|_d|_dS(NRi(tcmdRÚtprocesstoutterr(R¡R†((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRrás			cs€‡fd†}tjd|ƒ}|jƒtˆ_|jt|ƒƒ|jƒr|ˆjj	ƒt
ˆ_dˆ_d}dSdS(NcsLtjˆjdtdtjdtjƒˆ_ˆjjƒ\ˆ_ˆ_dS(Ntshelltstdouttstderr(	R'R(R†R~tPIPER‡tcommunicateRˆR‰((R¡(s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyttargetès-R(t	threadingtThreadRÖRlR‡tjointfloattis_aliveR‡t	terminateR~RÚ(R¡R‡Rtthread((R¡s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pytrunçs
	
		(RARBRrR—(((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR…às	cCs|g}|ddkr&dt}n'|ddkrCdt}n
dt}|jtjtdƒdtd	ƒtd
ƒdttB|dfƒt|ƒ}|jtjtdƒdtd
ƒtd
ƒ|fƒ|jt	ddtd
ƒfdtdƒdfddddddddƒƒ|S(NiisL/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/image/is_connect%s.pngisO/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/image/error_connect%s.pngsL/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/image/no_connect%s.pngiii¶i&itposi)tsizeiBtfonttflagsR
Rit	backcoloriÿÿÿii(
tdesksizeRRt	TYPE_TEXTR‚RR R)tTYPE_PIXMAP_ALPHABLENDR*(tentrytrestpng_connect((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR½ùs"	


!!!0
cCsÊd}y°tjjdƒrµx—tjdƒD]ƒ}|jdƒddkr+td|dƒjƒ}xH|D]=}d|krjd	|d
ks§|djƒd}Pq§qjqjWq+q+WnWn
d}nX|S(
Nttun0s/etc/openvpnRiÿÿÿÿR¥s/etc/openvpn/%sRÌRÍt#iiRc(R®R¯R°R²RR×RZR[(t
dev_devicetitfRü((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyt
get_devices

cCsXd}xK|dkrOtƒ}|r5tjdƒtStjdƒ|d7}q	WtSdS(Niiii(R©R-R.R~Rl(RÇR5((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR/#s	

cCsKd}x>|dkrBtƒ}|s(tStjdƒ|d7}q	WtSdS(Niii(R©R~R-R.Rl(RÇR5((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRÞ0s	
cCsKd}x>|dkrBtƒ}|s(tStjdƒ|d7}q	WtSdS(Niii(RªR~R-R.Rl(RÇR5((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR
<s	
cCs‡d}tdƒ}|jddƒ|j}tjd|tjƒ}|rƒt|djddƒƒ}|dkrƒt	d	ƒ}qƒn|S(
Nsapt list --installed *openvpn*R‡is
(\d.\d).\diRRiisGInstalled VPN version is outdated, please install a version from 2.4.x!(
RÚR…R—RˆRâtfindalltMtintR·R?(Røtcommandtcmd_outtvtversion_installed((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRÙHs	cCs/tjdƒ}|jƒ}d|kr+tStS(Ns*opkg list-installed | grep wireguard-toolsswireguard-tools(R®tpopentreadRlR~(t	wireGuard((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRUs
cCs9tdƒ}|jddƒ|j}d|kr5tStS(Ns$systemctl status vpn_openvpn.serviceR‡isActive: active(R…R—RˆR~Rl(R¬R­((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRÜ^s	cCs9tdƒ}|jddƒ|j}d|kr5tStS(Ns%systemctl status wg-quick@Wg0.serviceR‡isActive: active(R…R—RˆR~Rl(R¬R­((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRÐgs	cCs,tjdƒ}tƒt|ƒkr(tStS(Ns/sys/devices/virtual/net(R®R²R¨R:R~Rl(t
tun_status((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR©pscCs)tjdƒ}dt|ƒkr%tStS(Ns/sys/devices/virtual/nettWg0(R®R²R:R~Rl(t
wg0_status((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRªuscCs&tjdddgƒ}|jƒdS(Nt	systemctltstopswg-quick@Wg0.service(R'R(R)(t
open_vpn_stop((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRÑzscCs&tjdddgƒ}|jƒdS(NR¶RÖswg-quick@Wg0.service(R'R(R)(topen_vpn_start((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRÔscCsEtjdddgƒ}|jƒtjddgƒ}|jƒdS(NR¶R·svpn_openvpn.servicetkillalltopenvpn(R'R(R)(R¸((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR݄s
cCs&tjdddgƒ}|jƒdS(NR¶RÖsvpn_openvpn.service(R'R(R)(R¹((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRñ‹scCsÌtjjjr>tjjjdkr±tdƒ}|jddƒ|j}d|krztj	dddgƒ}|j
ƒntjd	ƒs;tj	dd
dgƒ}|j
ƒq;qÈtjd	ƒråtj	dddgƒ}|j
ƒntdƒ}|jddƒ|j}d|krÈtj	dd
dgƒ}|j
ƒqÈnŠtjd	ƒrrtj	dddgƒ}|j
ƒntdƒ}|jddƒ|j}d|krÈtj	dddgƒ}|j
ƒndS(NRLs%systemctl status wg-quick@Wg0.serviceR‡isenabled;R¶tdisableswg-quick@Wg0.services/etc/rc3.d/*vpn_openvpntenablesvpn_openvpn.service(RRR]R’R‘R…R—RˆR'R(R)R%(R¬R­topenvpn_autostart((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRՐs:	

	
	cCs€tjƒdkr!d}t}n-tjƒdkrBd}t}nd}t}|rnttt||ƒƒƒSt||ƒSdS(Ni€g±UUUUõ?igø?(RnRoR~RlR«R“tround(R’t
skinFactortskinMultiply((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyR‚µs		cCs|s|jttƒndS(N(RtexitRT(R¢tresult((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyRÂÈscKs|jttƒdS(N(RRÂRT(R¢tkwargs((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pytmainÍscKsXtdtdƒdddtjdddtƒtdtdƒdddtjdtƒgS(	NtnamesVpn ManagertdescriptionsManage your VPN connectionstwhereticons
plugin.pngtfnc(RR?tWHERE_PLUGINMENURÅtWHERE_EXTENSIONSMENU(RÄ((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pytPluginsÑs(ŸtComponents.ActionMapRRtPlugins.PluginRtComponents.LabelRtScreens.ScreenRtScreens.MessageBoxRtComponents.ConfigListRtComponents.configRRR	R
RRR
RRRRRRRtComponents.FileListRtenigmaRRRRRRRRRRR R!R"R#R$R%R&tComponents.MenuListR'tComponents.PixmapR(tTools.LoadPixmapR)tComponents.MultiContentR*tScreens.VirtualKeyBoardR+tComponents.NetworkR,tComponents.LanguageR-tTools.DirectoriesR.R/R0Rttwisted.internetR1RàR-R'R®RâR%RtssltmyScrollBarR2R3tipinfoR4treadFreeVpnBookR5t
readFreeVpnMeR6R;R7tgetLanguagetlangtbindtextdomaint
textdomainR?t_create_unverified_contextt _create_unverified_https_contexttAttributeErrort_create_default_https_contextRpR@t
damnPanelst	damnPanelR¯R°tremoveRïR9R6R7RíRYRRlR«R¬R´R±R]R~RåRRæRçR‘RéRëRìR­R¸R™RnRoRR=R>RTR	R_tobjectR…R½R¨R/RÞR
RÙRRÜRÐR©RªRÑRÔRÝRñRÕR‚RÂRÅRÍ(((s?/usr/lib/enigma2/python/Plugins/Extensions/VpnManager/plugin.pyt<module>sÚdp
 	

	
'-''-	ÿÿgÿn–			
			
													%