Posts with the tag home network

IPv6: Dynamic Routing with Quagga and ospf6d (OSPFv3)

This is largely based on http://unquietwiki.com/tinc_quagga_ipv6.html.

Enabling Quagga and Its Daemons

The installation of Quagga and ospf6d is different on Debian/Ubuntu and on OpenWrt systems. The configuration files can be the same (in structure).

/etc/quagga/daemons (Debian/Ubuntu systems)

zebra=yes
bgpd=no
ospfd=no
ospf6d=yes
ripd=no
ripngd=no
isisd=no
Configuration of OSPF6d

/etc/quagga/ospf6d.conf

password PASSWORD
!! adapter setup :
<span...

Read on

TP-Link TL-SG3210, 8-Port, Managed Switch

Product Name: JetStream™ 8-Port Gigabit L2 Lite Managed Switch with 2 SFP Slots
Product Code: TL-SG3210

This is a cheap 8-port Gigabit switch if you consider its capabilities. It can be configured in many ways via the web interface or (in an automated way) via a CLI interface (Telnet / SSH like)....

Read on

Keeping SSH Tunnels Open Reliably

A (reverse) SSH tunnel can help you being reachable from outside a NATed network or behind a firewall. Keeping the tunnel open when your IP address changes or Internet connection is shaky can be taken care of by autossh. See below for the instructions.

Installation

On Ubuntu / Debian:

sudo apt-get update...

Read on

Make RS232 Serial Devices Accessible via Ethernet

Standards

The RFC 2217 standardizes the transmission of serial connection data via Ethernet, allowing to change remote serial port parameters (such as speed, parity, stop bits) over TCP using NVT (Network Virtual Terminal).

Implementations

