Kategoriarkiv: Networking

Boundling NIC’s in FreeBSD

ckh #!/bin/sh ckh # Configure NICs as up and load kernel module ckh ifconfig vr0 up ckh ifconfig vr1 up ckh kldload ng_ether.ko ckh # Plumb notes together ckh ngctl mkpeer vr0: one2many upper one ckh ngctl connect vr0: vr0:upper … Læs resten

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

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

DHCP -> A,PTR -> DNS (ics)

This is an example for a private /24 network prefixed width 10.10.10. With a dhcp area from 1-50 and server ip 254 and admin pc 100. First dhcpd.conf: option domain-name “lan.company.dk”; option domain-name-servers 10.10.10.254; default-lease-time 600; max-lease-time 7200; authoritative; ddns-update-style … Læs resten

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

Creative port forwarding in FreeBSD (multivnc)

We needed some dynamic forwarding in FreeBSD cd /usr/ports/sysutils/socket make install We needed to forward some vnc vbcafe# echo vnc 5900/tcp >> /etc/services vbcafe# echo vnc1 5901/tcp >> /etc/services vbcafe# echo vnc2 5902/tcp >> /etc/services vbcafe# echo vnc3 5903/tcp >> … Læs resten

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

dhcp reverse lookup

Maskiner som requester dhcp og angiver deres hostadresse kan der laves lookup paa med flg. script. Hvis ikke det virker er det hoejest sandsynligt fordi dit os kalder dhcpd paa en anden maade en min freebsd box goer(std opsat) saa … Læs resten

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

Cafe firewall FreeBSD

==== rc.conf =============================================== defaultrouter=”192.168.10.1″ hostname=”npcafe.secure-net.dk” ifconfig_vr0=”inet 10.10.10.254 netmask 255.255.255.0″ ifconfig_sis0=”inet 192.168.10.199 netmask 255.255.255.0″ gateway_enable=”YES” sshd_enable=”YES” usbd_enable=”YES” apache2_enable=”YES” named_enable=”YES” smbd_enable=YES nmbd_enable=YES dhcpd_enable=YES dhcpd_ifaces=vr0 firewall_enable=YES natd_enable=”YES” natd_interface=”sis0″ ==== firewall ============================================= #!/bin/sh case “$1” in start) echo Starting firewall ipfw -f flush natd … Læs resten

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

ISO/OSI Network Model / TCP/IP Network Model

ISO/OSI Network Model The standard model for networking protocols and distributed applications is the International Standard Organization’s Open System Interconnect (ISO/OSI) model. It defines seven network layers. Layer 1 – Physical Physical layer defines the cable or physical medium itself, … Læs resten

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

Record honeypot activity

Keep track of everything that happens on your honeypot. Once an attacker has fallen prey to your honeypot and gained access to it, it is critical that you monitor all activity on that machine. By monitoring every tiny bit of … Læs resten

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

Using honneyd

Use honeyd to fool would-be attackers into chasing ghosts. As the saying goes, you will attract more flies with honey than with vinegar. (I’ve never understood that saying; who wants to attract flies, anyway?) A honeypot is used to attract … Læs resten

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

Apache IDS

Protect your web server and dynamic content from intrusions. Detecting intrusions that utilize common protocols and services is a job that a network intrusion detection system is well suited for. However, due to the complexity of web applications and the … Læs resten

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