[Q] Installing dnsmasq? - Android Q&A, Help & Troubleshooting

Hi all,
I hope this is the right category for this post. If not, I apologise.
So, I have a Samsung Galaxy S2 running CM9 nightly 20120523. I live outside of the US but I enjoy listening to pandora.com. Up until now, I was using a VPN connection to a US server to stream pandora.
However, I stumbled upon tunlr.net that enables us to stream pandora from anywhere just routing your dns queries to pandora on via their DNS and for free.
Because tunlr.net wishes to keep servers load as low as possible, they added artificial delays in DNS queries in an attempt to keep people from using tunlr as their primary DNS.
As such, I have setup dnsmasq on my network to route DNS queries for pandora.com to tunlr.net server's and any other DNS query to my regular ISP/Google DNS.
Now, I would like to achieve the same thing on my i9100 on any wifi network and any data connection.
I figured the best way to do this would be to run dnsmasq locally, edit the dnsmasq.conf so that pandora.com is queried at tunlr.net DNS and using Google's DNS for any other query.
However, I can't find a thorough guide to installing and configuring and running dnsmasq as a daemon on my phone... I tried opkg-cl but it couldn't find dnsmasq (it seems the available packages are not legion). I tried installing from github but not much luck here either.
TL;DR: I am trying to install and run dnsmasq as a deamon on my CM9 Samsung i9100, please advise.
I know a few things about unix/linux but I am not a guru so please don't assume too much in your explanations.
Thanks for your help!

Anyone?

therighttime said:
Anyone?
Click to expand...
Click to collapse
Isn't this done directly in /etc/hosts ? When I once configured a firewall/ router server dnsmasq helped push the DNS addresses to the clients...
Sent from my LG-P350 using Tapatalk 2

Also very interested in this, anyone managed to get this working?

moved to QA section...

dbarrera said:
Isn't this done directly in /etc/hosts ? When I once configured a firewall/ router server dnsmasq helped push the DNS addresses to the clients...
Sent from my LG-P350 using Tapatalk 2
Click to expand...
Click to collapse
AFAIK dnsmasq allows you to specify different DNS servers based on the domain name to resolve. In this case, I want any DNS request to go to the default DHCP specified DNS server and requests for *.pandora.com to go to tunlr.net special DNS servers who does some tunneling and some voodoo magic to make pandora see you as a US based client.
Editing the hosts file will not cut it because tunlr.net reroutes some your cdn requests through their own servers (but not all of them) so as to tunnel them and make pandora see you as a US client. It is not altering pandora.com's IP address, which is what the hosts file would do.

Related

IPv6 support for Gen8

