Advanced Options Managed From The Command-Line Interface (2024)

Access Server has advanced features you can execute from the command-line interface. We provide tutorials for each of these.

OpenVPN daemons interface and ports

The OpenVPN daemons manage OpenVPN tunnel connections. By default, they listen on all available network interfaces, using UDP port 1194 and TCP port 443. You can customize these settings via the Admin Web UI or CLI.

  • Tutorial: Set the Interface and Ports for the OpenVPN Daemons

Turn off multi-daemon mode

The OpenVPN 2 code base is single-threaded, meaning each OpenVPN process runs on a single CPU core and can't utilize multiple cores. To overcome this, Access Server can launch multiple OpenVPN daemons simultaneously, ideally one per CPU core. Additionally, to support both UDP and TCP protocols for client connections, Access Server requires separate OpenVPN daemons for each protocol.

Tip

We recommend one TCP and one UDP daemon per CPU core.

Example1.Example multi-daemon setup

In a system with four CPUs, Access Server runs eight OpenVPN daemons: two per CPU core, one for TCP and one for UDP. This setup optimizes resource utilization and ensures efficient handling of connections.

Setup Overview:

Benefits:

  1. Load Balancing: Access Server distributes incoming connections across the daemons based on load, ensuring efficient use of CPU resources.

  2. Protocol Support: Separate daemons for TCP and UDP provide robust support for both connection types, enhancing flexibility and connectivity options.

You may encounter a scenario where you want to turn off multi-daemon mode. If so, follow this tutorial:

  • Tutorial: Turn Off Mult-Daemon Mode and Use Only TCP or UDP

Reset multi-daemon mode and the number of TCP/UDP daemons

You can configure the number of TCP and UDP daemons that spawn when Access Server starts.

Refer to this tutorial: Reset Multi-Daemon Mode and the Number of TCP/UDP Daemons.

Reset OpenVPN web services and daemons to defaults

If you need to revert settings that have locked out of your web services or restore an Access Server backup configuration to a new system with a different interface name, it's helpful to run the commands from this tutorial:

  • Tutorial: Reset OpenVPN Web Services and Daemons to Default Settings

Introduction to the XML-RPC interface

Access Server utilizes XML-RPC for communication between its web services, core components, and OpenVPN Connect apps. This interface primarily checks credentials and retrieves user-locked profiles when using server-locked profiles. You can enable full XML-RPC support to remotely control all Access Server functionality. While documentation and support for XML-RPC are not provided, tools are available to help determine necessary calls and their execution.

  • Tutorial: Changing the XML-RPC Function Support

Set the maximum number of authentication and database connection QueuePool size

Access Server has default settings for handling authentication and database connections, which can sometimes lead to issues under high load or specific scenarios like out-of-band MFA or slower authentication systems. By adjusting the maximum number of threads and connection QueuePool size, you can ensure smoother performance and avoid connection bottlenecks.

  • Tutorial: Adjusting Authentication and Database Connection Settings

Limit the total maximum number of VPN tunnels

Access Server, by default, allows up to 2048 VPN tunnels. While this is sufficient for most scenarios, there are situations where you might need to increase or decrease this limit. Adjusting this setting can help manage server load and control access. However, be aware that changing this value will restart the OpenVPN daemons, causing all connected VPN clients to reconnect.

  • Tutorial: Adjusting the Maximum Number of VPN Tunnels

UCARP/VRRP failover advanced settings

UCARP/VRRP failover ensures high availability for Access Server by having a secondary node take over if the primary node fails. When using multiple pairs on the same network, each pair requires a unique VHID to differentiate their heartbeat signals. Refer to the tutorial for steps on how to adjust the VHID and configure additional UCARP parameters.

  • Tutorial: Configuring UCARP/VRRP Failover Advanced Settings

Global NAT behavior setting

Access Server's global NAT behavior setting controls how outgoing traffic from VPN clients is handled. By default, Access Server uses NAT for traffic destined for public IP addresses. However, in some scenarios, such as when you want to log VPN clients' private IP addresses, it may be desirable to disable this NAT behavior or specify a different interface or IP address for outgoing NAT operations.

