[MOD]Custom DNS Servers - Fascinate Android Development

Thanks to jt1134 for some info he gave me, I've found how to enable custom DNS servers for the mobile connection. Since I figured others may want this as well, I'm posting Clockwork zips here for OpenDNS, Google, and the default settings. If people would like other DNS server options and don't feel like doing this themselves, I could easily make other zips as well.
See here for a reference on what needs to be changed if you want to do it yourself. With the OpenDNS option, you can go to www.internetbadguys.com after the change and it should display as a potential phishing site. Another option that can test any of the changes is http://myresolver.info/ and it will tell you what DNS server your device is using.
This should work for both DI01 and DJ05. If you wish to do modify the DNS info yourself, see here. Also, here is a snapshot to show that OpenDNS is working. Still working on a way to test out to verify Google's DNS servers.
UPDATES:
12/18 - Updated zips to resolve MMS issues
12/12 - Added Level3 DNS Servers, updated Google and OpenDNS packages to replace only "ip-up"

How would I do this on the Vibrant? I looked at the files that this pushes,and it has multiple references to CDMA,and from looking at vibrant roms,we don't have these files at all,all we have is ip-up vpn.

What exactly does this do and why would I need it? Not being rude, please tell a little more, I am courious
Sent from my SCH-I500 using XDA App

ryanf said:
What exactly does this do and why would I need it? Not being rude, please tell a little more, I am courious
Sent from my SCH-I500 using XDA App
Click to expand...
Click to collapse
its helpful when the dns servers in your area are laggy. you would notice this when you go to load a site,it will sit there for a few seconds then start loading pretty fast,this will switch over to using google's dns servers or opendns's server,both of which are faster than verizon's,which will reduce that time before the page starts loading. the dns server is what changes a site like www.google.com into their ip address,it needs to do this for any application to connect to the server. I want it on the vibrant because the tmobile dns server in my area goes down multiple times a week,it wont resolve any site names,but if I type in the ip address it starts loading instantly,same if tethered,it wont load anything,set windows to use google dns and it starts working perfectly.

Fantastic, I'm going to love this... flashing now!

msnuser111 said:
How would I do this on the Vibrant? I looked at the files that this pushes,and it has multiple references to CDMA,and from looking at vibrant roms,we don't have these files at all,all we have is ip-up vpn.
Click to expand...
Click to collapse
There are only two files that it's sending to the device, ip-up and ip-down. From what I read when trying to accomplish this initially, ip-up is run when your phone connects to the data network and ip-down runs when the connection is ended. I wanted to have the same DNS servers regardless, so I set it up to have it always set the DNS servers. Possibly a little more than is needed, and it may cause issues, but none that I've experienced yet.
If you (or anyone else) wants to accomplish this, look for the following lines in ip-up and change $DNS1 and $DNS2 to the servers you would like to use.
Code:
/system/bin/setprop "net.$NAME.dns1" "$DNS1"
/system/bin/setprop "net.$NAME.dns2" "$DNS2"
OpenDNS:
Code:
/system/bin/setprop "net.$NAME.dns1" "208.67.222.222"
/system/bin/setprop "net.$NAME.dns2" "$DNS1"
Google:
Code:
/system/bin/setprop "net.$NAME.dns1" "8.8.8.8"
/system/bin/setprop "net.$NAME.dns2" "$DNS1"
Level3:
Code:
/system/bin/setprop "net.$NAME.dns1" "4.2.2.1"
/system/bin/setprop "net.$NAME.dns2" "$DNS1"
Glad someone else likes this as well. I'm guessing with the latency associated with 2g/3g networks, that DNS lookup probably isn't the bottleneck. I wanted it more for reliability, url correction, and phishing/security protection than speed.

The speed since I changed to the google dns is amazing! Tether as well!
Simply Fascinating

