23.11.2014 Views

CRIPTOGRAFIA - FESP

CRIPTOGRAFIA - FESP

CRIPTOGRAFIA - FESP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

service openvpn restart<br />

Then, the client must also prompt for the user login and password. To do so, add<br />

the following in /etc/openvpn/client.conf :<br />

# This will direct the OpenVPN client to query the user for a username/password,<br />

# passing it on to the server over the secure TLS channel:<br />

auth-user-pass<br />

Restart the Client:<br />

service openvpn restart<br />

Type your login and password when prompted to do so.<br />

Each time you start the client, you will be prompted for a login and password. So<br />

you may wish to launch it manually instead of at boot time.<br />

To see if it is launched at boot type the following :<br />

chkconfig --list openvpn<br />

If you see this :<br />

openvpn 0:off 1:off 2:on 3:on 4:on 5:on 6:off<br />

run :<br />

chkconfig openvpn off<br />

If you see this:<br />

openvpn 0:off 1:off 2:off 3:off 4:off 5:off 6:off<br />

You have nothing to do.<br />

To then launch the client run:<br />

service openvpn start<br />

and stop it with:<br />

service openvpn stop<br />

ALSO, you may have multiple clients, in which case you will want to launch only<br />

specific ones manually and the others at boot time.<br />

To do so, run :<br />

chkconfig openvpn on<br />

And change the .conf extension to something else such as .config.<br />

OpenVPN's init script only launches whatever ends by .conf and which is in<br />

/etc/openvpn.<br />

To manually launch a client you will need to type this kind of command:<br />

openvpn --daemon --config /etc/openvpn/clientconf.config

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!