network

Ubuntu preseed net install CD

#!/bin/bash
 
# get original ubuntu netboot iso
# wget http://archive.ubuntu.com/ubuntu/dists/karmic/main/installer-i386/current/images/netboot/mini.iso -P /tmp
wget http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-i386/current/images/netboot/mini.iso -P /tmp
 
# copy files
sudo mount /tmp/mini.iso /mnt/ -o loop
mkdir /tmp/mini_new
cp /mnt/* /tmp/mini_new/
sudo umount /mnt
 
# create config file
chmod a+w /tmp/mini_new/*
wget http://www.panticz.de/pxe/preseed/isolinux.cfg -O /tmp/mini_new/isolinux.cfg
###wget http://www.heise.de/ct/motive/image/1485/p800.jpg -O /tmp/mini

Configure network bridge

#!/bin/bash
 
# backup original network config
mv /etc/network/interfaces /etc/network/interfaces.org
 
# configure network bridge for xen
cat <<EOF> /etc/network/interfaces
auto lo
iface lo inet loopback
 
# eth0 (internal lan)
auto eth0 eth1 xenbr1
iface eth0 inet static
        address 192.168.1.111
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.5
        #post-up ethtool -K eth0 tx off
 
# eth1 (DSL)
iface eth1 inet manual
        up ifconfig eth1 0.0.0.0 promisc up
 
# xenbr1 (bridge between second nic

PXE Net Boot

 

OpenVPN connect to network with same ip range

#!/bin/bash
 
# delete routing for whole network
sudo route del -net 192.168.1.0 netmask 255.255.255.0 dev tap0
 
# add route to hosts
for ip in {30..50}; do
	sudo route add 192.168.1.${ip} dev tap0
done

wep

airmon-ng start wlan0 6
wesside-ng -i wlan0

#!/bin/sh

export BSSID=00:1A:4F:9A:6F:9D
export CHANNEL=11

rmmod ipw2200
modprobe ipw2200 rtap_iface=1
iwconfig eth1 mode managed channel $CHANNEL key s:password ap $BSSID
#ifconfig eth1 hw ether 00:a1:b2:c3:d4:e5
ifconfig eth1 up
ifconfig rtap0 up

#########
rmmod ipw2200
modprobe ipw2200 rtap_iface=1
iwconfig eth1 ap $BSSID
iwconfig eth1 key s:fakekey
iwconfig eth1 mode managed
ifconfig eth1 hw ether 00:19:3E:00:3E:36
iwconfig eth1 channel $CHANNEL
ifconfig eth1 up
ifconfig rtap0 up
#########

memtest86+ PXE boot

#!/bin/bash
 
# check for current version
# http://www.memtest.org/#downiso
 
URL=http://www.memtest.org/download/2.01/memtest86+-2.01.bin.gz
 
wget ${URL} -P /tmp
gzip -d /tmp/memtest86+-*.bin.gz
 
mkdir /tftpboot/memtest
mv /tmp/memtest86+-*.bin /tftpboot/memtest/
cd /tftpboot/memtest
ln -s memtest86+-*.bin memtest86+
 
echo "confiure tftpboot..." 
cat <<EOF>  /tftpboot/pxelinux.cfg/memtest86+.conf
LABEL linux
   MENU LABEL memtest86+
   KERNEL /memtest/memtest86+
EOF
 
echo "MENU INCLUDE pxelinux.cfg/memtest86+.conf" >> /tftpboot/pxelinux.cfg/default

VNC remote help

#
# SERVER
#
# install x11vnc and start in listener mode
sudo apt-get install x11vnc
x11vnc -noxdamage -once -timeout 30 -connect "panticz.dyndns.org:5500"
 
#
# Linux client
#
# update your dyndns.org ip and enable port forward for 5500
#https://www.dyndns.com/account/services/hosts/
sudo ddclient
vncviewer -listen
 
 
#
# Windows client
#
http://dl.dropbox.com/u/4170695/www/VNC4.zip
 
# LINKS
# https://help.ubuntu.com/community/x11vnc
# http://www.heise.de/ct/ftp/08/07/194/
# http://www.heise.de/netze/X-Window-Desktop-fernsteuern-per-Shell-Skript-und-VNC--/artikel/108532

RaLink RT2500 (rt2500pci)

# fix driver / config bug in Ubuntu Hardy (low bandwidth)
iwconfig wlan0 rate 54M
 
# Links
http://wiki.ubuntuusers.de/WLAN/Ralink

OpenVPN

OpenVPN
http://www.vpnforum.de/wiki/index.php/Routing
http://www.vpnforum.de/

Connect to Client in same IP range
route add 192.168.1.31 dev tap0

extract p12 file
openssl pkcs12 -nocerts -in *.p12 -out userkey.pem
openssl pkcs12 -nokeys -clcerts -in *.p12 -out usercert.pem
openssl pkcs12 -nokeys -cacerts -in *.p12 -out userca.pem

OpenVPN Gui (Client for Windows)
http://man.chinaunix.net/linux/efw-admin-guide-html-chunk/efw.vpn.openvpn.html

Networks

Do you like this page? Then support it. Please click the AD below and visit the sponsor. Thank you!

Syndicate content