Connection between your serial device and the Ethernet

  • YPort - a hardware and software solution (microcontroller AVR ATmega based...

Read on

ENUM

ENUM can be used to find out if you can call someone via VoIP instead of a regular call when all you have is the phone number. It works by sending a DNS like query for the phone number.

Possible ENUM servers are:

  • e164.arpa official!
  • e164.org
  • e164.info
  • enum.org

To query +43 780 004711 on e164.arpa run:

<div...

Read on

Install an Asterisk Server on Debian from Source

https://wiki.asterisk.org/wiki/display/AST/Installing+Asterisk+From+Source

Get Requirements

We need gcc, g++ and some libraries:

sudo apt-get install build-essential libxml2-dev ncurses-dev

Get the source, compile and install

cd ~/Downloads
# get the source code
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.5.0.tar.gz
# untar it
tar -xf asterisk-1.8.5.0.tar.gz
cd asterisk-1.8.5.0
# clean the build directory (of crap from previous runs)
make distclean
# configure and compile Asterisk:
./configure
make
# install Asterisk...

Read on

OpenWrt or DD-WRT on the Buffalo WZR-HP-AG300H

A quite new and powerful alternative to the TP-Link TL-WR1043ND running OpenWrt is the Buffalo WZR-HP-AG300H.

About the Hardware

The Buffalo WZR-HP-AG300H contains a powerful set of hardware, maybe the strongest for SOHO routers currently on the market:

CPU Ram Flash Network WiFi USB Serial JTag
Atheros AR7161@680MHz (MIPS) 128MB 32MB 4+1 using an Atheros AR8316 Gigabit Ethernet switch 2x -...

Read on

Use Synergy on Mac

http://synergy-foss.org/pm/projects/synergy/wiki/UsingSynergy

Install:

cd ~/Downloads
curl -C - -O http://synergy.googlecode.com/files/synergy-1.4.5-MacOSX107-x86_64.dmg
open synergy-1.4.5-MacOSX107-x86_64.dmg
cd /Volumes/Synergy/
cp -r Synergy.app /Applications/

Start the server:

synergys -f --config ~/synergy.conf

where synergy.conf is:

# sample synergy configuration file
#
# comments begin with the # character and continue to the end of line.
# comments may appear anywhere the syntax...

Read on

IPv6 Adresses

Defined in RFC 5156

  • ::1/128 is the loopback address
  • ::/128 is the unspecified address
  • ::FFFF:0:0/96 are the IPv4-mapped addresses (indicating devices that are not IPv6-capable)
  • ::<ipv4-address>/96 are the IPv4-compatible addresses, deprecated!
  • fe80::/10 are the link-local unicast addresses
  • fc00::/7 are the unique-local addresses
  • 2001:db8::/32 are the documentation addresses. They are used for documentation purposes such as user manuals,...

Read on

Upgrade ASUS wl-500g Premium v1 from DD-WRT to OpenWrt

I was using an Asus wl-500g Premium router (hardware revision #1) running DD-WRT (I think it was version v24 preSP2 [Beta] Build 14311 mini). I decided to switch over to OpenWrt. The installation was dead simple. I just downloaded the .trx firmware image for the brcm47xx target (linux 2.6) from...

Read on

Mobile IPv6

Mobile IP / Mobile IPv6 / mip6d seems to be quite dead at the moment:

Read on

IPv6 6in4 Tunnel via Hurricane Electric (Tunnelbroker.net): Automatic IP Update on Mac OS X

Hurricane Electric provides free IPv6 tunnels via the 6in4 protocol on the website tunnelbroker.net. After signing up, one can create up to 5 tunnels. When settings up a standard tunnel, one has to provide one's endpoint IPv4 address which may change from time to time (moving around or 24-hour...

Read on

Install ArchLinuxARM on the Seagate GoFlex Home

Attention! This is an advanced topic! Do not engage in any activity if you're not cool with the Linux command line and ready to do something to your GoFlex Home that Seagate did not...

Read on

OpenWrt on a TP-Link TL-WR1043ND Gigabit Router

About the Hardware

The TP-Link TL-WR1043ND contains a great set of hardware for its price:

CPU Ram Flash Network Gigabit USB Serial JTag
Atheros AR9132@400MHz (MIPS) 32MB 8MB 4+1 Yes 1 x 2.0 Yes Yes

Please refer to http://wiki.openwrt.org/toh/tp-link/tl-wr1043nd#hardware for further details on the hardware.

My hardware version is (DE)v1.0.

<img alt="" class="alignnone size-medium wp-image-3246" height="130" src="/wp-content/uploads/TP-Link_TL-WR1043ND_back-side_hidden-300x130.jpg"...

Read on

Private Subnet with Ubuntu as Router

Suppose we have the following setup:

  • A Computer with Ubuntu installed and two physical network interfaces (might also be virtual, but that's advanced)
  • We have an internet connection on this computer set up and working. Internet traffic goes out (and in) on the network interface eth2
  • We want to create a private subnet
  • The...

Read on

OpenVPN

Install OpenVPN

sudo aptitude install openvpn
# open port 1194 (as shown here for the ufw firewall interface):
sudo ufw allow 1194

Become an Certificate Authority

Alternative to this way: Use TinyCA (there are Ubuntu packages available).

sudo mkdir /etc/openvpn/easy-rsa/
sudo cp -R /usr/share/doc/openvpn/examples/easy-rsa/2.0/* /etc/openvpn/easy-rsa/
sudo chown -R $USER /etc/openvpn/easy-rsa/
cat << EOF...

Read on

Watch the network for an IP conflict - ipwatchd

Installation on Ubuntu:

sudo aptitude install ipwatchd-gnotify

if configured correctly (true by default) it will show you graphical warnings for IP conflicts as well as create log entries in /var/log/syslog (check for log messages containing ipwatchd).

Advanced configuration options are described and have to be set in the file/etc/ipwatchd.conf. This could...

Read on

Change network setup from DHCP setup to a static IP configuration

My network interface is a Intel PRO/1000 PT Dual-Port-Server-Adapter (PCIe x4) (chipset: Intel 82571GB). It provides two physical links that I use both: One for my private subnet and one as the public interface to the public network (Internet via 100Mbit Ethernet at KHG, University of Frankfurt am Main). I...

Read on

IPv6

This blog post has grown to large. Please refer to the more detailed posts on IPv6 tagged with ipv6:

https://blog.philippklaus.de/tag/ipv6/

DNS entries for IPv6 ready web sites

http://en.wikipedia.org/wiki/List_of_DNS_record_types

  • A record: normal domain to ip address resolution
  • MX record: email server lookup, must resolve to a server address that is resolved to an IP...

Read on

Defend Your Network From Slow Scanning

http://www.builderau.com.au/strategy/businessmanagement/soa/Defend-your-network-from-slow-scanning/0,339028271,339272421,00.htm

...

Read on

DD-WRT on the ASUS WL-500G Premium v1 WiFi Router

WOL – Wakeup Computers via LAN

to wake up the computers on the homenetwork use the following commands (execute on the router) connect to the router first:

ssh root@your.dyndns.org

And wake up the computer with the network interface with the MAC 00:11:24:xx:yy:zz (assuming it is in the network 192.168.1.1/24):

/usr/sbin/wol -i...

Read on

CLI for the NetworkManager

NetworkManager has a DBUS API, so other applications can use DBUS to communicate with it and change its settings. I found three different ways to do this on the command line using a CLI (command line interface):

nmcli (NetworkManagerCmdline)

As of 2010-12-18 the most actively maintained project is nmcli: http://fedoraproject.org/wiki/Features/NetworkManagerCmdline.

Compare nmcli...

Read on

Use the tool x2x to use your mouse and keyboard as input for a differenct computer — works well!

With the very small toolx2x you can move your mouse to the left edge of your local screen and will continue to move over to the remote desplay. Your keyboard works on both computers as well, and you can even copy-paste between the two computers. It looks like the...

Read on

Set Up Public/Private Key Authentication for SSH to Connect from Laptop ↔ Desktop Without a Password Prompt

On both Linux/Unix computers you have to make sure they have a public key ~/.ssh/id_rsa.pub. If it is not there yet, run:

ssh-keygen -t rsa -b 4096

The desktop should be able to connect to the laptop with no password: (we work on the desktop here):

scp ~/.ssh/id_rsa.pub philipp@laptop:~/tmp-key.pub
ssh philipp@laptop
cat...

Read on

ddclient - a DynDNS Client on Ubuntu Linux

https://help.ubuntu.com/community/DynamicDNS
http://wiki.ubuntuusers.de/DynDNS-Clients

Install ddclient:

sudo aptitude install ddclient

Now configure the program:

sudo gedit /etc/ddclient.conf

Enter your DynDNS account data and computer setup:

pid=/var/run/ddclient.pid
protocol=dyndns2
use=if, if=eth2 # the mode and network interface
# DynDNS account:
server=members.dyndns.org
login=philippk
password='sdf1dpw'
philippk.ath.cx

And set ddclient to run automatically on startup:

sudo gedit /etc/default/ddclient

Set the mode of ddclient...

Read on

Make Ubuntu System Bootable Using Wake On LAN

Install the package ethtool:

sudo aptitude install ethtool

Add the ethtool command to your nic using its configuration in /etc/network/interfaces (last line):

iface eth0 inet static
    address 192.168.100.90
    netmask 255.255.255.0
    gateway 192.168.100.1
    pre-down /usr/sbin/ethtool -s eth0 wol...

Read on