![]() | 1 | initial version |
Use
sudo vpnc
which is the command to use if you want to star the VPN client from the command line. You will probably want to use a configuration file /etc/vpnc/default.conf similar to the following unless you want to type each time all the requested options:
IPSec gateway my.vpn.gateway
IPSec ID my.ipsec.id
IPSec secret mysecret
# your username goes here:
Xauth username
# if you want to test rekeying specify nonzero seconds here:
Rekeying interval 0
The above file is just an example, you may have/need additional options depending on the remote VPN server configuration.
![]() | 2 | added note |
Use
sudo vpnc
which is the command to use if you want to star the VPN client from the command line. You will probably want to use a configuration file /etc/vpnc/default.conf similar to the following unless you want to type each time all the requested options:
IPSec gateway my.vpn.gateway
IPSec ID my.ipsec.id
IPSec secret mysecret
# your username goes here:
Xauth username
# if you want to test rekeying specify nonzero seconds here:
Rekeying interval 0
The above file is just an example, you may have/need additional options depending on the remote VPN server configuration.
Note about additional options:
IPSec gateway The VPN server
IPSec ID The group name of the VPN server
IPSec secret The group secret of the VPN server
Xauth username The user name of the user to login
Xauth password Here the user's password can be inserted.
Because it will be saved in clear text in an
ASCII file, this should be avoided because of
security reasons
![]() | 3 | added disconnection procedure |
Use
sudo vpnc
/usr/sbin/vpnc
which is the command to use if you want to star the VPN client from the command line. You will probably want to use a configuration file /etc/vpnc/default.conf similar to the following unless you want to type each time all the requested options:
IPSec gateway my.vpn.gateway
IPSec ID my.ipsec.id
IPSec secret mysecret
The above file is just an example, you may have/need additional options depending on the remote VPN server configuration.
Note about additional options:
IPSec gateway The VPN server
IPSec ID The group name of the VPN server
IPSec secret The group secret of the VPN server
Xauth username The user name of the user to login
Xauth password Here the user's password can be inserted.
Because it will be saved in clear text in an
ASCII file, this should be avoided because of
security reasons
Use
sudo /usr/sbin/vpnc-disconnect
to end the vpn tunnel.