cd /etc/init.d/ ln -s openvpn openvpn.${machin} cd /etc/openvpn openvpn --genkey --secret ${machin}.key vim ${machin}.conf lport 11${IPv4} # Dernier octet de l’IPv4 proto udp6 dev tun secret ${machin}.key daemon ovpn-${machin} ifconfig 172.16.2.${1ereIP} 172.16.2.{2ndIP} rc-service openvpn.${machin} start rc-update add openvpn.${machin} default iptables -A FORWARD -s ${IPMI}/32 -d ${xco}/31 -j ACCEPT -m comment --comment "${machin} ${machine}" iptables -A FORWARD -s ${xco}/31 -d ${IPMI}/32 -j ACCEPT -m comment --comment "${machin} ${machine}" rc-service iptables save