This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
de:openwrt [2012/06/01 21:02] – Externe Bearbeitung 127.0.0.1 | de:openwrt [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== OpenWRT ====== | ||
- | **Beschreibung** | ||
- | |||
- | Freie Router Firmware auf Linux-Basis. Mit kompletter Weboberfläche ( LuCi ) zur Administration. | ||
- | |||
- | |||
- | Bisher verwendete Router: | ||
- | |||
- | * Fon 2100 | ||
- | * Linksys WRT54GL | ||
- | * Linksys WRT350N v2 | ||
- | |||
- | ====== Befehle ====== | ||
- | |||
- | ===== mtd ===== | ||
- | |||
- | | ||
- | mtd unlock rootfs_data | ||
- | | ||
- | |||
- | **Beschreibung** | ||
- | |||
- | Macht das root-Filesystem beschreibbar | ||
- | |||
- | ===== iftop ===== | ||
- | |||
- | |||
- | iftop -i eth0.1 | ||
- | | ||
- | **Beschreibung** | ||
- | |||
- | Zeigt den Netzwerktraffic hübsch im Terminal an | ||
- | |||
- | |||
- | ====== Setup IPtables ====== | ||
- | |||
- | ===== redirect VPN ===== | ||
- | |||
- | **Beschreibung** | ||
- | |||
- | Leitet Anfragen auf den port 1194 auf den VPN-Server weiter. | ||
- | |||
- | |||
- | Folgendes in die / | ||
- | |||
- | |||
- | ## VPN | ||
- | config ' | ||
- | option ' | ||
- | option ' | ||
- | option ' | ||
- | option ' | ||
- | option ' | ||
- | option ' | ||
- | | ||
- | config ' | ||
- | option ' | ||
- | option ' | ||
- | option ' | ||
- | option dest_ip '' | ||
- | option ' | ||
- | | ||
- | | ||
- | ===== ICMP freischalten (erlaube ping von extern/ | ||
- | |||
- | |||
- | config ' | ||
- | option ' | ||
- | option ' | ||
- | option ' | ||
- | option dest_ip '' | ||
- | option ' | ||
- | |||
- | ====== USB Extend Memory ====== | ||
- | |||
- | |||
- | |||
- | Install required packages | ||
- | |||
- | opkg update | ||
- | opkg install kmod-usb2 kmod-usb-storage block-mount block-hotplug kmod-fs-ext4 block-extroot fdisk e2fsprogs | ||
- | |||
- | |||
- | Creating partitions with following command and follow the instroctions shown: | ||
- | |||
- | fdisk /dev/sda | ||
- | |||
- | |||
- | Afterwards the partition table should look like this: | ||
- | |||
- | |||
- | fdisk -l | ||
- | |||
- | Device Boot Start | ||
- | / | ||
- | / | ||
- | |||
- | |||
- | |||
- | |||
- | Create filesystem: | ||
- | |||
- | mkswap / | ||
- | mkfs.ext3 /dev/sda2 | ||
- | |||
- | mount swap: | ||
- | |||
- | swapon /dev/sda1 | ||
- | |||
- | Create folder to mount USB Stick | ||
- | |||
- | mkdir -p /mnt/shares | ||
- | |||
- | Mount Partition: | ||
- | |||
- | mount -t ext3 /dev/sda1 /mnt/shares -o rw,sync | ||
- | |||
- | edit / | ||
- | |||
- | config ' | ||
- | option ' | ||
- | option ' | ||
- | option ' | ||
- | option ' | ||
- | option ' | ||
- | |||
- | Copy root to /mnt/shares | ||
- | |||
- | tar -C /overlay -cvf - . | tar -C /mnt/sda2 -xf - | ||
- | |||
- | ====== Install BackupPC ====== | ||
- | |||
- | **Prepare for install** | ||
- | |||
- | opkg install perl | ||
- | opkg list | grep -o -E perlbase-\\w+ | xargs opkg install | ||
- | |||
- | **Configure and Install** | ||
- | |||
- | Download [[http:// | ||
- | |||
- | Configure BackupPC | ||
- | |||
- | ./ | ||
- | |||
- | Set permissions | ||
- | |||
- | chmod +x / | ||
- | chmod 775 / | ||
- | |||
- | vi / | ||
- | |||
- | < | ||
- | #!/bin/sh / | ||
- | # Startup init script for BackupPC for OpenWrt | ||
- | |||
- | START=95 | ||
- | STOP=10 | ||
- | |||
- | start() { | ||
- | / | ||
- | } | ||
- | |||
- | stop() { | ||
- | / | ||
- | } | ||
- | |||
- | restart() { | ||
- | stop | ||
- | start | ||
- | } | ||
- | |||
- | reload() { | ||
- | / | ||
- | } | ||
- | </ | ||
- | |||
- | |||
- | ===== ssh key exchange ===== | ||
- | |||
- | dropbearkey -t rsa -f ~/ | ||
- | ====== mdadm ====== | ||
- | |||
- | http:// | ||
- | |||
- | ====== openvpn ====== | ||
- | |||
- | http:// |