Re: [Actux] SIP derrière le parefeu de l'université

[ Thread Index | Date Index | More lists.tuxfamily.org/actux Archives ]


Config de base pour OpenVPN:

Côté serveur:

#-------------vpn.conf---------------
up vpn.sh
script-security 2

dev tun0
port 443
proto tcp-server
ifconfig 192.168.10.1 192.168.10.2

comp-lzo
secret /etc/openvpn/vpn.key

user nobody
group nogroup

keepalive 10 60
ping-timer-rem
persist-tun
persist-key

log /var/log/openvpn.log
verb 3
#################


#-------------vpn.sh-----------------
#!/bin/sh
sysctl net.ipv4.conf.all.forwarding=1
iptables -t nat -F
iptables -t nat -A POSTROUTING -s 192.168.10.0/24 -d ! 192.168.10.0/24
-j MASQUERADE
##################


Côté client:

#-----------------vpn.conf--------------------
dev tun0

remote 88.164.242.235
proto tcp-client
port 443

ifconfig 192.168.10.2 192.168.10.1

comp-lzo
secret /etc/openvpn/vpn.key

user nobody
group nogroup

keepalive 10 60
ping-timer-rem
persist-tun
persist-key

log /var/log/openvpn.log
verb 3

# pour utiliser le vpn comme route par defaut
#redirect-gateway
redirect-gateway def1
###################


Voilà, c'est tout!


-- 
Isabelle STEVANT
http://actux.fr  -  http://jstevant.free.fr  -  http://e17artwork.tuxfamily..org

---
---
Liste Actux, http://www.actux.fr


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/