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
|
@ -3,6 +3,6 @@
|
|||
header("Configuration des tunnels a lancer par defauts")
|
||||
|
||||
if has("external"):
|
||||
@AUTOSTART = "main rescue"
|
||||
@AUTOSTART="komaz"
|
||||
else:
|
||||
@AUTOSTART = "external"
|
||||
@AUTOSTART="ovh"
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
# -*- 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"))
|
5
Python/etc/openvpn/freebox.conf
Normal file
5
Python/etc/openvpn/freebox.conf
Normal file
|
@ -0,0 +1,5 @@
|
|||
# -*- coding: utf-8; mode: python -*-
|
||||
|
||||
remote_vpn="titanic"
|
||||
remote="freebox"
|
||||
dump("template/openvpn")
|
4
Python/etc/openvpn/komaz.conf
Normal file
4
Python/etc/openvpn/komaz.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
# -*- coding: utf-8; mode: python -*-
|
||||
|
||||
remote="komaz"
|
||||
dump("template/openvpn")
|
|
@ -1,35 +0,0 @@
|
|||
# -*- 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"))
|
|
@ -1,35 +0,0 @@
|
|||
# -*- 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