Thanks both,
Now I have a working system. This is the siteA configuration:
# cat /etc/openvpn/vpn.conf
remote siteB.domain.net
float
dev tun
proto udp
ifconfig 10.0.0.1 10.0.0.2
persist-tun
persist-local-ip
persist-remote-ip
comp-lzo
ping 15
secret /etc/openvpn/static.key
script-security 2
route-up "/etc/openvpn/route.sh"
log-append /var/log/openvpn.log
verb 1
# cat /etc/openvpn/route.sh
#!/bin/sh
/sbin/ip route add 192.168.2.0/24 dev ${dev} src 192.168.1.10
I had to add "script-security 2" to the configuration tu run the
script. Now, if I reboot the servers, it works well.
Need I add any configuration to delete the route if the tunnel goes down?
Do you recommend any other changes?
Thank you very much for you help.
Best 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