Månedsarkiv: februar 2003

irc bouncer

iptables -t nat -A PREROUTING -p tcp -d 10.2.1.1 –dport 16667 -j DNAT –to 80.161.143.54:6667  

Udgivet i IRC, Knowledge Base, Linux, Networking, Old Base | Skriv en kommentar

Script til SSH tuneller

Ssh should be configured to log in with keyfiles(not password) And then this script will do the trick, should explain itself. —– #!/bin/sh SERVER_HOSTNAME=geekhosting.dk SERVER_USERNAME=root SERVER_IFIPADDR=10.20.1.1 CLIENT_IFIPADDR=10.20.1.2 MYSUBNET=10.1.0.0/16 LOCAL_SSH_OPTS=”-P” PATH=/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11/: PPPD=/usr/sbin/pppd SSH=/usr/bin/ssh ROUTE=/sbin/route if ! test -f $PPPD ; then … Læs resten

Udgivet i Knowledge Base, SSH | Skriv en kommentar

Script til ssh tuneller

Ssh should be configured to log in with keyfiles(not password) And then this script will do the trick, should explain itself. #!/bin/sh SERVER_HOSTNAME=geekhosting.dk SERVER_USERNAME=root SERVER_IFIPADDR=10.20.1.1 CLIENT_IFIPADDR=10.20.1.2 MYSUBNET=10.1.0.0/16 LOCAL_SSH_OPTS=”-P” PATH=/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11/: PPPD=/usr/sbin/pppd SSH=/usr/bin/ssh ROUTE=/sbin/route if ! test -f $PPPD ; then echo … Læs resten

Udgivet i Uncategorized | Skriv en kommentar

Automatisk baggrunds rotate

cycle.pl: #!/usr/bin/perl $path = “/usr/X11R6/share/bgrotate”; open FIL,”$path/current”; $current = <FIL>; close FIL; open FIL,”$path/cycle”; $dat = <FIL>; $first = $dat; while ($dat ne $current) { $dat = <FIL>; } unless ($next = <FIL>) {$next = $first;}; close(FIL); $res = system … Læs resten

Udgivet i Knowledge Base, Linux, Old Base, Workstation | Skriv en kommentar

BT’s meget fucked router

————— | geekhosting | (route 10.2.0.0/16 gw 10.20.1.5) ————— -|- pppX 10.20.1.5 | | (Internet) | | ————— | | router | (route 10.0.0.0/8 gw 10.2.1.1) ————— -|- LANIF 10.2.1.2 | | | -|- pppY 10.20.1.6 -|- eth0 10.2.1.1 ————— … Læs resten

Udgivet i Knowledge Base, Linux, Networking, Old Base | Skriv en kommentar

NAT omskrivning mellem to net

(WAN) netmask 10.0.0.0/8 geekhosting.dk route add -net 10.168.10.5 gw 10.20.1.3 pppX 10.20.1.3 –|– | | pppY 10.20.1.4 –|– netmask 10.168.10.0/24 cyberfamily.dk | |—————| ————— ————— | prerouting | | postrouting | iptables -A PREROUTING -t nat -s 10.0.0.0/8 -d 10.168.10.5 … Læs resten

Udgivet i Knowledge Base, Linux, Networking, Old Base, Uncategorized | Skriv en kommentar

Uni-fix ip range

10.20.1.1 loves.fujang.dk remote 10.20.1.2 loves.fujang.dk lokal 10.20.1.3 cyberfamily.dk remote 10.20.1.4 cyberfamily.dk lokal 10.20.1.5 btworld.dk remote 10.20.1.6 btworld.dk lokal 10.20.1.7 morten.lan remote 10.20.1.8 morten.lan lokal 10.20.1.9 pre.zaft.dk remote 10.20.1.10 pre.zaft.dk lokal 10.20.1.11 jonny remote 10.20.1.12 jonny local 10.20.0.0/16 tunnels 10.0.0.0/16 euroform … Læs resten

Udgivet i Knowledge Base | Skriv en kommentar

Java in mozilla on slack

install the mozilla-1.2.1 pakage from /slackware/xap in slackware-current install the j2re-1_4_1_01 package from /extra/java2-runtime-environment in slackware-current have fun playing minigolf at http://www.jippii.dk/

Udgivet i Knowledge Base | Skriv en kommentar

Unifix party firewall

#!/bin/sh # default iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT # flush iptables -t filter -F INPUT iptables -t filter -F FORWARD iptables -t filter -F OUTPUT iptables -t nat -F PREROUTING iptables -t nat … Læs resten

Udgivet i Knowledge Base, Linux, Networking, Old Base | Skriv en kommentar