Hi.
I've put a Gen8 kernel with support for IPv6 on
Code:
http://www.pps.jussieu.fr/~jch/software/files/zImage-jch-20110304
(I'm not allowed to post URLs. Grr.)
Rename the file above to zImage, then download chulri's initramfs and follow his instructions on
http://forum.xda-developers.com/showthread.php?t=930197
You can test that it works by browsing ip6.me. (Only if your AP has IPv6, obviously.)
--jch
About the IPv6 support
The above only adds IPv6 to the kernel, and relies on the existing userspace. While Google's userspace has fairly decent IPv6 support (most notably, all Java applications should run with IPv6 without trouble), the Archos uClibc is built without IPv6 support. This means that Archos utilities will not work with IPv6 -- in particular, you won't be able to mount any IPv6 SMB shares.
I've contacted an Archos developer on this subject, and he told me that they have no plans for official IPv6 support in Gen8. (Planned obsolescence?)
--jch
I've added your post to he [INFO] What is root? How do I root my gen8 device? What can I do when I have root? Thread and asked Mr. Clown the moderator to move it to the gen8 dev forum and give you access to it.
Moved to dev forums
jch0 said:
The above only adds IPv6 to the kernel, and relies on the existing userspace. While Google's userspace has fairly decent IPv6 support (most notably, all Java applications should run with IPv6 without trouble), the Archos uClibc is built without IPv6 support. This means that Archos utilities will not work with IPv6 -- in particular, you won't be able to mount any IPv6 SMB shares.
I've contacted an Archos developer on this subject, and he told me that they have no plans for official IPv6 support in Gen8. (Planned obsolescence?)
--jch
Click to expand...
Click to collapse
the toolchain that comes with the archos kernel sources is quite outdated.
but the http://buildroot.uclibc.org/ toolchain (git clone git://git.buildroot.net/buildroot) has ipv6 support, i believe. but im no developer.
the toolchains options show beside others:
*** Toolchain Options ***
[*] Enable large file (files > 2 GB) support
[*] Enable IPv6 support
[*] Enable RPC support
-*- Enable WCHAR support
[*] Enable toolchain locale/i18n support
woti23 said:
the http://buildroot.uclibc.org/ toolchain (git clone git://git.buildroot.net/buildroot) has ipv6 support, i believe.
Click to expand...
Click to collapse
It can be built with IPv6 support, yes (it's disabled by default).
But that doesn't solve the issue. Archos' /lib/libc.so and all the utilities linked against it don't support IPv6; short of replacing all of that, you're not going to get IPv6 support in the Archos-provided utilities (notably the SMB support).
(Off-topic rant. The IPv4 pool has become exhausted last month. Buying a networked device with no v6 support in 2011 is highly idiotic.)
--jch
jch0 said:
(Off-topic rant. The IPv4 pool has become exhausted last month. Buying a networked device with no v6 support in 2011 is highly idiotic.)
Click to expand...
Click to collapse
Rant on off-topic rant: why should it be idiotic? You don't need IPv6 in LAN. Thus the end-devices don't need to know it as well. ISPs can do NAT on all those dynamic IPs.
You cannot switch to IPv6 in 2011, neither in 2012. So many people still have IPv4-only devices. Switch the IP protocol and they'll be back in middle ages
Why we need IPv6
I think that's actually getting back on-topic -- why do you need IPv6 in your Android device in the first place?
chulri said:
ISPs can do NAT on all those dynamic IPs.
Click to expand...
Click to collapse
NAT breaks peer-to-peer applications, such as Skype, SIP or Spotify.
Right now, we're working around NAT by using UPNP, NAT-PMP, UDP hole punching, STUN and other nasty hacks. With the v4 pool exhausted, ISPs are going to start deploying double-NAT (which is what you're alluding to), and these techniques are going to become increasingly unrealiable.
Some actual data: Spotify uses both client-server and peer-to-peer communication, and falls back to pure client-server operation when peer-to-peer fails. According to Spotify's CEO, peer-to-peer works in a mere 60% of cases -- that means that 40% of Spotify clients are using pure client-server, putting load on Spotify's servers. (I'm not aware of any actual data from the Skype folks.)
In short -- you don't need IPv6 if all you do is browsing the web. You do need IPv6 if you want non-web applications to still work in 2013. And I certainly do.
Switch the IP protocol and they'll be back in middle ages
Click to expand...
Click to collapse
Nobody's speaking of switching IPv4 off in the foreseeable future -- we're doubtless going to use double-stack (both IPv4 over NAT and end-to-end IPv6 on the same device) for years to come.
--jch
P.S. $aur0n, are you listening?

[Q] Setup an Encrypted VPN on my home Ubuntu server for my Android

The title basically says it all. I already have an ubuntu server at home that I can ping. From outside my home network.
Basically I need too know what program I need to setup on my machine so I can securely tunnel all my network traffic through my server.
I would like to use the native android vpn settings, however I have SSHTunnel on my rooted gingerbread phone so I can use that as well.
Lastly, I am aware that I can purchase a VPN service. I just want to do this for the learning experience.
Configure Open VPN on your Operating system then download the open vpn client on your phone from Android market. The traffic will be routed then through your desired server. I think this is he way through which you can diversify the traffic from your server to android phone.
That really hit the spot! Thanks for the help!
Also, for everyone else who doesn't want to setup their own server there is also the app by the Tor Project.
Sent from my M865 using xda premium
Hi
Any detailed tutorial available on this topic? I tried to search in the forum, but could find it so far. Will search once again in detail, if somebody knows about it please provide me the link to the related post. Thanks
gopi

[APP] VPN Server on Android Device?

I'm looking to run a VPN server on my Android device so that I can set up a virtual network adapter on my PC to connect to the same network as my Android's wifi. I've seen plenty of Android VPN clients, but no server software.
Is there any software out there to run a VPN server on an android device?
I've heard OpenSSH runs an L2/L3 VPN, but I everything I can find on getting OpenSSH running on Android is all about ftp, and they usually wind up running an alternative. Is there a release of OpenSSH I can use on android for the purpose stated?
Thanks for your patience and support,
Serrath
Bumping the thread.
serrath said:
Bumping the thread.
Click to expand...
Click to collapse
I've ssh into my droid phone without a problem using SSHDroid. I'm also looking for how to setup a vpn server(vpnd) on the same droid phone. It might make it simpler for some work I do that requires access to the static ip address I have at home.
I may go with the following solution instead. blog.gidley.co.uk/2009/03/tunnelling-ssh-over-socks-proxy.html
If you're still looking, we just released Servers Ultimate from which the latest update (today) allows you also to run a VPN Server!
Have a look at the thread and let me know what you think of it! You do need a rooted ARM device to get it working (most devices are arm and if you think about a vpn server you're probably also rooted )
http://forum.xda-developers.com/showthread.php?t=1829334
Themuzz said:
If you're still looking, we just released Servers Ultimate from which the latest update (today) allows you also to run a VPN Server!
Have a look at the thread and let me know what you think of it! You do need a rooted ARM device to get it working (most devices are arm and if you think about a vpn server you're probably also rooted )
http://forum.xda-developers.com/showthread.php?t=1829334
Click to expand...
Click to collapse
i want some help in building an adblock app. I need to intercept all requests using vpn to local a vpn server.

[Search] no root adblock without vpn

my problem is that i have a non rooted phone with vpn always on and im searching for an app to activating ad block on it.
My fix for it would be to use an android wide proxy or a custom dns that overrides vpn dns.
as title said an root app or an app that provides vpn solution wouldnt be what im searching for. I had once an adblock app that routes traffic trough local proxy beside the vpn but cant find it anymore
Update: i found AdHell but its only for Samsung Devices with knox. Any other solutions?
HeathenMan said:
Update: i found AdHell but its only for Samsung Devices with knox. Any other solutions?
Click to expand...
Click to collapse
any news on this one?
I wanna use protonVPN and adblcoker at same time
a bit of elbow grease to protect self from Privacy Raping
Some [open]vpn clients allow vpn side connection to Socks5. Some even allow toggle of LAN access from device. I am not claiming a finish product exists but perhaps this gives you some joy.
Perhaps your socks5 instance runs in Amazon AWS free tier. Maybe it runs locally on your android handset. Perhaps you run Privoxy itself on android. [@mod: privoxy is F/OSS older than this forum]. There are a few privoxy projects for android on github. Perhaps you pick their brain. It was that against which proxomitron competed [also F/OSS. Thank God for Scott Lemmon].
Using things in differing order you might search the article to which I may not link: Privoxy on Android (with EC2 VPN)
I wanted to bring the Amazon EC2-based Privoxy service to it, by way of a VPN.
Click to expand...
Click to collapse
There was no obvious way to contact the author who hasn't posted since 2016.
There is an OpenVPN service you can likely find the name of yourself offering *recently* an adblock toggle and AntiTracker toggle with a hardcode mode to protect you from predators like google and Fbook. It shouldn't be long before others emulate this functionality. It sports the vpn side socks5 option.
Or privoxy tunnel to remote [cloud (openvpn)]. See? Fun with permutations. Maybe from phone with ShadowSocks to cloud to vpn to web. "OpenVPN over shadowsocks". At this point look into sites helping Chinese dissidents.
You definitely then return here with your improvements to share.
The remaining question is how much is your time worth? Not much? Then search the web ad naseum for the 'ideal free' solution. Elsewise pony up some pennies for some cloud time as part of a solution.
Same question here !
And it seems that adhell is now only available for entreprise use
Wasn't AdGuard doing that?
yes you are right. it works with setting a private dns in the system settings with dns.adguard.com - no batterydrain - no more ads - no vpn - no root

General Tethering

Has anyone found a way to tether from the phone without being throttled?
mosh.org
mosh then forward traffic through the tunnel
no privilege elevation needed
Let me go have a look see at it. I'm not looking for the full 5G but God I lived through dial up once already.... and it looks to be open source which is even better!
XeoNoX said:
mosh.org
mosh then forward traffic through the tunnel
no privilege elevation needed
Click to expand...
Click to collapse
I am guessing you recommended this without actually having tried it because according to the mosh readme: "Mosh does not support X forwarding or the non-interactive uses of SSH, including port forwarding."
If mosh can be actually used for tunneling, would you please describe specifically how to do so? My general understanding of this would be to run a server app on the phone and then connect client devices like PC's and Android TV's using mosh in client mode to it to forward their traffic through it. However, I cannot find an SSH server app for Android which will run on Android 11 due to changes made by Google in Android 10 and above. My understanding of the official mosh documentation is that mosh requires an SSH server to establish a connection before it can run its own server mode.
In addition will mosh tunnel both IPv4 and IPv6 traffic? If so, how would this be setup? Would two separate server sessions be required?
Iv tried most of the paid apps in the store (Klink, Pdanet+ and so forth) and Klink while not full speed works the best but after a few days all of the sudden you lose the ability to use sites like Netflix, Amazon Prime Video, or oddly Minecraft services.
i get anywhere from 85-130mbps by using vpn hotspot + adguard. it requires root tho.

Categories

Resources