Mobile hotspot + VPN gateway - Nexus 5 Q&A, Help & Troubleshooting

My carrier is blocking my data whenever I activate my mobile hotspot, I already ran this command in ADB shell
Code:
settings put global tether_dun_required 0
But somehow my carrier is still detecting that I'm tethering, so I'm also trying to create a VPN gateway
I followed this guide and created a Shell script and placed it in /data/local to configure the IP tables
Code:
iptables -t filter -F FORWARD
iptables -t nat -F POSTROUTING
iptables -t filter -I FORWARD -j ACCEPT
iptables -t nat -I POSTROUTING -j MASQUERADE
ip rule add from 192.168.43.0/24 lookup 61
ip route add default dev tun0 scope link table 61
ip route add 192.168.43.0/24 dev wlan0 scope link table 61
ip route add broadcast 255.255.255.255 dev wlan0 scope link table 61
However when I connect on my PC I get "No Internet Access" even after setting the DNS correctly. The weird thing is when I run netcfg on my phone I get 'not found'
{
"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"
}
But that shouldn't stop the shell script from working correctly on boot? The only thing I'm thinking is my configuration is different from the author's and that why it isn't working
I can't run netcfg though to even check if that's why, has anyone else experienced this or can point me in the right direction? I'm using a Nexus 5 running 6.0.1

Related

IP Tools

IP Tools - a convenient and powerful tool for network analysis.
{
"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"
}
The program includes the most common tools that you can
found in Windows and Linux.All the need for information about the ip address or website
now in your device.Simple interface allows you to quickly find out your ip address and get detailed information on any other Internet addresses, and a special service connection test will tell you that there is no internet connection.
With IP Tool, you can:
☆ Check your ip address and other information about the network to which you are connected.
☆ Get information about the site and its owner.
☆ Check the availability of ports on your device (the port is open or closed).
☆ Built-in ping utility will let you know the time of the packets from you to any website
or ip address.
On Google Play​
Just downloaded. I work with centurylink. So will try it out at work. You should add wifi channel, maybe password if already connected to ssid could be helpful to give to customer instead of reading off back of modem after connected
Good
Good app.Thanks you.
IP Tools 3.8
* Executing tools in real time.
* UI improvements.
* Some new dhcp options.
* Improved detecting root and tools.
* Fixes for Android 2.3.
* Updated localizations.
* Many other improvements and fixes.
IP Tools 5.0.1:
- Bugs were fixed
Seems great.
Is there a tutorial somewhere?
For instance, in lan scanner what does ::1 stand for and what else can be entered here?

[APP][4.4+] DPITunnel (Censorship bypass)

