Open main menu

CDOT Wiki β

Changes

EHL VPN Client Configuration in Fedora

24 bytes removed, 01:22, 27 August 2015
no edit summary
The [[EHL]] has OpenVPN and PPTP VPN for remote access.
== OpenVPN method ==
=== Generate OpenVPN certificates for client ===
1. SSH to red and login as root
'''NOTE:''' No information needed to be inputted except answering (y/n)
=== Copy certificates to client ===
1. ON YOUR MACHINE: Create ~/.cert on your own machine:
restorecon -R ~/.cert
=== Setting up a OpenVPN connection ===
You might need to install OpenVPN plugin for NetworkManager
yum install openvpn NetworkManager-openvpn
==== via Gnome network settings ====
To set up access to the VPN from a remote Fedora system graphically:
# Start the VPN with the control in the Network Settings screen or at the top of the Gnome screen.
==== via Command line ====
Add a new basic vpn using nmcli:
nmcli conn up EHL
== PPTP Method method (Not recommended) ==
=== Creating a VPN User ===
1. Add an entry to the /etc/ppp/chap-secrets file on <code>morocco</code>:
2. Reload the pptpd server: <code>sudo systemctl reload pptpd</code>
=== Setting up Remote Access Using NetworkManager GUI Setup Tools in Fedora (Gnome) ===
To set up access to the VPN from a remote Fedora system graphically:
Note: If you are unable to connect to the VPN after following the above steps, it is possibly due to the firewall restricting access. To check if that is the case, turn off the firewall temporarily with <code>sudo systemctl stop firewalld</code> and attempt to the connect to the VPN. Turn the firewall back on afterwards with <code>sudo systemctl start firewalld</code>.
=== Setting up VPN via command line ===
Add a new basic vpn using nmcli:
nmcli conn add con-name EHL type vpn ifname ppp0 vpn-type pptp
nmcli conn up EHL
=== Firewall Adjustment ===
To enable this to work through the Fedora firewall, issue these commands:
(From [http://tinyurl.com/lyb63co here]).
== Other Configuration ==
For convenient access to the EHL resources: