[Guide] How to setup WireGuard with AzireVPN - ZenFone 2 General

Edit: Easier guide.
Code:
Disclaimer:
AzireVPN is a third-party service that is currently providing free VPN for WireGuard users for an undetermined time.
I have no relation or association with the company. All rights reserved to the Azire team.
If you follow this guide, you are at your own risk. I'll not be held responsible for any damage.
What is WireGuard?
"WireGuard is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPSec, while avoiding the massive headache. It intends to be considerably more performant than OpenVPN. WireGuard is designed as a general purpose VPN for running on embedded interfaces and super computers alike, fit for many different circumstances. Initially released for the Linux kernel, it plans to be cross-platform and widely deployable. It is currently under heavy development, but already it might be regarded as the most secure, easiest to use, and simplest VPN solution in the industry." - WireGuard Website
Click to expand...
Click to collapse
How can I use Wireguard?
To use Wireguard with your phone, you will need a kernel (or ROM) with WireGuard support. For this guide, we will focus on Z00A, since this is my device.
Currently we have Hololite and Holo Kernel for Z00A and Z008 by @nutcasev1.5 which supports wireguard.
After flashing the required kernel and booting the device, you will need to download the WireGuard app from Playstore.
Now we need to configure the VPN server. Currently AzireVPN is providing free access to WireGuard users for an undetermined time, to test their infrastructure. So we will use it.
To start, create an account on their website and then go to their WireGuard page and check the "Manual Configuration without Script" section. We will use that as a base.
Next, we will need cURL to obtain the required information from Azire to be able to connect to their service with WireGuard. If you are using Windows, you can download Git for Windows and use the git bash to execute the command. If you are on Linux, you can search how to install cURL for your distribution and do it normally.
Now we can proceed. Open the Wireguard app on your phone and touch the "+" and then "Create from scratch". Then, click on "generate" and save the public key generated.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now we can execute the cURL command:
curl -d username=REPLACE --data-urlencode password=REPLACE --data-urlencode pubkey=REPLACE https://api.azirevpn.com/v1/wireguard/connect/se1
Click to expand...
Click to collapse
Replace all the "REPLACE" with the corresponding information: your Azire username, password and the public key we generated with the app.
If everything goes right, we will obtain a response close to this:
Code:
{
"status": "success",
"data": {
"DNS": "193.180.164.2, 2a03:8600:1001::2",
"Address": "10.18.1.182/24, 2a03:8600:1001:1080::10b4/64",
"PublicKey": "bdR5gm5vcrm9N9I7BeQqHOgrmQApSGIe9qc1homBjk8=",
"Endpoint": "193.180.164.60:51820"
}
}
With that, we can now configure the app.
On interface, you can set any name you like.
On Addresses, set the "Address" ip range from the response. E.g: 10.18.1.182/24. You can ignore the IPV6 stuff.
On DNS servers, just copy the ip from the "DNS" response.
Click on "Add Peer" and copy the "PublicKey" from the response to the Public Key area. Be careful if copy pasting, sometimes the last part of the key get striped off, so double check.
On Endpoint, copy the "Endpoint" ip+port from the response.
Set 0.0.0.0/0 on Allowed IPs.
Set Persistent keepalive to 25 so we don't get delayed notifications while conected to the VPN.
Click on the Save icon.
Example config:
You can now go ahead and toggle the config we just created, if everything goes right, no error will be presented.
If you want to test if you are really connected, go to the Azire Website with your phone and request the desktop site. The message "Successfully connected to AzireVPN" should show at the top corner. The app also adds a quick tile to easily toggle on and off the VPN.
There you go! Now please keep in mind that Azire is offering their service for free and they can shut it down at any moment.

Can access Netflix content with this?~

nijihana said:
Can access Netflix content with this?~
Click to expand...
Click to collapse
You mean blocked content? Sure, I guess. But you have to keep in mind that the available servers from Azire are limited, you can't choose the region. If you want anything specific, you will have to setup your own server or search for a paid service.

Follow other guide
Hello: a simpler guide to accomplish the same thing exists here: https://forum.xda-developers.com/android/general/guide-how-to-wireguard-android-ubuntu-t3723544
I'd suggest users follow this, rather than trying to futz with a shell script in Windows and the other over-complicated steps outlined.

Related

Security Tools (Ping, Traceroute, Whois, Port Testing)

