Client 安裝與設定

  1. 登入 VPN client
    [root@dyw219 ~]# ssh 192.168.1.102
    root@192.168.1.102's password: 
    Last login: Sat Mar 19 18:10:38 2016 from gateway
    [root@oveng ~]#
    
  2. 安裝 openvpn。
    [root@oveng ~]# vim /etc/yum.repos.d/dywang.repo
    [root@oveng ~]# yum install openvpn --enablerepo=dywang
    
  3. 回到 openvpn server 將 ca.crt client.crt client.key 三個檔案複製到 client 的 /etc/openvpn 目錄。
    [root@dyw219 ~]# cd /etc/openvpn/easy-rsa/keys/
    [root@dyw219 keys]# scp ca.crt client.crt client.key 192.168.1.102:/etc/openvpn/
    root@192.168.1.102's password: 
    ca.crt                                        100% 1708     1.7KB/s   00:00    
    client.crt                                    100% 5334     5.2KB/s   00:00    
    client.key                                    100% 1708     1.7KB/s   00:00