Ignore:
Timestamp:
02/28/18 18:24:39 (7 years ago)
Author:
Edwin Eefting <edwin@datux.nl>
Branches:
master, perl-5.22
Children:
669bb09
Parents:
df958d5 (diff), 90f43e5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'gcc484'

Location:
npl/internetserver/openvpn_conf
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • npl/internetserver/openvpn_conf/openvpn_conf.build

    rdf958d5 r031ab69  
    1 6558
     16560
  • npl/internetserver/openvpn_conf/openvpn_conf.md5

    rdf958d5 r031ab69  
    1 e6b8830262387e5096021399e73eacfe  ./openvpn_conf.pkg
     1c944c634d7d393d656a8bc72981d857d  ./openvpn_conf.pkg
    22729b418d4c2197708760319d4097906e  ./openvpn_conf.SlackBuild
    3 30b7d6e39f812d1cca79c92ee2d8f014  ./openvpn_conf.SlackBuild.log.gz
     39642ef78f7a58f409156e4e23271ae51  ./openvpn_conf.SlackBuild.log.gz
    4402590f2d27b9254da5877e03719a9228  ./root/etc/firewall/services.openvpn
    555d08314120a94191e539c792b1c410a2  ./root/etc/openvpn/easyrsa
     
    1818d0d7a06379af67505bf5dae59d3e7afb  ./root/etc/openvpn/x509-types/server
    1919c8fadda104656594f3ceadbb13d9d178  ./root/etc/pam.d/openvpn
    20 0b5c1be62a06a25f07bb7360014c82e7  ./root/etc/postinst.d/post.openvpn
    21 b4cd1c6ab389a60ed98da6d792339fa7  ./root/service/openvpn/run
     20a6e8a68a743fe6448c01ccba1db33569  ./root/service/openvpn/run
  • npl/internetserver/openvpn_conf/root/service/openvpn/run

    rdf958d5 r031ab69  
    11#!/bin/bash
     2
     3set -e
     4
     5cd /etc/openvpn
     6
     7# key generation moved here, otherwise it takes too long (now the system is generating more entrophy because it continues to start)
     8
     9
     10#basic setup
     11if ! [ -e pki ]; then
     12        ./easyrsa init-pki
     13fi
     14
     15#create ca cert
     16if ! [ -e pki/ca.crt ]; then
     17        echo syn3 | ./easyrsa build-ca nopass
     18fi
     19
     20#create server cert
     21if ! [ -e pki/issued/server.crt ]; then
     22        ./easyrsa build-server-full server nopass
     23fi
     24
     25#create dh parameters
     26if ! [ -e pki/dh.pem ]; then
     27        ./easyrsa gen-dh
     28fi
     29
     30#create CRL list
     31if ! [ -e pki/crl.pem ]; then
     32        ./easyrsa gen-crl
     33fi
     34
     35#openvpn group
     36if ! ( getent group | grep "OpenVPN access" &> /dev/null ) ; then
     37 smbldap-groupadd -g 521 "OpenVPN access" || exit 1;
     38fi
     39
     40#openvpn ipblock
     41NAME="OpenVPN clients"
     42if ! grep "$NAME" /etc/firewall/ipblocks; then
     43        echo "$NAME='10.8.0.0/24'" >> /etc/firewall/ipblocks
     44fi
     45
     46#create tlsauth key
     47if ! [ -e pki/ta.key ]; then
     48        openvpn --genkey --secret pki/ta.key
     49fi
     50
    251
    352modprobe tun
    453
    5 cd /etc/openvpn
    654exec openvpn --config openvpn.conf --config openvpn_syn3.conf  --config openvpn_custom.conf
Note: See TracChangeset for help on using the changeset viewer.