IPCop & VPN

IPCop
Homepage: http://www.ipcop.org/

OpenVPN for IPCop (ZERINA)
Homepage: http://www.zerina.de/

OpenVPN GUI for Windows
Homepage: http://openvpn.se/

Manualy restart connection to ISP every 24h
Login over SSH to your IPCop
ssh -P 222 YOUR_IP_COP_IP

Open crontab to edit
fcrontab -e

Add this lines
############### CUT ################
# restart red interface every 24h
0 2 * * * /etc/rc.d/rc.red stop
1 2 * * * /etc/rc.d/rc.red start
############### CUT ################

Restart cron
kill `ps -e | grep fcron | cut -f1 -d"?"`; fcron

Install OpenVPN
Enable SSH Acces
login to IPCop WebGui
System > SSH Access > Check SSH Access
Save

login with SCP to IPCop
copy ZERINA-0.9.7a13-Installer.tar.gz to /tmp

login with ssh to IPCop
cd /tmp
tar -xzf ZERINA-0.9.7a13-Installer.tar.gz
./install
rm /tmp/*

# new version
http://dl.panticz.de/endian/reconnect

echo < /sbin/reconnect
#/bin/sh

# disconnect
/etc/rc.d/uplinks stop main
sleep 5

# connect
/etc/rc.d/uplinks start main
sleep 5

# update dyndns
/usr/local/bin/setddns.pl
EOF

chmod a+x /sbin/reconnect
1