Network Firewalls Cloud Connect VPN
Quick navigation
On this page, jump to: OpenConnect | Cisco AnyConnect
You need:
To protect the environment, MacStadium deploys the Orka cluster with a dedicated Cisco Adaptive Security Virtual Appliance (ASAv) firewall. Cisco ASAv runs the same software as physical Cisco ASAs and delivers full ASA firewall and VPN capabilities to the cloud.
TIP: Looking for more information about your firewall?
See MacStadium Docs: Firewall Overview and MacStadium Docs: Logging into Cisco Firewall.
The Orka cluster sits behind its dedicated Cisco ASAv firewall, which must be connected to the cluster via VPN to do any of the following tasks:
- Manage the Orka VMs and K8s pods.
- Log in to the firewall and manage connectivity between the cluster and the outside world (for example, enterprise networks, other private and public clouds).
MacStadium has pre-configured the firewall and has enabled VPN access. Simply run a VPN client and provide the server address and credentials for the connection.
(Open-source option) OpenConnect
Why OpenConnect?
For pre-dominantly CLI users, consider using OpenConnect - an open-source VPN client available from the command line.
Download and install OpenConnect
- If Homebrew is enabled on the system, then run
brew install openconnect
from the command line. - Windows users, can download and build the OpenConnect package or use Cisco AnyConnect instead.
Configure OpenConnect to access Orka via custom domain
To be able to reach the custom Orka domain API endpoint, add a DNS server to the network configuration.
What's the DNS address?
The DNS server address is the
.251
address for thePrivate-1
network from the IP Plan. For example:10.10.10.251
or10.221.188.251
.
macOS
- Go to System Preferences > Network.
- From the list of network connections, select the current Internet connection, locate and click the Advanced... button at the right bottom corner of the dialog.
- Go to the DNS tab.
- At the bottom of the DNS Servers list, click +.
- Type the Orka DNS address and press
Enter
. - If not already at the top, drag and drop the Orka DNS server to the top. It must be the first item in the list.
- Click OK, click Apply, and exit System Preferences.
Linux
- Use a text editor to open
/etc/resolv.conf
. - Locate the
nameserver
section and add the Orka DNS address:
nameserver <ORKA-DNS-ADDRESS>
- Make sure that this is the first
nameserver
entry in the list.
Windows
- Go to Control Panel > Network and Internet.
- Under Network and Sharing Center, select View network and status.
- In the Network and Sharing Center, in the sidebar, select Change adapter settings.
- In the Network Connections window, right-click the current Internet connection and select Properties.
- Go to the Networking tab, scroll down and click Internet Protocol Version 4 (TCP/IPv4).
- With Internet Protocol Version 4 (TCP/IPv4) highlighted, click Properties.
- Go to the General tab and select Use the following DNS server addresses.
- Add the Orka DNS server as the Preferred DNS server. Add any other name server as the Alternate DNS server (for example, 8.8.8.8).
- Click OK .
- Click Close.
Use OpenConnect
- From the command line, run the following command. Replace
<SERVER ADDRESS>
with the server address from Step 1: VPN in the IP Plan.
sudo openconnect <SERVER ADDRESS> --protocol=anyconnect
// OR if running on Windows
openconnect <SERVER ADDRESS> --protocol=anyconnect
- Follow the prompts.
- On the immediate
Password
prompt, provide thesudo
password (the password for the current computer user) and pressEnter
. - On the
Enter 'yes' to accept, 'no' to abort; anything else to view:
prompt, typeyes
and pressEnter
. - On the
Username
prompt, provide the username from Step 1: VPN in the IP Plan and pressEnter
. - On the
Password
prompt, provide the password from Step 1: VPN in the IP Plan and pressEnter
.
- On the immediate
When the connection is established, a similar output (show below) appears:
TIP: Want to terminate the VPN connection?
At any time press
Ctrl+C
on the command line.
Cisco AnyConnect Secure Mobility Client
Why Cisco AnyConnect?
Cisco firewalls are designed to work with the Cisco AnyConnect Secure Mobility Client as a VPN client. For a GUI VPN client or that is running on Windows, use Cisco AnyConnect.
Download and install Cisco AnyConnect
- In the browser, navigate to the server address from Step 1: VPN of the IP Plan. Use
https://
. - Ignore the certificate warning and proceed to the address.
- When prompted, enter the credentials from Step 1: VPN in the IP Plan.
- When prompted, download, install, and run the Cisco AnyConnect desktop client.
Configure AnyConnect to access Orka via custom domain
On Windows, to be able to reach the custom Orka domain with AnyConnect, add a DNS server to your network configuration.
On macOS and Linux, no changes are required.
What's the DNS address?
The DNS server address is the
.251
address for thePrivate-1
network from your IP Plan. For example:10.10.10.251
or10.221.188.251
.
Windows
With Cisco AnyConnect already connected to your cluster:
- Go to Control Panel > Network and Internet.
- Under Network and Sharing Center, select View network and status.
- In the Network and Sharing Center, in the sidebar, select Change adapter settings.
- In the Network Connections window, right-click Cisco AnyConnect Secure Mobility Client Connection and select Properties.
- Go to the Networking tab, scroll down and click Internet Protocol Version 4 (TCP/IPv4).
- With Internet Protocol Version 4 (TCP/IPv4) highlighted, click Properties.
- Go to the General tab and select Use the following DNS server addresses.
- Add the Orka DNS server as the Preferred DNS server. You can add any other name server as the Alternate DNS server (for example, 8.8.8.8).
- Click OK.
- Click Close.
You need to this every time you re-connect to your Orka cluster with Cisco AnyConnect.
Use Cisco AnyConnect
- Run Cisco AnyConnect Secure Mobility Client.
- When prompted, enter the server address from Step 1: VPN of your IP Plan and click Connect.
- If prompted that an untrusted server was blocked, perform the following steps:
- Click Change Setting... and deselect Block connections to untrusted servers.
- Close the Preferences - VPN window.
- Click Connect again.
- If prompted that the server certificate is untrusted, click Connect Anyway.
- When prompted, provide your login credentials and click OK.
Updated 4 months ago