![]() |
VPN Client User Guide for Linux and Solaris, Release 4.0
|
|||||||||||||||||||
Using the Command-Line Interface
![]() |
||||||||||||||||||||
Table of ContentsUsing the Command-Line InterfaceDisplaying a List of Commands Establishing a Connection Disconnecting the VPN Client Displaying VPN Client Statistics Event Logging Using the Command-Line InterfaceThis chapter describes common operations using the command-line interface. You can create your own script files that use the CLI commands to perform routine tasks, such as connect to a corporate server, run reports, and then disconnect from the server. For more detailed information about using the VPN Client command-line interface, see the Cisco VPN Client Administrator Guide. Displaying a List of CommandsTo display a list of available VPN Client commands, locate the directory that contains the VPN Client software and enter the vpnclient command at the command line prompt. The following example shows the command and the information that is displayed: Establishing a ConnectionThis section describes how to establish a VPN connection using the vpnclient connect command and optional command parameters.
To establish a connection, enter the following command: The parameters for the vpnclient connect command are described in Table 4-2. Table 4-1 Parameters for the vpnclient connect Command
For more information on profiles, see "User Profiles.". Authentication PromptsDepending on the parameters that have been configured in your user profile, you are prompted for the following passwords: If your VPN Client has been configured to use SecurID or RADIUS authentication, you are also prompted for those passwords. See your administrator for any security information. Rekeying IssuesWhen the connection is established, the VPN Client window stays in the foreground to allow the VPN Client to be reauthenticated during a rekey by the VPN device. To send the VPN Client window to the background, press Ctrl-Z and enter the bg command at the command line prompt. If the VPN device you are connecting to is configured to support rekeying and you send the VPN Client window to the background, the tunnel disconnects when the first rekey occurs. The VPN Client responds to rekey triggers based on time, not data. If you want VPN Client connections rekeyed, you must configure the concentrator so that the IKE proposal is set to rekey every 1800 seconds and IPSec parameters are set to rekey every 600 seconds. DNS Server SettingsYou can configure the concentrator to send the IP addresses of DNS servers to the VPN Client to use during tunnel sessions. If the client receives the DNS server settings, it copies the file /etc/resolv.conf to a backup file /etc/resolv.conf.vpnbackup. When the tunnel closes, the original contents of /etc/resolv.conf are restored.
Disconnecting the VPN ClientThis section describes methods for disconnecting the VPN Client. To disconnect from your session, use one of the following methods: The following example shows the command that disconnects you from your secure connection and the prompts that appear. Displaying VPN Client StatisticsThis section describes the VPN Client statistics command vpnclient stat and its optional parameters. To generate status information about your connection, enter the following command: If you enter this command without any of the optional parameters, the vpnclient stat command displays all status information. The optional parameters are described in Table 4-2. Table 4-2 Optional Parameters for the vpnclient stat Command ExamplesThis section shows examples of output from the different options for the vpnclient stat command. No OptionsReset OptionTo reset all connection counters, use the vpnclient stat reset command. Traffic OptionTunnel Option The following is a sample output from the vpnclient stat command with the tunnel option. The vpnclient stat tunnel command shows only tunneling information.
Route OptionEvent LoggingThis section provides information on event logging, including how to capture and view logging information. Enabling LoggingYou must be a system administrator or have access to the global profile (vpnclient.ini) to enable logging. To enable logging, set EnableLog=1, To disable logging, set EnableLog=0. The global profile, located in /etc/CiscoSystemsVPNClient/vpnclient.ini, must include the following parameters: The VPN Client for Linux and Solaris supports log levels from 1 (lowest) to 15 (highest). For more information about the global profile, refer to the Cisco VPN Client Administrator Guide. Viewing Log FilesTo view logging information, enter the following command:
When you launch the ipseclog application, it appends any previous ipseclog files. To view logging information in real time, enter the following command after you start the ipseclog: The ipseclog does not automatically go to the background. To send the ipseclog to the background, press Ctrl-Z and enter the bg on the command line, or enter the ampersand symbol (&) at the end of the view command, as shown in the following example: If the ipseclog is in the background, you must send it to the foreground before you end the VPN Client application. To send the ipseclog to the foreground, enter fg on the command line. Client Auto Update MessagesWhen the VPN Client receives an auto-update notification from the VPN remote access device, it logs the notification, but takes no further action. To receive auto-update messages and other notifications from the network administrator, use the vpnclient notify command. The following example shows the vpnclient notify command and an example of an auto-update notification from the VPN device:
|
||||||||||||||||||||
|
|