endian

warning: Creating default object from empty value in /data/web/1/000/027/003/273448/htdocs/panticz.de/modules/taxonomy/taxonomy.pages.inc on line 33.

Endian configuration

VPN > Advanced > lobal push options
Push these nameservers: check
Push domain: check

Daily reboot Endian

cat <<EOF> /etc/cron.daily/reboot
#!/bin/sh
 
shutdown -r 1:30:00
EOF
 
chmod a+x /etc/cron.daily/reboot
 
 /etc/init.d/fcron restart

XEN ENDIAN

# delegate nic for endian domain
http://www.panticz.de/xen_pci_delegation
 
DOMAIN_NAME=fw
#URL=http://dfn.dl.sourceforge.net/sourceforge/efw/EFW-COMMUNITY-2.2-rc3-200810071617.iso
URL=http://download.sourceforge.net/sourceforge/efw/EFW-COMMUNITY-2.2-200905211506.iso
URL=http://download.sourceforge.net/sourceforge/efw/EFW-COMMUNITY-2.5.1-201201261800.iso
# test # http://netcologne.dl.sourceforge.net/project/efw/Development/EFW-2.4-RESPIN/EFW-COMMUNITY-2.4-201005280528-RESPIN.iso
 
# download endian
wget ${URL} -P /tmp
 
# create lvm image
lvcreate --name fw-disk --size 8G vg1
#loset

Create XEN Endian Firewall Domain (old)

#!/bin/sh
 
# filename: createXenImageEndian.sh
 
# download endian
wget http://downloads.sourceforge.net/efw/EFW-COMMUNITY-2.1.2-200707101220.iso -P /tmp
 
# lvm version
losetup /dev/loop0 /tmp/EFW-COMMUNITY-2.1.2-200707101220.iso
 
# create image for endian
mkdir -p /home/xen/domains/fw
dd if=/dev/zero of=/home/xen/domains/fw/disc.img bs=1G count=4
 
# creae endian installation config
cat <<EOF> /etc/xen/fw-inst
kernel='/usr/lib/xen-ioemu-3.1/boot/hvmloader'
builder='hvm'
memory='128'
name='fw-inst'
device_model='/usr/lib/xen-ioemu-3.1/bin/qemu-dm'
boot='d'
disk=['file:/home

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

Syndicate content