This is a 1.0 release and is looking for people to try it out. The application allows for pinging a host, trace the path to a host, do Whois lookups on domain names, and even test ports. You can download it from http://www.securenetworksystems.com/SecurityTools/ and can get a demo license from http://www.securenetworksystems.com/SecurityTools/demo.aspx that will give you a week of testing the software. The image below shows a trace that is mapped out.
We are releasing this for testing before it goes up for sell, so any productive feedback is appreciated. Please note that full installation size is around 45MB (due to a database size), so it is a good idea to verify you have enough space on your phone/device or install to a storage card.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
* Works with Windows Mobile PPC devices with Compact Framework 2.0 or later
* Ping, Trace, WHOIS and Port Scan
* View your trace on a map and follow it hop by hop
* Test port ranges or try a single port and send clear text commands to the port
* Save your results and load them back in at any time
* Utilize any network connection (3G, CDMA, 802.11, ActiveSync, etc.),
System Requirements:
* Pocket PC with Windows Mobile 5.x, 6.x Pro or later
* Compact Framework 2.0 or later
* Network/Internet Connection
* It is recommended that you have an unlimited data plan through your phone provider
* ~45MB of storage space for all features, more space is needed for map data and map data is downloaded on need basis
Latest Release (9/15/2009)
Enhanced: Finger control for the map (larger zoom buttons).
Fixed: Scaling issues for VGA/WVGA (large screens) in the port testing section and in the setup wizard.
Fixed: An error in setup wizard if Device is selected for tile cache location.
Fixed: If a service returned special characters (such as SSH) in port testing during a single port test, the entire message would not be displayed. The message is now shown without the characters that can’t be displayed.
I just added some additional picture so you can see some of the other cool functions of the application. The only thing that isn't shown here is the WHOIS lookup. Hope everyone is enjoying the free trial.
Nice tool to do simple troubleshooting while on the road.
The Whois gives a lot of garbage. It should search for the exact match. If people want more sites that aren't exact matches, wildcards should be used. Instead, a Whois for google.com gives no relevant data, and you have to do another search to get the info. The search gives things like google.com.zzzzz.download.movie.online.zml2.com, as well as addresses to porn sites.

Box account flagged?

For those who made new Box account last month using edited build.prop to gain 50GB upgrade is anyone else having problem logging on? Seems like it started today and no way am I able to logon via Box (v1.5.1.2) from MT4G even when logon credentials are valid and works via web browser from device and PC but not the app itself.
I clear the cache, didn't work. I uninstalled app and reinstalled, didn't work. I am guessing they are flagging the accounts same way they granted the upgrade as by reading device and manufacture string. Post here if anyone else is having issue or is it just me, which is very unlikely.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i didnt edit the build prop but had a friend sign me up on his touch pad. the app is working fine for me today on my mytouch 4g, not much help sorry.
No problem on my end. I edited my build prop
Sent from my HTC Glacier using Tapatalk
Well I still don't see any reason for me to not able to logon as data connection is enabled and active while password is valid. Only thing I can think of other than that is if it was disabled by Box admins
Storage: 19.7MB of 50.0GB (6 files)
Bandwidth: 22.7MB of 10.0GB (72 downloads)
Now I am not using their service excessively as you can see from stats above. Nor am I sharing any files that would violate their TOS as nothing is media related that would be any ways remotely considered copyright infringement. Matter of fact its all for XDA folks which is under GPL. I am sure I am flagged ATM by them as it won't allow me to logon via device even from another account and another device. Maybe they cross linked it and blacklisted the device IMEI when device manufacture/device didn't match. Thus flagging the account from logging in but who knows. All I know is I have no access which is kind of shaddy if you ask me.
Sent from MT4G-Glacier powered by HKM's GB2.3.X Enhancement Package v1.2
can you login via browser or on computer?
tw39515 said:
can you login via browser or on computer?
Click to expand...
Click to collapse
Look below as its stated in first post.
HKM said:
logon credentials are valid and works via web browser from device and PC but not the app itself.
Click to expand...
Click to collapse
Hmmm still no access via mobile app Box (v1.5.1.2) but before I couldn't even logon. So I synced with local /data/data/com.box.android/ and linked /SDCard/Box/ to it and its able to get passed All Files/Update but it won't update due to auth issue. As it shows offline status with valid connection, POS Box why disable me.
Sent from MT4G-Glacier powered by HKM's GB2.3.X Enhancement Package v1.2
oh well use something else, good luck unsuscribed.
I got a 50MB account by editing the build.prop as well and I was able to log in without problems. You might want to contact Box.com, they might be able to help you out as to why you're having problems logging in.
Problem=SOLVED
HKM here, so I contacted Box support and they didn't even respond to the ticket. So I took matters in my own hand and found the issue and even fixed it. So if anyone else having this same issue on XDA then let this be a reference.
Problem: Unable to login Box.
Symptoms: Offline and unable to sync.
Cause: Entries in hosts file.
Effect: Rx/Tx queries blocked.
Diagnosis: Finding manually and physically removing the entries.
Keep in mind this will save you alot of time if you do this on PC. But it can also be done from the device physically.
1) Go locate the file by following its absolute path below.
PATH: /data/data/hosts
SYM1: /system/etc/hosts
SYM2: /etc/hosts
2) You can adb pull the file to PC and view it in text editor or from File Manager in the device open it with its text viewer/editor.
3) In text editor search for entries listed below.
.box.
box.net
box.com
4) The intruding entries would look something like below.
127.0.0.1 box.net
5) Once you find it then just simply remove the line and search again for multiple entries if present.
6) When its all done just save the file by replacing it and restart the device to take effect.
Sent from MT4G-Glacier powered by HKM's GB2.3.X Enhancement Package v1.2

