Using VPN in objective C once user is connected to VPN with Anyconnect,F5 BIG-IP Edge - iphone

I am exploring the possibility of communicating with server that requires VPN connection outside of corporate network using iOS enabled device. I found out that I can connect to VPN using proprietary apps of Cisco, F5, Juniper etc. Assuming that user has successfully connected to VPN using these apps, can I directly communicate(call web service) from my iOS app? I know that Safari can directly communicate with server requiring VPN connection once user establish connection using one of apps I mentioned.
Thanks,
Jignesh

I'm sure that there could be unique circumstances that cause problems, but in my experience I have found that this works just fine. I have an app that interacts with SOAP services running on servers within our corporate intranet. Once I have established a VPN connection using network-specific clients (I've used both Cisco and Juniper clients) I am able to use NSURLConnection and other iOS API's to connect to those servers.

Related

Remote.it and openVPN together

So this is a classic question that I’ve seen many times before...
I’m trying to connect to my home network when not at home using a raspberry pi.
I’m well aware that the way to go with this is to use a vpn server such as OpenVPN.
However, in order to connect to the vpn I would need to forward a port on my router... which I can’t do.
I’ve found remote.it which allows remote connection to a computer (pi) without port forwarding.
What I would like to know is how would I set about using the 2 together, I.e. connecting to remote.it which in turn connects me to my vpn server?
I'm sorry to be finding this question just now, but in case it's still useful to you or to anyone else, here's what you need to do:
Install remote.it
Set-up a remote.it connection to use the protocol (TCP/UDP) and port required by the VPN application
Make a remote.it connection/adding the service to your network (remoteit - Desktop application UI terminology)
Use this connection info (URL/port or localhost:port) with the VPN client
Send an e-mail to support#remote.it if you need help
I would recommend ZeroTier(https://www.zerotier.com/). It haves its own linux client , and you can connect to as many networks as you would like.
You can also configure IP address from the website.
There is also an Android an IOS app that is really simple to connect.

Connection to SQL(MySQL) server on gcloud from mobile network

I am trying to connect 3 beckhoff plc's to my MySQL database on gcloud.
1 plc is on our home network, the 2 other is on 2 different mobile sites, and are connected via mobile network(4g/3g)
The 1 plc connects with out any difficulty.
The 2 plc's that is connected via a mobile networks will not connect. They return with a timeout error.
I suspect that is because of how mobile networks work, that makes it, that i can not just add them to my "Authorized networks".
Is it just me and are the a way to connect to my MySQL server on gcloud?
Background:
I started a google cloud account yesterday to try it out. So this might just be a problem of me not understanding the service.
You can use the Google Cloud SQL proxy, which uses service account credentials to authenticate connections to your database.
You could also manually configure an SSL certificate and use that instead.

Is XMPP good choice for this solution?

I want to build communication solution for my project. Thinking about not to develop everything from scratch, but to use XMPP servers.
My project consist of many "mini-servers" (based on raspberry pi) scattered around different locations. Every mini-server should be reachable for mobile applications on its own network, this network could be isolated from internet. Every "mini-server" has to be autonomous and be able to live without internet, autethicate its own mobile client and respond to their requests. So mini-servers could be on private offline networks, could be on known static or unknown dynamic IP addresses behind firewalls.
Some mini-server users want theirs mini-servers to be reachable from the internet. So there is one more, let's call it cloud. This cloud would be responsible for routing request from mobile clients from the internet to their mini-servers.
My idea was to use XMPP server on every mini-server, my application would log in to this server on localhost and create chatroom. Every mobile client would connect to xmpp server and chat with my application request-response. When mini-server owner wants to connect to the interet to be reachable from outside, I would just reconfigure xmpp server to connect to my cloud XMPP cluster (on known public domain) and mobile app to connect to this public cloud server if not on private network. Every mini-server will have its own users, managed by other app on it. Mini-server has also log, this could be written for example to another chatroom. Mini-servers or mobile users does not want to talk to each other. It is pure mobile user to mini-server request-response realtime communication.
Can cloud-XMPP servers route request to mini-server xmpp server?
Is this possible with XMPP? Is it good use? Some better ideas?
What you describe looks like XMPP server-to-server federation, with some local Raspberry PI XMPP domains and some other XMPP servers on the internet.
So, I think yes, what you would like to achieve is doable with XMPP server.
A server like ejabberd works very well on Raspberry Pi.

Connect to Active Directory from iOS application

I need to connect to an Active Directory from an iOS application. We cannot replicate or create a PHP/ASP wrapper for the AD because it is behind a VPN. The iPhone user must first connect to the VPN before he can use the application.
Can't seem to find anything other then OpenLDAP library for iOS. Since Active Directory uses it's own LDAP version, i think i cannot use OpenLDAP.
Kind Regards.
Try to connect to the VPN either by built-in iOS VPN connection or using cisco anyconnect ios free App.
Once connected you are now part of the internal network and you can hit the AD and any other device connected to this network.

How to Access Database from server through a VPN

I am working on an iphone app in which i want to access database from server through a VPN
Edit as i search. connection To server through is VPN is difficult and i was not found any solid information about this SO now i divide my Question in to two parts and part 1 is important to do as compare to other
Question 1
i have a SQL server DATABASE and a live ip of this server and i want to establish connection and access database through iphone . mean i iphone app store, select data or perform any DDL or DML methods from it self?
e.g
when user givs its info iPhone apps saves it on SQL SERVER DATABASE
Question 2
how can i do this all or which mean of communication is best through VPN how can i do and how can i hit or live IP?
You need a setup with a VPN-Gateway, which your iPhone is connecting to and some infrastructure behind the VPN-Gateway: at minimum the server the database is running on. The VPN connection can be setup in the iPhone Settings (you need the IP of your VPN-Gateway, Account, Password...), this has to be done manually and can't be controlled by the App. Once the VPN is setup and activated you can access the database as you would do it with any other App.
Edit: Question 2: I'm not sure if VPN is the right choice here. Is your server publicly available or is it inside an intranet? If it's publicly available a SSL/TLS connection would be the better choice instead of a VPN.