Kategoriarkiv: Networking

Lav dit eget CDN (Content Delivery Network)

Hvis du har mange statiske filer som folk tit downloader kan det give mening at opbygge en speciel konstruktion til formålet kaldet et Content Delivery Network, som i princippet blot er en række servere optimeret til at levere ligepræcis det … Læs resten

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

Linux IPTables double NAT, SNAT / DNAT, portforwarding without default gateway

#!/bin/bash # eth1 – inet – 195.184.117.131 # We asume that eth0 is on a private RFC1918 lan on which we are connected to as an ordinary client. # we also asume that eth1 is connected to the internet with … Læs resten

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

SSL SMTP operation

% perl -MMIME::Base64 -e ‘print encode_base64(“\000base\@example.net\0001234abcd”)’ AGJhc2VAZXhhbXBsZS5uZXQAMTIzNGFiY2Q= % telnet 1.2.3.4 25 220 smtp.example.net NO UCE ESMTP ehlo testing 250-smtp.example.net NO UCE 250-STARTTLS 250-PIPELINING 250 8BITMIME quit % openssl s_client -starttls smtp -crlf -connect 1.2.3.4:25 220 a.mx.jms1.net NO UCE ESMTP ehlo … Læs resten

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

HTTP 301 Redirects med php

For at teste hvilken type redirect en given side laver: @ telnet localhost 80 Trying 127.0.0.1… Connected to localhost. Escape character is ‘^]’. GET / HTTP/1.1 Host: lcauto.dk HTTP/1.1 302 Found Date: Sat, 23 Aug 2008 23:33:49 GMT Server: Apache/2.2.3 … Læs resten

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

Nulstil alle porte på en Cisco 3550

interface FastEthernet0/1 no switchport no ip address exit interface FastEthernet0/2 no switchport no ip address exit interface FastEthernet0/3 no switchport no ip address exit interface FastEthernet0/4 no switchport no ip address exit interface FastEthernet0/5 no switchport no ip address exit … Læs resten

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

Cisco 2950 – STP With Uplinkfast, trunks and VLans

no service password-encryption hostname HOSTNAME enable secret 5 $ENCRYPTED PASSWORD/ enable password UNECRYPTED PASSWORD ip subnet-zero vtp domain pre-dmz vtp mode transparent spanning-tree mode pvst no spanning-tree optimize bpdu transmission spanning-tree extend system-id spanning-tree uplinkfast no spanning-tree vlan 1 vlan … Læs resten

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

Installing an alphaweb server

********************* Setup etch backports: ********************* echo “deb http://www.backports.org/debian etch-backports main contrib non-free” >> /etc/apt/sources.list cat >> /etc/apt/preferences << EOF Package: * Pin: release a=etch-backports Pin-Priority: 999 EOF wget -O – http://backports.org/debian/archive.key | apt-key add – apt-get update *************************** Setup webserver, … Læs resten

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

Simple iptables-firewalling the Debian way

The script is self explanatory, and if you dont understand it go read some newbie-guide to iptables, otherwise place the script in /etc/init.d name it firewall and run: update-rc.d rc.firewall defaults 19 And then you are ready to go 🙂 … Læs resten

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

Installing mailserver on Debian

### Install packages needed: apt-get install apache2 mysql-server libapache2-mod-php5 php5-mysql postfix postfix-mysql courier-authlib-mysql courier-imap courier-pop ### Answers: Create Web Based Configuration: NO General type of configuration: Internet Site Mail name: mail02.ar.mcn.dk ### Run this to edit /etc/postfix/main.cf: postconf -e myhostname=mail02.ar.mcn.dk … Læs resten

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

Cisco 1760 Config with CyberCity G.SHDSL Config

! To Apply this config, alter the following things: ! * CyberCity DSL Password ! * Telnet Password ! * Enable password ! * Access-list for telnet access. ! ! Then paste the commands into the console terminal, ! after … Læs resten

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