[Q] VPN - Connecting to servers by name - XPERIA X10 Q&A, Help & Troubleshooting

I have installed OpenVPN as per instructions I found on these forums and am using VPNC to connect, which I can do successfully. VPNC reports that I don't have Advanced Routing enabled, which is likely true, but I am not worried about that at the moment. I can ping and RDP to servers by IP but not by name. A friend of mine has a different phone and the same issue. Our VPN is a Cisco setup.
I am using a Sony Ericsson Xperia X10 with Gingerbread and the phone is rooted.
The question is how can I configure things so that I can reference things on the network by name and not have to use only IP addresses?
Thank you.

Ok, FQDN and IP work. Just not going with just the name of the server alone.

Added --domain <domain name> to the option flags. Didn't change things.

thanks for info

Related

[Q] OpenVPN Routing Problem

Hello
I have installed OpenVPN and its logging on to the vpn and is visible on the network list BUT I dont get any connection to another client in the vpn. I tried to ping another client from my SGS2 and from a client to the SGS2 but its always a timeout. I tried it with the phone and serveral wireless networks.
So I think it could be a routing issue but I dont have a clue how to see if thats really the problem and if its true how to fix it. I read some other posts and maybe it could also be a tun.ko problem but the SGS2 with 2.3.3 should already have installed it on the software, so I'm not sure how to see if thats ok. The Busybox is installed at /system/xbin. So does anybody have an idea how to find out whats actually the problem and how to fix this?
Thanks for your help!
Manolo
It's not clear to me if you tried connecting through your mobile data plan. Did you also tried that?
What is the IP that you are getting when your are connected to the VPN?
If it something like 192.168.1.* Then that's could be your problem. If the WIFI your are on, also gives you an ip adress as 192.168.1.* then that causes the problem. Either change the ip range of your network to 192.168.10* (just an example) or the ip range of you VPN.
ps can you post your VPN server settings?
Do you mean my own ip or the ip that i have in the vpn?
my own edge telekom ip is 10.219.127.35 and my internal vpn ip is 10.10.0.22
I can't post my vpn server settings because i got some key files for the vpn.
If you have installed installed this .zip
http://forum.xda-developers.com/showthread.php?p=16182571#post16182571
Then all you need to do is download openvpn settings from the market. And run in.
If you already did these steps, then the problem lies probably with your server and I need the server config. I don't need the keys of course
Thx!
How does this update work? I see no instructions on the post. Is it just to copy on the root folder?
Ah yes... I found how it goes and its working perfectly!
Thx a lot!

[Q] Wireless tether for root users - DNS redirect

I'm running a Piratebox web server on my phone - Does anyone know if there's a way to adjust DNS and re-direct everyone to my phones web server when they are tethering from my phone?
+1 to this question.
I am currently trying to find a way to get some android devices, which are working as AdHoc clients), and I want an app running on them to connect to a "server" address instead of using a specific, fixed IP address. I meant to do this programatically, by creating a socket to an InetAddress resolution of the "server" address. I assume InetAddress will use the DNS defined on the wireless interface to make this translation, but its Java, and that assumption really depends on the low level impl. of InetAddress.
So yeah, DNS redirect from the DNS server running on the AdHoc host, which by association also runs Wireless Tether for root users. How can we do it?
I have tried some redirections from the hosts file (zone file), location in "system/etc/hosts". My device, like many others, comes preloaded with a bunch of IP-hostname redirections, but these only seem to work locally, e.g.:
gugle.com redirects to 127.0.0.1 (in the hosts: "gugle.com 127.0.0.1")
If I input this address on the AdHoc host, gugle.com will redirect to my http port 80 landing (I have a web server running on the device to test this).
If I input this address on an AdHoc client, it doesnt return anything. I'm guessing the DNS server running on the host does not use the zone file from the OS.
So the question remains - where can we define a redirection from the DNS server that runs on the Wireless Tethering for root users device.

VPN Access for Atrix? Client for IpSec?

This could have been already covered elsewhere so if so, I apologize. VPN is a tough thing to search for being so short.
Anyways, trying to setup VPN access to my work network via my Atrix (HP Touchpad running AOKP too). I am new to the whole VPN thing, but as far as I can tell we are using IPSec, I access via cisco vpn client from my work laptop.
Running Nottachtrix 1.3.1, from the native VPN setting under wireless I cannot generate a connection. On my touchpad booting in webOS, I am able (I think) to connect to the VPN and enter all the parameters I have:
Address ##.###.###.###
group access name
group access code
domain
my personal login username and password
It says I am connected on the touchpad in webOS, but there is no field for group access name or access code in the android VPN settings. Is there a 3rd party client software I should use? Is this unsupported at this time?
This should be pretty straight forward if simple ipsec PSK (preshared key), you should just need the server name and preshared key (vpn password, not user password) to connect. when connecting, it should ask for your user credentials, which should map you to access groups (either locally on vpn device or LDAP mapping through RADIUS). Unfortunately there isn't nearly enough info to properly diagnose.
Sent from my MB860 using xda premium
Although, if you are required to enter group info, you will likely need another client such as cisco.
Sent from my MB860 using xda premium

Android OS + BIND9 dns on local server