Hello everyone...and sorry for my English!
My name is Evgeniy and I made android application called DPITunnel
DPITunnel is an android application designed to bypass site blocking systems (yes, in some countries some sites are blocked).
How site blocking systems work?
DPI (Deep packet inspection) systems looking for site address in all TCP packets. They try to find an address that needs to be blocked and if they find they do not allow the packet to reach the remote server.
How to bypass DPI's?
Most DPI's can't reconstruct TCP-session, so we can send HTTP/HTTPS request in some packets. Another way to bypass DPI's (it works only for HTTP) is to change host header spell or replace CRLF end of line symbol with LF symbol. Another problem is that some ISP's redirects all DNS requests to their servers and may return the wrong answer if site is blocked. To overcome this problem we must use DoH protocol.
DPITunnel's features:
Support many DPI bypass methods
Support DoH protocol
Support SOCKS5 proxy
Don't impact perfomance of sites
If you have any ideas, suggestions or you found a bug/mistake, feel free and let me know.
Email: [email protected]
Github repository: github.com/zhenyolka/DPITunnel (XDA don't allow me to post links)
DPITunnel's screenshots:
{
"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"
}
This app get error when turn on VPN. I can not use this app.

How can I enable cpu, memory, and io in cgroupv2 (attempt to run Docker on Android)

I am trying to run Docker on Android, using a Pixel 3a XL rooted, running stock rom but flashed a custom kernel. I need to enable cpu, cpuset, memory, io, and pid controllers in cgroupv2. After enabling them in menuconfig and flashing the kernel, the script used to check shows only pid available under cgroupv2 controllers.
What do I need to do besides enabling these options in the kernel’s menuconfig? Did I maybe not enable all the necessary options? Any help would be greatly appreciated!
With the current state, when I run docker I get a warning for each item, ex “WARN: Unable to find cpu controller”. and error setting cgroup config for procHooks process: bpf_prog_query(BPF_CGROUP_DEVICE)
As I understand it, these options may be mounted with cgroupv1 and this is why they do not show up?
I am using this guide: https://gist.github.com/FreddieOliveira/efe850df7ff3951cb62d74bd770dce27
and these are the options I enabled in my kernel using menuconfig: https://wiki.gentoo.org/wiki/Docker
From the config I flashed in my kernel:
CONFIG_CGROUPS=y
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_PIDS=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CPUSETS=y
CONFIG_CGROUP_CPUACCT=y
I flash the kernel by flashing the Image.lz4-dtb file that is created after building the kernel.
Here is a photo after running the script to check if kernel options are all enabled. Am trying to change these from missing to available/enabled.
{
"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"
}
You are all set, all you need to do is run these commands every time you boot your device before running
Bash:
dockerd
Bash:
sudo mount -t tmpfs -o mode=755 tmpfs /sys/fs/cgroup
sudo mkdir -p /sys/fs/cgroup/devices
sudo mount -t cgroup -o devices cgroup /sys/fs/cgroup/devices
Or you can use Termux:Boot to do this automatically
EDIT:
You will find all you need by going to the original post here

Android 8.1 Custom Init Scripts

Alright guys, I have a generic tablet with android 8.1it has an mtk armv7 processor... I'm trying to write a oneshot init that executes a shell script from /system/xbin but when I add it it doesn't seem to execute my script. Can someone help me with how to add it? The code I'm using is as follows:
# Run init.d scripts
service bsleep /system/bin/bsleep.sh
class late_start
seclabel u:r:shell:s0
user root
group root
oneshot
Click to expand...
Click to collapse
#!/system/bin/sh
(until [ "$(getprop sys.boot_completed)" == "1" ]; do
sleep 1
done
input keyevent SLEEP
Click to expand...
Click to collapse
If supported by kernel so-called init.d scripts must be located in directory /system//etc/init.d to get detected at boottime and run - scripts must be RWX. To push init.d scripts to this location elevated rights ( AKA ROOT permission ) is required.
On devices with non-rooted Android a workaround is possible: Using an App that emulates the Init.d function, e.g. Universal Init.d
{
"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"
}
Note: Universal Init.d app is no longer available in the Google Play Store. Please, download the Universal Init.d APK instead.

Sm-n975u and termux

i was messing with termux on my SM-N975U, developer options on, phone isnt rooted. I ended up with a " > " symbol in which I could still type commands, but got no response. What does a " > " mean ? Thats the only symbol in the start of the command line. I didnt know where to go from there, and I...well I thought mybe Id be able to reach the root directory of my android system.
What version of Termux ?
Termux for Android typically has the $ sign prompt
{
"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"
}
if you start app > symbol means terminal emulator has no connection to shell. in other words initialising of app is not finished and app is not ready for use (yet)
if you type commands with wrong balanced single quotes, > symbol means it is waiting for you to finish input. type ' and finish with enter.
Code:
:/ $ echo 'Hello
> World'
Hello
World
:/ $
there exist other commands waiting for input, exit by simply closing app if you don't know how to finish input.
very well explained , thank you very much! Merry Christmas!
It is the Github version, latest. Actually , i was already using the terminal, i migrated to here > somehow. Ultimately I ended up closing the app. I did try to work my way back thru the file system tree that I followed to get to > , but I couldnt seem to do it . The thing i didnt try was :/ $.
:/ $ is just my prompt, nothing I typed

Categories

Resources