Openvpn

From Livedoc - The Documentation Repository
Jump to: navigation, search

This page is a stub. Please consider expanding the article so it is complete.

You might also want to consider Tinc, which performs faster than Openvpn but requires a bit more configuration.

Hosted on Hosted on::Chatham
Provides service Service provided::VPN
Contact person 2018nzhou
Criticality Criticality::Development

Troubleshooting

If you can connect to the VPN successfully, but are having issues accessing other machines, try running the following command on the server.

/etc/init.d/net.tap0 restart

Creating Certificates

Run the commands below, substituting USERNAME for the username of the person you are generating the certificates for.

cd /root/
./add_vpn_user --no-passphrase USERNAME
mkdir USERNAME
cp /etc/ssl/keys/USERNAME.crt USERNAME/
cp /etc/ssl/keys/USERNAME.key USERNAME/
cp 2017ewang/ca.crt USERNAME/
cp 2017ewang/ta.key USERNAME/
cp 2017ewang/openvpn.conf USERNAME/

Edit openvpn.conf and replace 2017ewang with the username of the person you are generating the certificates for.

zip -r USERNAME.zip USERNAME

Give USERNAME.zip to user.