imnuts said:
There are only two files that it's sending to the device, ip-up and ip-down. From what I read when trying to accomplish this initially, ip-up is run when your phone connects to the data network and ip-down runs when the connection is ended. I wanted to have the same DNS servers regardless, so I set it up to have it always set the DNS servers. Possibly a little more than is needed, and it may cause issues, but none that I've experienced yet.
If you (or anyone else) wants to accomplish this, look for the following lines in ip-up and change $DNS1 and $DNS2 to the servers you would like to use.
Code:
/system/bin/setprop "net.$NAME.dns1" "$DNS1"
/system/bin/setprop "net.$NAME.dns2" "$DNS2"
OpenDNS:
Code:
/system/bin/setprop "net.$NAME.dns1" "208.67.222.222"
/system/bin/setprop "net.$NAME.dns2" "208.67.220.220"
Google:
Code:
/system/bin/setprop "net.$NAME.dns1" "8.8.8.8"
/system/bin/setprop "net.$NAME.dns2" "8.8.4.4"
Glad someone else likes this as well. I'm guessing with the latency associated with 2g/3g networks, that DNS lookup probably isn't the bottleneck. I wanted it more for reliability, url correction, and phishing/security protection than speed.
Click to expand...
Click to collapse
yeah,for me dns definitely is the bottleneck,tmobiles dns server (or the tower by me) is broken and goes down about once a week,sometimes more than that. I can still connect to stuff by ip address,but dns resolution is useless,it times out after a few seconds.tethering is the same,but if I change my dns address in windows that makes it work,so I was looking for a way to do it in android too,I tried these files as is and they have no effect on the vibrant.

msnuser111 said:
yeah,for me dns definitely is the bottleneck,tmobiles dns server (or the tower by me) is broken and goes down about once a week,sometimes more than that. I can still connect to stuff by ip address,but dns resolution is useless,it times out after a few seconds.tethering is the same,but if I change my dns address in windows that makes it work,so I was looking for a way to do it in android too,I tried these files as is and they have no effect on the vibrant.
Click to expand...
Click to collapse
do we flash all three zips?

stevonyc35 said:
do we flash all three zips?
Click to expand...
Click to collapse
No, just the one that corresponds to which dns servers you want to use.

no just one of them.
Sent from my SCH-I500 using XDA App

Is OpenDNS actually working on VZW's 3G? I remember reading something somewhere that VZW was blocking OpenDNS for some reason.
Here it is:
http://www.dslreports.com/shownews/OpenDNS-Were-Being-Blocked-By-Verizon-Wireless-111530

geeknik said:
Is OpenDNS actually working on VZW's 3G? I remember reading something somewhere that VZW was blocking OpenDNS for some reason.
Here it is:
http://www.dslreports.com/shownews/OpenDNS-Were-Being-Blocked-By-Verizon-Wireless-111530
Click to expand...
Click to collapse
It seems to be working for me. When I put the OpenDNS settings on and went to internetbadguys.com, I got OpenDNS's phishing page. I also found a list of suspected/known phishing sites and went to a couple of those and also got OpenDNS's phishing site.

will this work on dj05 or does it matter?

ryanf said:
will this work on dj05 or does it matter?
Click to expand...
Click to collapse
It shouldn't matter works fine for me
Sent from my SCH-I500 using XDA App

I've updated the first post. There is now a screenshot of OpenDNS at work. I've also updated the packages to replace just /system/etc/ppp/ip-up rather than both /system/etc/ppp/ip-up and /system/etc/ppp/ip-down. I found one more public dns server from Level3 that I've also created a package for if people want it.

Should we flash back to default then reflash the mod? Why the change between doing both to now only doing the ip up?
Sent from my Fascinate via Tapatalk.

mastamoon said:
Should we flash back to default then reflash the mod? Why the change between doing both to now only doing the ip up?
Sent from my Fascinate via Tapatalk.
Click to expand...
Click to collapse
You shouldn't have to, but you could. I decided to change it since it's only really needed for ip-up. I don't know fully how Android handles switching between 3G and wifi, but that is the only time I could see an issue arising, mainly if connecting to a corporate network or potentially a free wifi hotspot (hotel, cafe, or similar). Think of places that may have restrictions in place on browsing or a TOS agreement before use, and that would be a place were a potential issue could arise. If you have an issue, then I would try going back to the default and trying one of the new packages, otherwise, I'd just leave it as is.

Thanks for this! The Google package does work over 3G, but not over Wi-Fi.
You can test any DNS resolver by going to http://myresolver.info. There, you can see your resolver's IP address (and click the ? to find out who the IP belongs to).
Over 3G, the resolver is Google. Over Wi-Fi, though, it's my ISP. And it's definitely a phone thing, because over the same Wi-Fi connection my PC using Google's DNS shows Google's resolver.

Falcyn said:
Over 3G, the resolver is Google. Over Wi-Fi, though, it's my ISP. And it's definitely a phone thing, because over the same Wi-Fi connection my PC using Google's DNS shows Google's resolver.
Click to expand...
Click to collapse
You should be able to set what DNS servers you want somewhere for WiFi as well, but I can't find how right now. If I do figure it out, I'll be sure to post back as well as update the first post on how to do so.

