[Vpn-help] Command-line xauth credentials issue

Mark Brady mbrady at assia-inc.com
Wed Nov 28 13:23:09 CST 2007


Hello,

We are running the 2.0.3 Linux client (Centos5) against a commercial VPN
unit (PIX501/v6.3).  We have been able to establish a VPN connection using
the GUI, but have had a few difficulties in using the command-line
interface.  (The desired application here is to bring up the tunnel
automatically on boot, and re-connect automatically in case of disconnection
for any reason.)

First, iked is started (no problems here).  Then when using the ikec
program, as for example:

ikec -r "CONFIG.vpn"

This results in the config file being read correctly and a pop-up window
prompting for username and password with Xauth.  When I type them in, the
connection is brought up correctly.  So far, so good.

However, if I try to use the command-line syntax:

ikec -r "CONFIG.vpn" -u "theUsername" -p "thePassword" -a

The "-u", "-p", and "-a" flags seem to be ignored.  Actually the behavior is
the same as when these flags are not given: the same pop-up box appears and
I have to type in the username/password manually.  I tried removing the
quotes and tried removing the "-a", but there appears to be no difference in
behavior.

I was wondering if anyone has been able to use this command-line syntax to
feed in the Xauth username/password without manually typing it into a GUI
box.  (Or, perhaps there is a more germane method).

Kind regards,  Mark




More information about the vpn-help mailing list