Forfatterarkiv: black

redirect of banned users in firewall

the table `macs` have a field `mac` which identifies the banned computer, and a field `status` which identifies the state of the computer. to redirect the users: <pre> for mac in $( echo “SELECT mac FROM macs WHERE status=’banned’;” | … Læs resten

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

failover firewall links

cisco pix: http://www.cisco.com/univercd/cc/td/doc/product/iaabu/pix/pix_61/config/failover.htm openbsd with pfsync + CARP: http://www.countersiege.com/doc/pfsync-carp/ openbsd with pfsync, but not CARP: http://www.seattlecentral.edu/~dmartin/docs/bridge.html (CARP doesn’t work with bridges)

Udgivet i Knowledge Base, Links, Old Base | Skriv en kommentar

php4 on apache2 and IIS on windows xp

stop IIS and Apache extract the zip file to c:\programmer\php copy c:\programmer\php\php4ts.dll to c:\windows\system32\ copy c:\programmer\php\php.ini-recommended to c:\windows\php.ini edit php.ini. Put: doc_root = c:\webroot extension_dir = “c:\programmer\php\extensions\” session.save_path = c:\Inetpub\tmp\ if on IIS: browscap = c:\windows\system\inetsrv\browscap.ini done editing php.ini create … Læs resten

Udgivet i Knowledge Base, Old Base, Windows | Skriv en kommentar

Partyrouterens pauseskaerm

#!/bin/sh while (true) do HARSK=`echo $HARSK | md5sum`; echo -ne “\033[32m`echo $HARSK | cut -d- -f1`\033[0m”; done;

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

Normal POP3/SMTP operation

Reff til post nr 33 af BT Normal SMTP operation Vi telnetter til POP3 serveren: bash-2.05b$ telnet 192.168.10.180 110 Trying 192.168.10.180… Connected to 192.168.10.180. Escape character is ‘^]’. +OK <2833.1090064063@unifix.org> user test@test.com +OK pass testpass +OK stat +OK 0 0 … Læs resten

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

dansk locale setting i freebsd

for at sætte system standard til ISO-8859-1 og dk keyboard i /etc/rc.conf: keymap=”danish.iso” font8x16=”iso-8×16″ font8x14=”iso-8×14″ font8x8=”iso-8×8″ i /etc/profile LANG=da_DK.ISO8859-1 MM_CHARSET=ISO-8859-1 export LANG MM_CHARSET for at sætte brugerklasse til dansk (ikke nødvendig hvis system standard er sat): i /etc/login.conf danish|Danish user … Læs resten

Udgivet i FreeBSD, Knowledge Base, Old Base | Skriv en kommentar

using updatedb on freebsd – slocate

the updatedb program is named locate.updatedb to fix: cd /sbin ln -s /usr/libexec/locate.updatedb updatedb updatedb

Udgivet i FreeBSD, Knowledge Base, Old Base | Skriv en kommentar

sparc console cable and other cables

ethernet kabler: http://www.ertyu.org/~steven_nikkel/ethernetcables.html diverse console kabler http://www.pitt.edu/~bdgregg/Cable_Wireing.html sparc console kabel: fra PC til sparc fra lille 9 pins hun til stort 25 pins han fra til 1 8 2 2 3 3 4 20 5 7 6 6 7 4 … Læs resten

Udgivet i Knowledge Base, Old Base, Sparc | Skriv en kommentar

how to make hotplug on slackware not plug in pci

just remove the file /etc/hotplug/pci.rc mv /etc/hotplug/pci.rc /etc/hotplug/pci.rc.old (the script only looks for *.rc) should also work with pcmcia =D

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

bt keder sig meget

eject /mnt/cdrom/ && sleep 5 && mount /mnt/cdrom/ && installpkg /mnt/cdrom/slackware/n/tcpdump-3.8.3-i486-2.tgz && eject /mnt/cdrom

Udgivet i Humor, Knowledge Base, Old Base, Shellscript | Skriv en kommentar