Skip to content

Commit

Permalink
rename script and split configuration in own file
Browse files Browse the repository at this point in the history
  • Loading branch information
gdestuynder committed Apr 11, 2014
1 parent 3f7f926 commit 3725934
Show file tree
Hide file tree
Showing 2 changed files with 459 additions and 0 deletions.
20 changes: 20 additions & 0 deletions netfilter_openvpn.conf.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# LDAP settings
LDAP_URL='ldap://<%= ldap_server %>'
LDAP_BIND_DN='uid=<%= bind_user %>,ou=logins,dc=mozilla'
LDAP_BIND_PASSWD='<%= bind_password %>'
LDAP_BASE_DN='ou=groups,dc=mozilla'
LDAP_FILTER='cn=vpn_*'

# Common stuff
IPTABLES='/sbin/iptables'
IPSET='/usr/sbin/ipset'
NODENAME=os.uname()[1]

# Rules location
RULESCLEANUP='<%= confdir %>/plugins/netfilter/vpn-netfilter-cleanup-ip.sh'
RULES='<%= confdir %>/plugins/netfilter/rules'
PER_USER_RULES_PREFIX='users/vpn_'

# Script lock
LOCKPATH='/var/run/openvpn_netfilter.lock'
LOCKWAITTIME=2
Loading

0 comments on commit 3725934

Please sign in to comment.