A method is presented for setting up communication parameters in a virtual
private network node for connecting to at least one other node in the
virtual private network. The method may include reading information from
a hardware token for determining how to connect to a packet data network;
reading information from the hardware token for determining how to obtain
configuration information for the virtual private network node;
connecting to a packet data network on the basis of information read from
the hardware token; obtaining configuration information for the virtual
private network node on the basis of information read from the hardware
token; and using obtained configuration information for setting up the
communication parameters.