Månedsarkiv: september 2007

Cisco Portforwarding (nat)

enable conf t ip nat inside source static tcp 192.168.1.254 22 10.1.0.128 22 Sends incomming connection on ip 10.1.0.128(the router) port 22 go to 192.168.1.254(the desired server to receive the connection) port 22

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

Installing Nagios 2 on Debian 4

# apt-get install nagios2 # htpasswd -c /etc/nagios2/htpasswd.users mike New password: Re-type new password: Adding password for user mike

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

PCI Bus limitations

backup ~ # hdparm -tT /dev/md1 /dev/md1: Timing cached reads: 2232 MB in 2.00 seconds = 1115.98 MB/sec Timing buffered disk reads: 404 MB in 3.02 seconds = 133.93 MB/sec backup ~ # df -H | grep md1 /dev/md1 2,0T … Læs resten

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

Cisco 1760 config: NAT from 10mbit wan interface to 100mbit lan interface with DHCP Server

Using 1334 out of 29688 bytes ! ! Last configuration change at 08:57:51 UTC Sat Mar 4 2006 ! NVRAM config last updated at 09:00:05 UTC Sat Mar 4 2006 ! version 12.2 service timestamps debug datetime msec service timestamps … Læs resten

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

create a list of java source files from a recursive directory

I use this to produce a list of all java source files I need to build. (Need GnuWin32 grep and coreutils packages) dir *.java /s /B | grep -i java | cut -d\ -f7- > srcfiles.txt

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

Cisco 1760 DHCP Server (Untested)

conf t service dhcp ip dhcp pool 192.168.1.0/24 network 192.168.1.0 255.255.255.0 default-router 192.168.1.1 dns-server 192.168.1.5 192.168.1.6 exit ip dhcp excluded-address 192.168.1.1 192.168.1.199 ip dhcp excluded-address 192.168.1.241 192.168.1.255 ^Z

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

IOS Firewall

http://articles.techrepublic.com.com/5100-1035-1040244.html

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

Setting up NAT on Cisco 1760

Using 1011 out of 29688 bytes ! ! Last configuration change at 17:30:36 UTC Fri Feb 24 2006 ! NVRAM config last updated at 17:32:38 UTC Fri Feb 24 2006 ! version 12.2 service config service timestamps debug datetime msec … Læs resten

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

MCN Net V 1.0

vlan database vlan 2 name SKNET vlan 21 name MCN-DMZ vlan 22 name MCN exit conf t in fa0/1 switchport mode trunk switchport trunk encapsulation dot1q switchport trunk allowed vlan all exit in fa0/2 switchport mode trunk switchport trunk encapsulation … Læs resten

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

Recovering a partition table or masterblock after weird crashes

If your boss accidently overwrites the first few megabytes of you harddrive, both the partition table, and the superblock, all is lost. Or is it? Boot the machine in any way you can, and if it’s not already there, get … Læs resten

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