Related

[Q] Proxy Servers OMG !!!

OK people... some of you people much cleverer than me PLEASE tell me there's a way around this.
My internet at home runs through a proxy server, so I have the IP address and port.
This internet connection is broadcast using wifi around my house. My PCs can connect to this just fine, using the IP and port in my Windows networking configuration.
My Vibrant will NOT work. Here are the scenarios I am dealing with :
If I connect to the wireless I can see my home network, and browse Windows network shares on my phone just fine.
If I go into the wireless | advanced | proxy settings (I am running a Bionix 2.2 ROM - Onyx 4.2 I think) and set my proxy IP and port then I can browse the internet in the default browser but NO other apps will make an internet connection. Odd since the proxy connection seems to me to be attached to the wireless connection, not the browser specifically.
So I installed and configured transproxy 3.8 beta (which doesn't seem to be vibrant specific, but installs and configures OK), and entered the same details and enabled the proxy connection, and NOTHING, including the default browser, will make an internet connection.
In all cases my connection to the wireless network itself is perfectly fine.
I've spent a couple of days trying to find a sensible solution to this, but have found nothing helpful.
Anyone out there had any similar experiences, or better yet found some kind of awesome solution ?
Very much appreciate any answers.
Ok before I give up completely, no one has gotten a Vibrant properly connected through a proxy server? It would at least be something to know it is known to be impossible, then I could stop obsessing and concentrate on being annoyed?
Anyone?
Sent from my SGH-T959 using XDA App
are you sure you use a proxy server? I've never seen a home network that uses one. A NAT firewall / router isn't a proxy server.
If you are running a proxy server, what do your proxy server logs say?
Can you access services on other than port 80? (email for example)
Proxy on a home network isn't out of the norm. I know guys who run them to block certain sites from their kids. Yes I know there are other options out there, they just decided to use a proxy server.
Sent from my SGH-T959 using XDA App
I know I am reviving a old thread, but I am also looking for a solution to this. I have tried using AutoProxy with no luck. It configures OK, but when it is on it is as if I have no network connection at all.
I don't need authentication, it is a HTTP 1.1 compliant proxy and all I need is host and port. In my case I set up a RabbIT4 proxy on a VPS linux host in a data center with multiple redundant tier one network providers. My proxy minifys HTML, JavaScript, and CSS - then gzips it. It also replaces ADs with a 1x1 transparent gif and re-samples all images to a quality 20 jpeg.
I used to run an ISP and we did this as an optional service for our dial-up customers. It REALLY improves slow connections.
So anyhow I would appreciate it if you let me know of any solutions you found this might work. Anyone with ideas please chime in.
Try flashing a different rom and see if you have the same problem....... It may be as simple as a conflict with that rom.
I have never heard of a case where this kind of problem exists. It sounds like a rom to wireless router conflict, but assuming it is exactly what you say, then if the setting are set for example, to have controls on access then, it would stand to reason remove them from the server side it should resolve the problem. But I would look at trying a different rom 1st,
The proxy works great on my desktop, and the phone's ROM has the option to set a proxy for the Wi-Fi connection (which works). The issue is I don't need the proxy for my Wi-Fi, that is fast - I need it when I am on the edge network, which is often.
I can't change ROM, Trigger 3.3 is too perfect for me to budge. I have both busybox and iptables, so I don't know what is up.
EDIT, I have tried 3 more apps with the same results, either they don't actually set the proxy and I have net, or they do set it and I lose connection. To be fair I have only been able to test when on Wi-Fi and I could set that from the ROM options, I need to try testing when I am on cellular - I just don't think it is going to make a difference.
Friggin proxies!
be1ieve1111 said:
Friggin proxies!
Click to expand...
Click to collapse
Proxies can be your friend, my friend! Imagine getting about 30kps on edge and your trying to look something up real quick, but the pages keep timing out. Meanwhile right next to you with the same basic connection is me, happily surfing away.
Why, because instead of sending my request to the website it went to my proxy, sitting in a class 3 data center in Los Angeles. My proxy made the request for me with its OC3 Internet connection, then took all the white space out of all the HTML, JavaScript, and CSS - then it gzipped it. It also converted all images to highly compressed low quality jpegs. Finally, it sent me back the reduced size data (reduced by about 78% in fact) and all the processing happened in the blink of an eye.
With a fast Internet connection the proxy just gives you lower quality pages with twice the page load time, but on slow connections it can be up to 5 times faster. Hmm. . . 5 times faster, where have I hear that before?? Oh yea, AOL, Earthlink, and others were promising that with their "Accelerated dial-up". Guess what?! This is exactly what they where doing. It is an old Dial-Up ISP trick. That is why I know how to do it. Now if only my phone would co-operate. Friggin proxies!
bump
did you ever figure this out? I think I may have found how to do it without any applications but you'll need to be rooted.
jamesd86 said:
bump
did you ever figure this out? I think I may have found how to do it without any applications but you'll need to be rooted.
Click to expand...
Click to collapse
Do tell [10 char]
Build prop edit but I dont have a server to test with...any chance you could set up a generic account on your server to test with? Pm the details instead of putting in open if you can.
Basically adding the entry
Code:
net.gprs.http-proxy=yourproxy
To the build prop. Im not certain if there are any other lines I need to add but would like to try.
Sent from my SGH-T959 using XDA Premium App
jamesd86 said:
Build prop edit but I dont have a server to test with...any chance you could set up a generic account on your server to test with? Pm the details instead of putting in open if you can.
Basically adding the entry
Code:
net.gprs.http-proxy=yourproxy
To the build prop. Im not certain if there are any other lines I need to add but would like to try.
Sent from my SGH-T959 using XDA Premium App
Click to expand...
Click to collapse
I lost the VPS server in the data center I was using. For best results you want the proxy to have a much better Internet connection than what is being proxied. For example - my connection in the data center was 100Mbs both up and down. When I proxied something that had the basic bandwidth of a dial-up connection in the neighborhood of 32-56kbps the speed boost was about 5 times faster. Doing the same thing for my 5Mbs cable connection was actually about twice as slow, meaning my page load times in seconds showed doubled my average total time to completely load a page and speedtest.net showed about half the bandwidth.
So this trick here is the proxy really needs a VERY, VERY good and fast Internet connection - like you get from a good hosting provider. However, if you just want to test connectivity you can try setting up your own proxy.
Here is what I was using http://khelekore.org/rabbit/ - This runs via Java, so it should work wherever you have Java available. I have successfully run in on FreeBSD, Linux, Solaris Unix, and Windows.
Will look into it but my home connection often sucks...i've also had no luck running and accessing a media server outside my home network as I think comcast blocjs that/tgis kind of tging being run on consumer plans
Sent from my SGH-T959 using XDA Premium App
jamesd86 said:
Will look into it but my home connection often sucks...i've also had no luck running and accessing a media server outside my home network as I think comcast blocjs that/tgis kind of tging being run on consumer plans
Sent from my SGH-T959 using XDA Premium App
Click to expand...
Click to collapse
Well this is a HTTP1.1 proxy, so you can pick any open port you want other than port 80 and it is HTTP traffic. So regardless of if they are using port blocking or protocol blocking, there really is not much way to keep you from using/running a proxy.
Any recommended other ports(like commonly open ones)
Sent from my SGH-T959 using XDA Premium App
Yeah, i'm deff going to need a lil assistance on setting this up...the faq on the site is not that great.
T313C0mun1s7 said:
Well this is a HTTP1.1 proxy, so you can pick any open port you want other than port 80 and it is HTTP traffic. So regardless of if they are using port blocking or protocol blocking, there really is not much way to keep you from using/running a proxy.
Click to expand...
Click to collapse
Certain port numbers are pre-assigned to particular applications by an international body called IANA, the Internet Assigned Numbers Authority.
8080 is assigned for HTTP-Alt, so it is the most commonly used and rarely blocked
1080 is assigned to socks (as in socks proxy) so the same applies
Just avoid a port number below 1024 so you don't conflict with a commonly assigned port and you should be fine.
I have an awesome idea...because I can't figure out how to set this ish up..set it up on your connection..i know it will be slow but just for proof of concept, send the details for access and i'll test it out..or you can edit your build.prop and test it. yep..unless you know an easier to setup one.
jamesd86 said:
I have an awesome idea...because I can't figure out how to set this ish up..set it up on your connection..i know it will be slow but just for proof of concept, send the details for access and i'll test it out..or you can edit your build.prop and test it. yep..unless you know an easier to setup one.
Click to expand...
Click to collapse
Or try this: http://aliveproxy.com/socks5-list/ or http://x-proxy.info/socks.php
These are pure HTTP proxys (like RabbIT4) and might work better: http://www.x-proxy.info/highanon.php
I tgink its a no go for now...nothing I put in the line will stay on reboot.
Sent from my SGH-T959 using XDA Premium App

[Q] Accessing local intranet

Running Vanilla AOSP Gingerbread 2.3.3, finally managed to get this thing to talk to the local network here at work (it's PEAP authenticated, TnT Lite won't see it).
Now I'm running into the issue of not being able to access local intranet sites with my browser. Instead if just takes me to google search.
Running Dolphin HD right now. Any ideas? I'd really like to use this tablet at work to access the local intranet. If it won't do it, that's going to be a problem.
I would download the program ipconfig from the market and make sure you are getting the correct ip information on your network. Getting the incorrect DNS server can cause this issue. You can also downlond ping from the market and try to ping the internal web address. Just a troubleshooting step that I would starti with.
I was able to ping it using the Terminal Emulator, so that is working at least.
Well...I am getting my Gtab deliverred via fedex tomorrow and will be able to test my local intranet sites with the same setup and hopefully be a little more helpful. I will keep you posted with what I find,
Ok, I was wrong, I can't ping. I was pinging a server that is exposed on the external internet (Oops). The internal-only servers are unreachable. The DNS servers, though, are correct.
This is interesting.
From home I can access my work email through Exchange for Android, no problems. However now that I'm online at work and on the internal network, it doesn't work. I suspect it's because it's on the internal intranet now instead of trying to route to it through the internet.
I suspect that, while Vanilla 2.3.3 AOSP supports PEAP, it doesn't really support PEAP.
A large number of corporate networks use a proxy server; check into that.
pearlyking said:
A large number of corporate networks use a proxy server; check into that.
Click to expand...
Click to collapse
This one doesn't, as far as I can tell.
My iPhone connects to it fine, other people are able to access it with iPads and Android phones.
I'd ask IT for help, but we're technically not supposed to be using it.
pearlyking said:
A large number of corporate networks use a proxy server; check into that.
Click to expand...
Click to collapse
+1
Had the same problem and it turned out to be the Proxy settings.
Got it working.
Now running VEGAn 5.11 and it connects just fine. Not having the issues with the email anymore, either. However some of the intranet sites only pull up if I know the IP directly, apparently the browser has a hard time with port redirection on the URL (it doesn't care for 'evolutionsc:8080' very much at all).
Now I just need to find a browser that can handle JIRA without formatting issues.
ubergeek4l said:
+1
Had the same problem and it turned out to be the Proxy settings.
Click to expand...
Click to collapse
I seem to be having the same problem but I honestly don't know how to update the proxy settings for my work network (which does use a proxy server). I'm using Vegan 511, anyone know how to specify a proxy server for the network connection to use? I can't find anything in the wireless&network settings area.

[Q]Wifi problem with MiniCM7 Pro V6

Hi this a excelent ROM!! i love it! but the Wifi disconnects every 5 minutes or less...and reconnect, How i can fix this?
same here,
using slade's new ROM, "GinTonic.SE | v1.3" ....
any ideas ?
I don't know why, but using ondemand or performance profile I don't have that issue. Test it and tell me
kem06 said:
I don't know why, but using ondemand or performance profile I don't have that issue. Test it and tell me
Click to expand...
Click to collapse
Thanks for your reply,
Just tried changing the profile ,,, rebooted ,,, but still the same problem ,,,
it seems that i'm missing something !!!
aymanxp said:
Thanks for your reply,
Just tried changing the profile ,,, rebooted ,,, but still the same problem ,,,
it seems that i'm missing something !!!
Click to expand...
Click to collapse
Mmm.. Do you have bluetooth or EDGE/3G activated ? It might make some problems.
Another thing, which policy suspension do you have for WiFi ?
after trying everything, i used a static IP to connect and finally it seems to work.
thanks for your interest.
i haven't bluetooth or EDGE/3G active, the policy suspension of is never! i format sd card and reinstall rom but the problem continues....
aymanxp said:
same here,
using slade's new ROM, "GinTonic.SE | v1.3" ....
any ideas ?
Click to expand...
Click to collapse
Same for me
The same problem in almost all these ROMs.
I'm using the MiniCMPro V7 and I'm trying to debug it by reading the logcat and editing some config files, will post/edit any advance later.
It worked by using aymanxp's method as a workaround.
By reading the logcat I found that something is forcing the dhcp server on the phone to lease a new IP after some time [receives a SIGTERM] although it obtained an infinite lease.
In other topic, why android does not have a separated config (Static/dynamic, IP, DNS, etc...) for each wireless connection?
B.R.
Update:
Well, my actual conclusion is that the WifiStateTracker Daemon is forcing DHCP to request ip renewal every 5 minutes or so, and if there are a valid or infinite lease in place, dhcp returns an error after waiting, so WifiStateTracker gets the wifi down and restarts DHCP, so lame.
Tried to find any config file but found none, only dhcpcd and wpa_supplicant, but nothing about the daemon.
So to have the wifi working properly, from now, the right way is to don't use dhcp?
Try to change wifi sleep policy to "Never" instead of "when screen turns off"
XxLordxX said:
Try to change wifi sleep policy to "Never" instead of "when screen turns off"
Click to expand...
Click to collapse
Nope, won't work either.
@Pierrot12:
As a temporal workaround, yes
We can use static IP, but that would work just if using only one Wi-Fi network (as in the house OR the work), but for people like me, using more than one network, it's very annoying to edit the parameters every time the AP changes.
I'm tempted to write an app to replace the android's very simple AP managing system
I flash to Sonybread 7 SP3 and the problem continues...
I'm using v6 and I have not had any problems with WiFi. In fact, I think it's the most stable ROM. I have downloaded files flawlessly, which means that WiFi is not disconnecting right? Anyway, I'll put it to test..
RozenTensai said:
I'm tempted to write an app to replace the android's very simple AP managing system
Click to expand...
Click to collapse
Great! good luck
Actually found the problem, but don't know if it would work for anyone.
After some research and hits and misses, found that the problem with the DHCP client running in the MiniCM7-based ROMs does have a incompatibility with "Reserved IP" or "Infinite IP Lease" for a certain MAC, in other words you should use:
A) IP Assigned by the router (not reserved), or
B) Static IP configured on the device.
If that's not your case, then just wait for a fix from the devs or my app (still brainstorming ) or any workaround posted in this thread
@Pierrot12: Thank You!
@eysonfm Yeah, I was on that ROM and it's really stable. But I want MiniCM7 Pro
I have also problems wifi DHCP issues with MiniCM7 Pro V7+
I don't understand, because I got it from one moment to the other
Only
B) Static IP configured on the device.
is working for me
in terminal with netcfg I could see that I got an ip adress over dhcp. In Wifi manager stands getting IP address
I won't do an factory reset, maybe I can help somebody to find the bug by testing somethings
i'm having these issues with minicm7 pro v19 as well...
RozenTensai said:
Actually found the problem, but don't know if it would work for anyone.
After some research and hits and misses, found that the problem with the DHCP client running in the MiniCM7-based ROMs does have a incompatibility with "Reserved IP" or "Infinite IP Lease" for a certain MAC, in other words you should use:
A) IP Assigned by the router (not reserved), or
B) Static IP configured on the device.
If that's not your case, then just wait for a fix from the devs or my app (still brainstorming ) or any workaround posted in this thread
@Pierrot12: Thank You!
@eysonfm Yeah, I was on that ROM and it's really stable. But I want MiniCM7 Pro
Click to expand...
Click to collapse
Also, i discovered that i had the "backup" and "restore..." options enabled under Settings -> privacy enabled. They were causing my phone to receive bad configurations saved in my google account in googles's servers...
so i disabled these otions, re-flashed minicm7pro, set up my router to "not reserve" the address for the minipro's MAC address and everything is working as it should since then!

