Hello,

I am trying to configure a site to site OpenVPN link between 2 Debian
Jessie servers.

site1 is 192.168.1.10/24
site2 is 192.168.2.10/24

I installed this way:

apt-get install openvpn
openvpn --genkey --secret /etc/openvpn/static.key
scp /etc/openvpn/static.key site2:/etc/openvpn/static.key
cat /etc/openvpn/site1.conf -> http://paste.debian.net/762525/
cat /etc/openvpn/site2.conf -> http://paste.debian.net/762527/
Uncomment AUTOSTART="all" in /etc/default/openvpn
NAT 1194 UDP port to both servers in each routers
If I execute both service, it works:

openvpn /etc/openvpn/site1.conf
openvpn /etc/openvpn/site2.conf

root@site1:~# ping 192.168.2.10 -c 4
PING 192.168.2.10 (192.168.2.10) 56(84) bytes of data.
64 bytes from 192.168.2.10: icmp_seq=1 ttl=64 time=42.9 ms
64 bytes from 192.168.2.10: icmp_seq=2 ttl=64 time=41.7 ms
64 bytes from 192.168.2.10: icmp_seq=3 ttl=64 time=44.2 ms
64 bytes from 192.168.2.10: icmp_seq=4 ttl=64 time=43.1 ms

--- 192.168.2.10 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 41.785/43.018/44.204/0.894 ms

root@site2:~# ping 192.168.1.10 -c 4
PING 192.168.1.10 (192.168.1.10) 56(84) bytes of data.
64 bytes from 192.168.1.10: icmp_seq=1 ttl=64 time=42.2 ms
64 bytes from 192.168.1.10: icmp_seq=2 ttl=64 time=45.0 ms
64 bytes from 192.168.1.10: icmp_seq=3 ttl=64 time=43.7 ms
64 bytes from 192.168.1.10: icmp_seq=4 ttl=64 time=42.0 ms

--- 192.168.1.10 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 42.026/43.267/45.062/1.251 ms

The problem is that I can not start the service with the init script:

# /etc/init.d/openvpn start
[ ok ] Starting openvpn (via systemctl): openvpn.service.

It doesn't start, here is the init script: http://paste.debian.net/762621/

Anyone with OpenVPN and Debian Jessie?

I will appreciate your help.

Kind regards.

-- 
Josu Lazkano

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to