Hi All,
I don't know if it is the proper thread for this, but I've installed a local webserver (CentOS) with BIND9 dns (named) and what is annoying me that my android devices don't resolve the server address. They can only connect through the IP of the server.
Windows pc and iOS devices do resolve the server name.
Devices connect to the server through a wireless AP that is also a DHCP. DNS address is distributed through the AP's DHCP.
Any ideas? Or any workaround for this? The main goal is to reach the local server by its name, so if you guys know an app other than a DNS server I would be grateful for some help.
Thanks a lot
Greg
did you use static ip address and custom dns in advance settings on your android handset? if yes your android should lookup for dns server. anyway maybe, i could be wrong, port 53 is being used for other apps or closed in iptables on your android hanset.
cheers hope it could help
vertrag said:
did you use static ip address and custom dns in advance settings on your android handset? if yes your android should lookup for dns server. anyway maybe, i could be wrong, port 53 is being used for other apps or closed in iptables on your android hanset.
cheers hope it could help
Click to expand...
Click to collapse
Thanks for the quick reply.
The ROM I use is one of Ficeto's base ROM. I9100XXLPQ with supercore kernel. The thing is, in advanced wifi configurations I don't have the possibility to set DNS. DNS information is not even displayed. I only see the IP and I don't have the possiblity to edit it neither. It is something that should be available in all roms or is it just my current rom?
I have no idea if there is something that uses the port 53, but when I connect to my DSL router I can browse the internet. So I assume the DNS in this case should work correctly.
Thanks a lot
Greg
Someone, move this question to Q&A thread..
yes if ur able to browse di internet normally then the dns query look up is fine.. what i nean by port 53 is the port that dns server and client use to communicate each other. take a look of my screenshot im able to change the dns..
Sorry for having posted in the wrong thread.
Well I don't have the same settings available in my current ROM. But I installed a third party app from Play to set the DNS and even if it is displayed correctly in the 3rd party app settings, it doesn't resolve the server's address.
I guess there is nothing else left but to use a packet sniffer (wireshark) to see whats going on between the android's browser and the server.
Will get back with the results.
Thanks
Greg
Greg767 said:
Sorry for having posted in the wrong thread.
Well I don't have the same settings available in my current ROM. But I installed a third party app from Play to set the DNS and even if it is displayed correctly in the 3rd party app settings, it doesn't resolve the server's address.
I guess there is nothing else left but to use a packet sniffer (wireshark) to see whats going on between the android's browser and the server.
Will get back with the results.
Thanks
Greg
Click to expand...
Click to collapse
Did you check the value of property net.dns1? If not just enter
Code:
getprop | grep net.dns
in an ADB shell. The value of the property net.dns1 should be set to the IP address of your DNS server.
If this is not the case just enter
Code:
setprop net.dns1 <your DNS server IP address>
for testing and try to ping one of your internal servers by name. It should work now.
Hi all,
Problem is solved. On a local network you must define the gateway in the DHCP so that the android device sends both IPv6 and IPv4 queries to the DNS server. If it is not defined it sends only IPv6 queries and doesn't fall back to IPv4 when that fails.
Thanks for your help
Greg

[Q] Help with VPN with Mac 10.8 OS X Server

I have a Mac mini running OS X 10.8.2 with the OS X Server 2.2.1 from the app store, and I have set up the VPN using L2TP in the Server.app interface. I have tested this VPN connection using a Macbook, which works, but I can't figure out how to get Android's built-in VPN to work.
Current set-up:
I have opened ports 500, 1701, 1723, and 4500 on my router.
I am using a dynamic DNS from no-ip.com, we'll say hostname.no-ip.org
I have set a "Shared Secret", we'll say 1234567890
I have set up an account for my android phone on the server, let's say the user name is "nexus" and the password is "google"
On the Macbook, I simply use the DNS, the secret, and credentials that I have set up on the server, and it connects.
On my Android device (Nexus 4 4.2.2) I am using the following settings:
Name: Mac Server
Type: L2TP/IPSec PSK
Server address: hostname.no-ip.org
LT2TP secret: (not used)
IPSec identifier: (not used)
IPSec pre-shared key: 1234567890
When I try to connect using these settings, it prompts for the username and password, so I enter "nexus" and "google". It sits there saying "Connecting..." for maybe 30 seconds and then it just goes back to "Disconnected" with no error or other message. I have also tried putting the "Shared Secret" in the L2TP secret field, but with the same result.
Is the built-in Android VPN simply incompatible with OS X Server's VPN? Or have I misconfigured something?
Note: I would strongly prefer to continue using L2TP, and not the less-secure PPTP VPN
Ok, so I have managed to connect to the VPN when doing it INSIDE the network to the IP of the server (lets say 192.168.1.2). If I change the address to hostname.no-ip.org it won't connect, although it is working for everything else (such as web, etc).
I have tried on my iPad and I can connect just fine either from inside the network or over 3G connection.
On the Nexus I have tried to change the hostname.no-ip.org to my public IP address but it will not work either.
The funny thing is that when I try to make it work outside the server, the mac server log will show nothing, while every other test I run it logs it perfectly.
I think something is very broken in the way VPN is implemented in Android. Am I the only one finding himself in this situation?
....your missing a very large part.....
FORWARD YOUR PORTS ON YOUR ROUTER
Also in your router look for anything relating to VPN.
Also some routers will not alow you to conect from the external ip internally. I hate routers like that..
and why run osx server on a macbook?
if you want a secure home vpn, go find a old windows computer any p4 will do and install linux and install vpn services on it.

Categories

Resources