SSH server

I did some searching, and was unable to find a working ssh SERVER for the rezound. Has anyone done this before? I am interested in setting up a proxy tunnel through my phone. I tried SSHDroid but it doesn't seem to be working for me.
Thanks
ES file explorer has this built in. I haven't really tried it, but it may be worth checking into.
I have ES explorer, but I don't see an ssh server anywhere
trud9340 said:
I have ES explorer, but I don't see an ssh server anywhere
Click to expand...
Click to collapse
That's because I was having a momentary lapse of reason. I was thinking FTP and steered you wrong. Sorry man.
Look for the app that installs linux on your phone then install an ssh server from within the linux chroot. I forget what the app name is because I'm in the middle of flashing roms
What exactly does the Linux Installer do? Create a virtual linux instance, running under the current ROM?
it sets up a chroot environment and installs a full blown Linux OS in your phone (I think the only two choices are Debian and Ubuntu ATM) minus the X Server so it's only the CLI. It may be too convoluted for it to actually work but it's worth a try.
What your looking for is sshdroid its on the play store. I also believe you need to be rooted for it to function
seeker160 said:
What your looking for is sshdroid its on the play store. I also believe you need to be rooted for it to function
Click to expand...
Click to collapse
The OP tried that....
trud9340 said:
I tried SSHDroid but it doesn't seem to be working for me.
Click to expand...
Click to collapse
I gave it a shot and it didn't work for me either. I'm rooted. It gave some quick error that looked like a invalid options screen, but it went by very fast.
Sshdroid seems to start successfully, but when I attempt to ping or ssh to the provided ip address, it doesn't respond.
Sent from my ADR6425LVW using XDA
With your phone browser, try: http://www.whatismyip.com/ and see if that matches the same IP you think it is.
I got nothing but an error when I tried it. Came to a screen that said revert, .... and adfree. Adfree took you to the market pro version to buy. I think the middle option was cancel. It had an options error displayed quickly on the screen but it didn't stay long.
Were you on wifi or 4g? I only had it work on wifi. The 4g ip4 address isn't publicly routable. I heard the ipv6 address is but i couldn't get that one working either.(Might of been the network I was trying from though or the program I was using for ssh)
Forgot about that. I remember trying to do this with a 4G Hotspot. Even though you have an outside IP, traffic is not allowed back in. For a while when I got it, you couldn't even do a VPN connection with it... kind of useless for a business tool, but they ended up fixing that.
I tried both on WiFi and 4G. They both give me different ips, and for both, I tried the suggested IP, and also the IP thats provided by whatismyip.com.
Seems I'm out of luck. I would have thought that with root, something like this would have been done by some nerd (like me) by now.
trud9340 said:
I would have thought that with root, something like this would have been done by some nerd (like me) by now.
Click to expand...
Click to collapse
it is not the phone, it is the network. Wifi should work. VNC server works.
Via Rezound using XDA Premium
As someone else mentioned you can't connect to your phone while you're on Verizon's network, because IIRC they're actually "private" IPs but on a huge (NAT'd) network. So you can only really make connections to your Rezound via wifi or somehow setup a reverse connection where the phone initiates the connect. If I understand everything correctly, the problem is you're essentially behind Verizon's firewall which only allows incoming connections from certain IPs or one that were originating from the phone itself.
QuickSSHd works fine for me over WiFi.
Its widget shows current IP, which is convenient.
I'm rooted, of course.
when running on WiFi, you need to poke a hole in your routers firewall to let the ssh traffic into the ip used by your phone.
otherwise, when on the same network as the phone, use the internal ip address of the phone... go to WiFiSettings-> Advanced-> and read the line under 'IP address' should say like 192.168.x.x or 10.x.x.x or 172.
trud9340 said:
I tried both on WiFi and 4G. They both give me different ips, and for both, I tried the suggested IP, and also the IP thats provided by whatismyip.com.
Seems I'm out of luck. I would have thought that with root, something like this would have been done by some nerd (like me) by now.
Click to expand...
Click to collapse
These "apps" are just wrappers for dropbear SSH Server, which is free. You might be able to build it yourself, but, frankly, dropbear sucks.
Try the Linux CHROOT environment. You'll get OpenSSH which is better than the dropbear SSH server that these "apps" use.
Not only that, but the OpenSSH route allows you to use SSHFS, which will allow you to mount your rezound over wifi as a hard drive wirelessly.
So, man up, and choose Linux ;-)
I'll dig up some thinks for you in a moment.
Tried lildebi and the ubuntu methods and neither works as directed. Going to take a closer look later.
Lildebi fails with execution when it tries to create the file system and the ubuntu process uses an image that is too large for vfat. Going to try to cook an ubuntu filesystem that is 1.5gb and see if I can move on from there.