To manage NAT behavior settings for your Access Server, refer to this tutorial:

  • Tutorial: Configure Global NAT Behavior Settings

Settings related to iptables

Access Server utilizes Linux iptables extensively to implement NAT functionality and enforce VPN-level access control rules. It aims to coexist with other applications that use iptables by maintaining its own chains and making minimal additions to standard chains such as INPUT, OUTPUT, and FORWARD. By default, Access Server prepends to these standard chains to ensure proper functionality. However, you can modify this behavior to append instead of prepend, allowing you to create custom rules that take priority over Access Server-generated rules. Additionally, you can disable Access Server's iptables management, although this is not recommended as it may lead to security issues and loss of functionality.

  • Tutorial: Managing iptables Settings in Access Server

Allow UDP multicast and IGMP to pass through

Access Server transfers information by unicast: only traffic with a specific destination IP address can pass through the VPN server. Access Server blocks multicast or broadcast traffic with a to-whom-it-may-concern characteristic. You can lift the restriction on UDP multicast and IGMP packets allowing these to pass freely between VPN clients and the VPN server. Some software programs use these to auto-detect network systems or services, so this option may be necessary for such a situation. The configuration keyvpn.routing.allow_mcastallows this traffic to pass through. It is disabled by default.

  • Tutorial: Allow UDP Multicast and IGMP to Pass Through

In this section:

Advanced Options Managed From The Command-Line Interface (2024)

FAQs

What is a command line interface interface? ›

A command line interface (CLI) is a software mechanism you use to interact with your operating system using your keyboard. Another mechanism is a graphical UI (GUI), which is popular today with all applications and software systems.

What is the command used to manage Windows services from the command line? ›

In the Command Prompt window, type services. msc and hit ↵ Enter .

What is Microsoft's command line interface? ›

Microsoft Windows includes the Command Prompt app as well as the PowerShell application, both of which can be used to interact directly with the computer. The Windows Subsystem for Linux also provides a CLI with access to the underlying system.

What is the command line interface in Windows known as? ›

In Microsoft Windows, you can use the command prompt and the Powershell application as a command-line interface. Linux and Unix-based operating systems have Bourne-Again Shell (bash) as the default CLI. Microsoft has recently added the Windows Subsystem for Linux, which enables Windows users to use Linux bash.

What is an option in command line? ›

Options are a list of flags and other parameters that can control the behavior of the wt command line as a whole. Commands provide the action, or list of actions separated by semicolons, that should be implemented. If no command is specified, then the command is assumed to be new-tab by default.

What is the most popular command line interface? ›

The three most popular operating systems and their command-line interface names are:
  • Windows: Command Prompt.
  • Linux: Bash (Bourne Again Shell)
  • MacOs: Terminal.
Nov 29, 2023

How do I access command-line interface? ›

Go to Start menu → Windows System → Command Prompt. Go to Start menu → All Programs → Accessories → Command Prompt. Go to the Start screen, hover your mouse in the lower-left corner of the screen, and click the down arrow that appears (on a touch screen, instead flick up from the bottom of the screen).

Is command-line interface still used? ›

Today, most computer users rely on graphical user interfaces ("GUIs") instead of CLIs. However, many programs and operating system utilities lack GUIs, and are intended to be used through CLIs.

What are the disadvantages of a command-line interface? ›

To summarize, some of the main disadvantages include:
  • If you are new to programming or have never used a CLI, this approach can be confusing. There are also a lot of commands that need to be learned (i.e. in this case of Unix, there are hundreds of commands).
  • Accuracy is of the utmost importance.
May 3, 2023

What does IT mean to navigate using the command line? ›

Just like Windows Explorer on Windows or Finder on Mac OSX it lets you navigate through the files and folders of your computer, but it is completely text based. The command line works by typing commands against a prompt, which then gets passed to the operating system of the computer that runs these commands.

What is the advantage of a command prompt? ›

Command (cmd) prompt lets you manage the computer using various text commands. IT professionals find this application useful when performing advanced administrative functions, troubleshooting and solving computer-related issues.

