Skip to content
View Kommunikationsnetze2.md

Datenkommunikation im lokalen Bereich

  • Adressierung: global eindeutige 48-bit lange MAC-Addresse

Classical Ethernet

  • Funktionsweise:
    • 10 Mbps
    • alle Teilnehmer passiv auf einem langen Koaxialkabel
    • Übertragung im Basisband mit digitalen Zeitmultiplex
View mitmproxy-loopback.py
from libmproxy.protocol.http import decoded
import socket
import select
import threading
TCP_IP = '127.0.0.1'
TCP_PORT = 10000
BUFFER_SIZE = 1024
listen = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
View systemd-openvpn-suspend.sh
#!/bin/sh
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
if ! which systemctl >/dev/null; then
echo "No systemctl found, systemd is required for this files" 1>&2
exit 1
View lxc-foreach
#!/bin/bash
# replace this with your rootfs
lxc_root=/data/containers
for n in `lxc-ls`; do
name=n
r=$lxc_root/$n/rootfs
root=$r
c=$lxc_root/$n/config
config=$c
View update-owncloud.sh
#!/bin/bash
VERSION="5.0.12"
set -e
[[ -e "owncloud-$VERSION.tar.bz2" ]] || wget "http://download.owncloud.org/community/owncloud-$VERSION.tar.bz2"
tar -xf "owncloud-$VERSION.tar.bz2"
#find "owncloud" -type d -exec chmod +rx {} \;
cp -r ../cloud/config "owncloud"
chown -R http:http "owncloud"
mv "owncloud" "owncloud-$VERSION"
View botcommands.py
#!/usr/bin/env python
import socket
import subprocess
import os, sys
MPV_SOCKET = "/tmp/mpvsocket"
CIDER = "cider.hq.c3d2.de"
IS_PYTHON2 = sys.version_info < (3, 0)
if IS_PYTHON2:
View bgp-filter.rb
#!/usr/bin/env ruby
# Author: Mic92 <joerg@higgsboson.tk>
# License: WTFPL (C) 2015
#
# TODO
# - support openbgp
require "optparse"
if (RUBY_VERSION.split(/\./) <=> ["1","9","0"]) == -1
View gitolite-anongit
#/bin/sh
# save as /usr/local/bin/gitolite-anongit
# and chmod +x /usr/local/bin/gitolite-anongit
# ForceCommand may depend on the gitolite distribution
/usr/share/gitolite/gl-auth-command anongit "$@"
View evenet
172.23.75.0/26 255.255.255.192 172.23.75.0 - 172.23.75.63 172.23.75.1 - 172.23.75.62 62 # eve 
172.23.75.64/26 255.255.255.192 172.23.75.64 - 172.23.75.127 172.23.75.65 - 172.23.75.126 62 # mobile Hosts
172.23.75.128/26 255.255.255.192 172.23.75.128 - 172.23.75.191 172.23.75.129 - 172.23.75.190 62 # alfred(?) 
172.23.75.192/26 255.255.255.192 172.23.75.192 - 172.23.75.255 172.23.75.193 - 172.23.75.254 62 # zu Hause
View bird.conf
router id 172.23.75.1;
log syslog all;
function is_default() {
return (net ~ [0.0.0.0/0]);
}
protocol kernel kernel_master {
scan time 20;
Something went wrong with that request. Please try again.