ARC - Android Remote Control for R/C toys

ARC - Android Remote Control
Version: 0.3
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Screenshot
Video
http://www.youtube.com/watch?v=2oS9bj6L5Kw
http://www.youtube.com/watch?v=z52hv4cmYFo
http://www.youtube.com/watch?v=L9IqT6xJ1J8
http://www.youtube.com/watch?v=EgHK0s5ghZ4&list=HL1377604141
http://www.youtube.com/watch?v=TlmUWQ1f2Oc
http://www.youtube.com/watch?v=czvuJapP-rc
http://www.youtube.com/watch?feature=player_detailpage&v=_1gRtCArSQg
ARC - is a application for control your R/С toy with video broadcasting using only Android and Wifi connection.
The idea is to bypass the remote transmitter and receiver R/C and connect android device (without spoiling the very toy extend its functionality)
All you have to do is solder a 3.5 Jack to the toy and install the script as instructed or app.
For control ARC using Internet browser which makes possible control your android on many devices with another operating system.
Instruction
1 For finalize Rc need only wire with 3.5 jack (eg headphones). For transferring sound need only right channel.
2. Need to solder 3.5 Jack to the rc board
- Common wire (GND) to negative charge
- The right channel (R-channel) to the coil like in the picture
At the moment, there is a Python script and started to develop the first application for Android.
Download new version : 0.3
Developed by Garik_djan
App on Github
Old Python script
Installing software
1. Download the archive for a tank or car.
2. Set application in this order
- Sl4a_5.apk
- PythonForAndroid_r4.apk - after installation open the app and click install
- Ip + webcam.apk.
3. Copy ARC.py file to sdcard \ sl4a \ scripts.
4. Copy folder “Droid Car” to sdcard \.
Running the app
1. Open sl4a.apk select the script ARC.py and click the icon terminal. Without closing sl4a run the application Ip Webcam. At the bottom of the screen will be listed ip of your device.
2. On your PC or Android, open a web browser and enter you Running the application
1. Open sl4a.apk select the script ARC.py and click the icon terminal. Without closing sl4a run the application Ip Webcam. At the bottom of the screen will be listed ip of your device.
2. On your PC, open a web browser and enter the ip android device:9090.
Ie, your ip: 9090
General Information
1. For that would go to the page control your toy, you need to enter into the browser of your device ip and port separated by a colon. Should look like so: Ip your device: 9090
2. Window management is as
3. An application can use 3 ways:
- The buttons in the browser window
- Joystick in the browser window
- Num keys on the keyboard
4. You can control the toy from foreign and home network.
In order to be controlled from an external network to a router to forward ports 9090 and 8080 on the Ip of your device. In your browser, open the application and specify your external ip: 9090.
5. The joystick in the browser window has 8 positions. Currently used only 6.
6. Broadcasting is carried out by means of the application IpWebcam. If desired, you can install the application on your choice or use the program Skype.
Control boat http://www.youtube.com/watch?v=fs--WHJVAjE
ARCv08
- Updated the sound commands.
- Added folder All sound. A catalog of all audio commands and their combos.
Update:
Python script ARCv09
Add beta android app.
Started development of the first app for android
You can download it from the link: https://github.com/Garik-/ARC/releases
It is an open source project. If you can make the application better I would be very grateful for any help.
Think you could add helicopter controls too?? Would be sweet
Its real. But at this moment app use http server and he too slow for heli. Mb on future. And i does not have a big helicopter for cell phone.(
Now i make database in app for cheap toy on rx, rx2 and similar chip - will be in the next update

[Library] PinLockDialog - Protact Your app with One Line code.

Description -
This Library is to use as a app passcode protection implementation, which allows developer to protect their app with a four digit code.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
When you Implement it into your app, then user have to Enter four Digit Pin Code as Developer implemented it, for e.g.- onCreate onResume onRestart or More...
This is just a dialog which doesnt need any kind of permission or manifest entry.
just Implement it and use it.
enabled a four-digit passcode needs to be entered any time your mobile app is launched. This way your app is safe even if your smartphone or tablet falls into the wrong hands.
*Note: This library doesn't add any extra protection to your data. App data will not be encrypted, the library just adds a pin lock screen that makes the app safe even if your kids put their hands on the device.
Library
Library Link is HERE
Implementation
Step1- Download the zip and Import library into your workspace, "Don't Forget to mark on Copy to workspace"
Step2- Refer Library from your App.
Step3 - Make an Object of PinLockDialog Class and show it anywhere you want to.
For E.G.
new PinLockDialog(CurrentClassContext, pininString, OnPinMatchMessage, onPinMismatchedMessage).show();
Customization
To Change the Background of Lock, Just replace the dialog_bg.png from res/ to your's png.
Have Fun. I will post some ScreenShot Soon.
License
The MIT License (MIT)
Copyright (c) 2015 Aman Tonk
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
​

Cannot Disable Native Captive Portal Detection

Starting shortly after the 7.1.2 official builds, I can no longer successfully disable native captive portal detection on my 6P.
I used to be able to use the following command in adb shell: adb shell settings put global captive_portal_detection_enabled 0
However, this no longer has any effect, even though I can run the next command: adb shell settings get global captive_portal_detection_enabled and it will return 0 like it is supposed to, indicating that it has been disabled.
It seems that this functionality has been broken in the latest security patches, and I have searched far and wide with no answers except for what I already know. If I cannot disable native captive portal detection, it will not permit "Hello Guest Wifi" (an app that used to work reliably) to automatically sign into the public network at my workplace and requires manual connection multiple times per day. Any help would be greatly appreciated!
Hi, I had the same issue. After digging into android_framework_base, this was not broken, but the configuration has changed.
Now there is 3 captive portal settings:
https://github.com/LineageOS/androi...ore/java/android/provider/Settings.java#L8273
- ignore: Don't attempt to detect captive portals
- prompt (default): When detecting a captive portal, display a notification that prompts the user to sign in.
- avoid: When detecting a captive portal, immediately disconnect from the network and do not reconnect to that network in the future.
The setting to configure is no more captive_portal_detection_enabled. Instead, use captive_portal_mode
settings put global captive_portal_mode 0
Click to expand...
Click to collapse
guilc said:
Hi, I had the same issue. After digging into android_framework_base, this was not broken, but the configuration has changed.
Now there is 3 captive portal settings:
https://github.com/LineageOS/androi...ore/java/android/provider/Settings.java#L8273
- ignore: Don't attempt to detect captive portals
- prompt (default): When detecting a captive portal, display a notification that prompts the user to sign in.
- avoid: When detecting a captive portal, immediately disconnect from the network and do not reconnect to that network in the future.
The setting to configure is no more captive_portal_detection_enabled. Instead, use captive_portal_mode
Click to expand...
Click to collapse
Oh, thank you so much. I was having this issue with my Lenovo Zuk Z1 and you just saved me a huge amount of frustration. lol
guilc said:
use captive_portal_mode
Click to expand...
Click to collapse
works awesome on android 7.1
you saved my live
this is it!
@guilc
well done!
@wannabe-developers
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
u should be condemned to have only access to networks
that block access to your hard-coded:
'yes i can curl that, now the system has internet access'
targets for the rest of time.
and no root or adb access!
thx for breaking the user :silly:
guilc said:
Hi, I had the same issue. After digging into android_framework_base, this was not broken, but the configuration has changed.
Now there is 3 captive portal settings:
https://github.com/LineageOS/androi...ore/java/android/provider/Settings.java#L8273
- ignore: Don't attempt to detect captive portals
- prompt (default): When detecting a captive portal, display a notification that prompts the user to sign in.
- avoid: When detecting a captive portal, immediately disconnect from the network and do not reconnect to that network in the future.
The setting to configure is no more captive_portal_detection_enabled. Instead, use captive_portal_mode
Click to expand...
Click to collapse
thank you so much
you saved my time clearing this annoying notification.
I get permission denial message when I try this command, its a shame there isnt an xposed module for this..
well...
got root?
if not try adb from pc...
i guess: no root, no luck! though

Categories

Resources