What does the command line do? ›

The command line is a text interface for your computer. It's a program that takes in commands, which it passes on to the computer's operating system to run. From the command line, you can navigate through files and folders on your computer, just as you would with Windows Explorer on Windows or Finder on Mac OS.

What is the difference between a GUI and a CLI? ›

The main difference between CLI and GUI lies in the way users interact with the system. CLI requires the use of written commands, while GUI allows users to interact with graphical elements like icons and windows.

What is the difference between command line and interface? ›

Comparison to graphical user interfaces

Compared with a graphical user interface, a command-line interface requires fewer system resources to implement. Since options to commands are given in a few characters in each command line, an experienced user often finds the options easier to access.

What is an example of a GUI? ›

Examples of GUIs

Some other GUIs currently used include Chrome OS, GNOME, and KDE, which are GUIs for Linux (an operating system that is a lot like UNIX), iOS and Android (for mobile devices).

What is the command line interface of a network? ›

A Command Line Interface (CLI) is a text-based user interface similar to that used on routers, with modes like unprivileged, privileged, and configuration mode for performing configuration and troubleshooting tasks.

Top Articles
Tata Steel Ltd.Share Price Today, Tata Steel Ltd.Stock Price Live NSE/BSE, Tata Steel Ltd.Shares
[Desktop] How to Find the Desktop Serial Number? | Official Support | ASUS India
Poe T4 Aisling
Moon Stone Pokemon Heart Gold
Sandrail Options and Accessories
Trabestis En Beaumont
Stadium Seats Near Me
Dr Lisa Jones Dvm Married
27 Places With The Absolute Best Pizza In NYC
Texas (TX) Powerball - Winning Numbers & Results
South Ms Farm Trader
Culos Grandes Ricos
Buying risk?
Washington, D.C. - Capital, Founding, Monumental
Christina Khalil Forum
Craigslist Missoula Atv
Amazing deals for DKoldies on Goodshop!
Bekijk ons gevarieerde aanbod occasions in Oss.
Tripadvisor Napa Restaurants
R. Kelly Net Worth 2024: The King Of R&B's Rise And Fall
Home
Gina Wilson Angle Addition Postulate
Weldmotor Vehicle.com
The Boogeyman (Film, 2023) - MovieMeter.nl
Beaufort 72 Hour
Jayme's Upscale Resale Abilene Photos
Ocala Craigslist Com
San Jac Email Log In
Grays Anatomy Wiki
Nextdoor Myvidster
6143 N Fresno St
Kagtwt
T&J Agnes Theaters
Unity Webgl Player Drift Hunters
A Man Called Otto Showtimes Near Amc Muncie 12
Edict Of Force Poe
Ktbs Payroll Login
All-New Webkinz FAQ | WKN: Webkinz Newz
Sams Gas Price Sanford Fl
Fedex Passport Locations Near Me
Conan Exiles Tiger Cub Best Food
Darkglass Electronics The Exponent 500 Test
Caesars Rewards Loyalty Program Review [Previously Total Rewards]
Rocket League Tracker: A useful tool for every player
Leland Westerlund
Germany’s intensely private and immensely wealthy Reimann family
Southwind Village, Southend Village, Southwood Village, Supervision Of Alcohol Sales In Church And Village Halls
Jesus Calling Oct 6
Www Extramovies Com
Códigos SWIFT/BIC para bancos de USA
Dinargurus
Latest Posts
Article information

Author: Rev. Porsche Oberbrunner

Last Updated:

Views: 5916

Rating: 4.2 / 5 (53 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Rev. Porsche Oberbrunner

Birthday: 1994-06-25

Address: Suite 153 582 Lubowitz Walks, Port Alfredoborough, IN 72879-2838

Phone: +128413562823324

Job: IT Strategist

Hobby: Video gaming, Basketball, Web surfing, Book restoration, Jogging, Shooting, Fishing

Introduction: My name is Rev. Porsche Oberbrunner, I am a zany, graceful, talented, witty, determined, shiny, enchanting person who loves writing and wants to share my knowledge and understanding with you.