Conf d'openvpn
darcs-hash:20080228123815-af139-45398677dde47cc2e86282788c93252d7c6d3fa0.gz
This commit is contained in:
parent
5f0c6f5c27
commit
2cfb65fda6
15 changed files with 222 additions and 26 deletions
8
Python/etc/default/openvpn
Normal file
8
Python/etc/default/openvpn
Normal file
|
@ -0,0 +1,8 @@
|
|||
# -*- coding: utf-8; mode: python -*-
|
||||
|
||||
header("Configuration des tunnels a lancer par defauts")
|
||||
|
||||
if has("external"):
|
||||
@AUTOSTART = "main rescue"
|
||||
else:
|
||||
@AUTOSTART = "external"
|
30
Python/etc/openvpn/external.conf
Normal file
30
Python/etc/openvpn/external.conf
Normal file
|
@ -0,0 +1,30 @@
|
|||
# -*- coding: utf-8; mode: python -*-
|
||||
|
||||
include("ip")
|
||||
|
||||
header("Configuration du tunnel vers les serveurs a 'exterieur")
|
||||
|
||||
print """
|
||||
daemon tun-ovh
|
||||
dev tun-ovh
|
||||
|
||||
tls-server
|
||||
ca /etc/ssl/certs/root.pem
|
||||
cert /etc/ssl/certs/vpn.pem
|
||||
tls-verify "/usr/share/openvpn/verify-cn ovh.vpn.crans.org"
|
||||
key /etc/ssl/private/vpn.pem
|
||||
|
||||
log-append /var/log/openvpn/external.log
|
||||
|
||||
port 1194
|
||||
|
||||
ifconfig %s %s
|
||||
|
||||
ping-timer-rem
|
||||
keepalive 10 60
|
||||
persist-tun
|
||||
|
||||
verb 3
|
||||
|
||||
dh /etc/openvpn/dh1024.pem
|
||||
""" % (admipof("komaz"), admipof("ovh"))
|
35
Python/etc/openvpn/main.conf
Normal file
35
Python/etc/openvpn/main.conf
Normal file
|
@ -0,0 +1,35 @@
|
|||
# -*- coding: utf-8; mode: python -*-
|
||||
|
||||
include("ip")
|
||||
|
||||
header("Configuration du tunnel vers la connexion principale")
|
||||
|
||||
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/main.log
|
||||
|
||||
port 1194
|
||||
|
||||
ifconfig %s %s
|
||||
|
||||
ping-timer-rem
|
||||
keepalive 10 60
|
||||
persist-tun
|
||||
|
||||
verb 3
|
||||
|
||||
dh /etc/openvpn/dh1024.pem
|
||||
up /etc/openvpn/up
|
||||
down /etc/openvpn/down
|
||||
up-restart
|
||||
|
||||
remote %s
|
||||
""" % (admipof("ovh"), admipof("komaz"), pubipof("komaz"))
|
35
Python/etc/openvpn/rescue.conf
Normal file
35
Python/etc/openvpn/rescue.conf
Normal file
|
@ -0,0 +1,35 @@
|
|||
# -*- coding: utf-8; mode: python -*-
|
||||
|
||||
include("ip")
|
||||
|
||||
header("Configuration du tunnel vers la connexion principale")
|
||||
|
||||
print """
|
||||
daemon tun-rescue
|
||||
dev tun-rescue
|
||||
|
||||
tls-server
|
||||
ca /etc/ssl/certs/root.pem
|
||||
cert /etc/ssl/certs/vpn.pem
|
||||
tls-verify "/usr/share/openvpn/verify-cn freebox.vpn.crans.org"
|
||||
key /etc/ssl/private/vpn.pem
|
||||
|
||||
log-append /var/log/openvpn/rescue.log
|
||||
|
||||
port 1194
|
||||
|
||||
ifconfig %s %s
|
||||
|
||||
ping-timer-rem
|
||||
keepalive 10 60
|
||||
persist-tun
|
||||
|
||||
verb 3
|
||||
|
||||
dh /etc/openvpn/dh1024.pem
|
||||
up /etc/openvpn/up
|
||||
down /etc/openvpn/down
|
||||
up-restart
|
||||
|
||||
remote %s
|
||||
""" % (admipof("ovh"), admipof("komaz"), pubipof("freebox"))
|
Loading…
Add table
Add a link
Reference in a new issue