[Q] Hardcoded 8.8.8.8 and 8.8.4.4?

Looking at my router logs, both my Samsung Note 2 and Note Pro 12.2 LTE (stock, not rooted) are making DNS calls to Google's DNS servers at 8.8.8.8 and 8.8.4.4 several times a minute. Neither of those servers are in my DHCP configuration, so I'm guessing something has these hard coded. Local port numbers change with each call. Our Xoom and HTC Photon 4G are not doing this, despite running many of the same applications.
I used a no-root firewall on the Note Pro which uses VPN to track activity, but it doesn't show this, and even application network traffic doesn't seem to correlate to when the Google DNS calls are made, so I'm guessing it's a system process of some kind?
Has anyone else observed this? It's more just annoying, than anything else.
Thanks for any insights!
eric
ericbergan said:
Looking at my router logs, both my Samsung Note 2 and Note Pro 12.2 LTE (stock, not rooted) are making DNS calls to Google's DNS servers at 8.8.8.8 and 8.8.4.4 several times a minute. Neither of those servers are in my DHCP configuration, so I'm guessing something has these hard coded. Local port numbers change with each call. Our Xoom and HTC Photon 4G are not doing this, despite running many of the same applications.
I used a no-root firewall on the Note Pro which uses VPN to track activity, but it doesn't show this, and even application network traffic doesn't seem to correlate to when the Google DNS calls are made, so I'm guessing it's a system process of some kind?
Has anyone else observed this? It's more just annoying, than anything else.
Thanks for any insights!
eric
Click to expand...
Click to collapse
Hi Eric, not too sure if you got your answer already. i am on RR kitkat ROM (SGS2), i had a related issue in that it has hard coded 8.8.8.8 as DNS and as a result, i can not use most open/free wifi, the authentication/term and condition page will not come up...
with some research, i found that in /system/etc/dhcpcd/dhcpcd-hooks/, there is this file called 20-dns.conf, in there, you may find there are 2 line similar to this
setprop dhcp.eth0.dns1 8.8.8.8
setprop dhcp.eth0.dns2 8.8.8.4
if you delete/comment this out, and reboot the device, it should work hopefully. that is how i fixed mine anyway. let me know if you still stuck.
cheers.
d8d8up said:
Hi Eric, not too sure if you got your answer already. i am on RR kitkat ROM (SGS2), i had a related issue in that it has hard coded 8.8.8.8 as DNS and as a result, i can not use most open/free wifi, the authentication/term and condition page will not come up...
with some research, i found that in /system/etc/dhcpcd/dhcpcd-hooks/, there is this file called 20-dns.conf, in there, you may find there are 2 line similar to this
setprop dhcp.eth0.dns1 8.8.8.8
setprop dhcp.eth0.dns2 8.8.8.4
if you delete/comment this out, and reboot the device, it should work hopefully. that is how i fixed mine anyway. let me know if you still stuck.
cheers.
Click to expand...
Click to collapse
just to show the whole picture so someone else can save a bit of running around, here is a file very similar to the orginal 20-dns.conf note line 20 and 20, if you # it out, it should use the default gateway, or change it so it use one you prefer: ( this is copied from the github but i can not copy the like over due to new user restriction.)
# Set net.<iface>.dnsN properties that contain the
# DNS server addresses given by the DHCP server.
set_dns_props()
{
case "${new_domain_name_servers}" in
"") return 0;;
esac
count=1
for i in 1 2 3 4; do
setprop dhcp.${interface}.dns${i} ""
done
count=1
for dnsaddr in ${new_domain_name_servers}; do
setprop dhcp.${interface}.dns${count} ${dnsaddr}
count=$(($count + 1))
done
setprop dhcp.eth0.dns1 8.8.8.8
setprop dhcp.eth0.dns2 8.8.8.4
}
unset_dns_props()
{
for i in 1 2 3 4; do
setprop dhcp.${interface}.dns${i} ""
done
}
case "${reason}" in
BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT) set_dns_props;;
EXPIRE|FAIL|IPV4LL|RELEASE|STOP) unset_dns_props;;
esac
d8d8up said:
Hi Eric, not too sure if you got your answer already. i am on RR kitkat ROM (SGS2), i had a related issue in that it has hard coded 8.8.8.8 as DNS and as a result, i can not use most open/free wifi, the authentication/term and condition page will not come up...
with some research, i found that in /system/etc/dhcpcd/dhcpcd-hooks/, there is this file called 20-dns.conf, in there, you may find there are 2 line similar to this
setprop dhcp.eth0.dns1 8.8.8.8
setprop dhcp.eth0.dns2 8.8.8.4
if you delete/comment this out, and reboot the device, it should work hopefully. that is how i fixed mine anyway. let me know if you still stuck.
cheers.
Click to expand...
Click to collapse
Thanks for the pointer, but unfortunately that's not my issue. I checked the file, and there are no hard coded addresses.
I don't think it is at the system level - when I look at the network configuration, it is showing the correct DNS addresses to use. So I think it is one or more apps that have it hard coded. Since I'm only seeing it on my Samsung devices, I'm guessing it's one of theirs...
oh... weird indeed. when i was trying to fix mine at the very beginning, i went to the wifi set up and found it was using DHCP, i therefore assumed it had no custom DNS but the router address as the DNS, which would be good and normal for me. but when i run getprop net.dns1 via the terminal of the phone, it gave me the 8.8.8.8 address.which led to the file mentioned above...

Categories

Resources