modif de la configuration du vpn
darcs-hash:20080304101425-c41ad-4f97a48603ced904c058b497a7f933f72889b0ae.gz
This commit is contained in:
parent
da3beef473
commit
71ea3f7535
20 changed files with 85 additions and 141 deletions
34
etc/python/template/openvpn.py
Normal file
34
etc/python/template/openvpn.py
Normal file
|
@ -0,0 +1,34 @@
|
|||
# -*- coding: utf-8; mode: python -*-
|
||||
|
||||
header("Configuration du tunnel entre %s et %s" %s (hostname, remote))
|
||||
|
||||
print """
|
||||
daemon tun-main
|
||||
dev tun-main
|
||||
|
||||
tls-server
|
||||
ca /etc/ssl/certs/root.pem
|
||||
cert /etc/ssl/certs/vpn.pem
|
||||
tls-verify "/usr/share/openvpn/verify-cn komaz.vpn.crans.org"
|
||||
key /etc/ssl/private/vpn.pem
|
||||
|
||||
log-append /var/log/openvpn/%s.log
|
||||
|
||||
port 1194
|
||||
|
||||
ifconfig %(local)s %(remote_vpn)s
|
||||
route 10.231.136.0 255.255.255.0 vpn_gateway
|
||||
|
||||
ping-timer-rem
|
||||
keepalive 10 60
|
||||
persist-tun
|
||||
|
||||
verb 3
|
||||
|
||||
dh /etc/openvpn/dh1024.pem
|
||||
|
||||
remote %s
|
||||
""" % (remote,
|
||||
admipof("ovh"),
|
||||
admipof(remote_vpn or remote),
|
||||
pubipof(remote))
|
Loading…
Add table
Add a link
Reference in a new issue