[Q] Way to run VPN server and client on one host. - Android Q&A, Help & Troubleshooting

Hello guys,
I'm finding a way to run VPN server and client on one host. Is there any method ?
(sorry but I'm not goot at English......)
I want to control packets on android, for streaming data caching. So I need to block outgoing HTTP request(case of cache hit).
In case of using two hosts, I works perfectly. And in one host, I have thought it will work like following method:
Mark per username who run processes using iptables, and make routing tables which can work through VPN or default gateway.
But I cannot connect to internet. So I checked 'ip route ls table cache' and found that cannot reach default gateway.
(screenshot link: docs.google.com/presentation/d/1Uu7Xm4iKOmE4s9zLUu7TBf_pMd85Gou-rIW_GRONqBQ/pub)
Is there an any way to solve this problem? or some books or docs...
Have a nice day!

Do you use pc?

Related

Remote Deskop Fix

i set up remote desktop on my pc from my tp and it looked awsome. It works but i have to be connected to my home wifi while connecting. I want to be able to connect anywhere i have data, not just wifi. Is there a way i can get this done? i'm using sprint tp with NFSFAN's WM6.5.5 v1.05 ROM and WXP Pro
it's possible and i'm not sure why your having an issue connecting to it. i have been able to connect from outside my network with no real issues. it was easier when i had dsl with a static ip.
... you posted this question in another thread and received your answer there.
you have a dynamic IP and need to utilize a dynamic DNS service in order to get to your PC all the time - a client application is installed on the PC that monitors the IP address and updates the dns-web application so when you point the touch pro remote desktop client at your unique url setup through a dynamic DNS service, it will always find your PC. simplest answer.
alternatively, call your ISP and change your plan from residential to business - but make sure you can get a static IP address.
x2, if you do have a dynamic ip, you'll need a dns service. i use dyndns.org. free and works great. a little program goes on my server to update the ip address and all i have to do to access my remote desktop is type in the dyndns.org address that i picked and it points me right to my server, via phone and computer.
if you have time warner, i hear they do not do static ips for non business.

Configuring 2x remote desktop

Hi guys,
I've just downloaded the 2X Cliente Remote Desktop for Android but I'm having a hard time making it work.
I've chosen Terminal Server Connection
Alias - some random alias I came up with to test
Server - the IP address of the computer I want to be able to remotely connect to
Port - 3389 (I've added this to my port forwarding list on my router)
Username - some random username I came up with to test
In connection mode it's greyed out and it says "Gateway mode"
When I try to connect it says:
Code [1a/00000001]
The specified remote connection could not be found.
Verify that you have typed the correct computer name or IP address, and then try to connect again.
Any thoughts would be greatly appreciated.
.....Nobody?
I haven't tried that app i think. But i have tried like 6 apps for remote desktop or VNC, but none were to my liking. They all had lag, and were 6 frames each second max. I want to be able to game and watch movies threw remote desktop. So if you ever find a good remote desktop application, please let me know!
Concerning your problem, for most of the apps i've used i needed to install a windows program that enabled a VNC server for remote desktop. Did you install that? And ofcourse, your firewall isn't blocking anything? And the username you specified, make sure it's an existing windows username with the same password and administration rights.
Hope it helps....

[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.

Android, local server, WiFi and hosts

Hi!
I have just built a local server with Pydio (like Dropbox) on NGINX.
I want to access that website and its application when I am connected to my LAN and when I am outside (in the street by example).
The problem is that, if I am outside it is OK, because when I enter the URL it works but when I am on my LAN, url does not work but without including the nameserver and private IP to /etc/hosts.
Does anyone know a global solution to fix it?
Maybe using iptables in the router?
Thanks in advance
Up
Solved. I added this domains to the /etc/hosts of the router OPenWRT

Blocking all outgoing connections and hosts file manipulation

Hi,
I want to block every internet connection from my android to the internet, allowing only that he connects to my home server, avoiding to use the firewalls (like: Droidwall, NoRootFirewall, etc) to keep it simple, solid, and minimum, plus my sole purpose is to connect to my home. Also, make it easy to use "homeserver" instead of my DDNS
I was checking the hosts file and tried set there the DDNS:
127.0.0.1 localhost
myddns.example.com homeserver
but this dont really work (when I try use: homeserver), what am I doing wrong ? I was thinking of set rules on iptables to block all ips and add just a exception to my ddns, any better idea ?
thanks.

Categories

Resources