Login »

Michael Dale

Search Posts

Categories

Bluetrait
        Bluetrait
            Coding
            Geek
            General
            Coding
                PHP
                Bluetrait
                WordPress
                    Plugins
                PHP
                Bluetrait (Program)
            Geek
                Juniper
                Cisco
                IBM N2200 8363
                PCs
                Spam
                IPv6
                Apple
                NetScreen
                Internet
            General
                Uni

Click here if you are looking for Bluetrait, the weblog software.


Login

Username:

Password:

IPv6

Posted by Michael Dale on Wed, 06 Feb 2008 10:00 AM

I spent a bit of time last night getting more of my network IPv6 ready.

  • My Bind DNS server can now answer queries on IPv6.
  • dalegroup.net now has an IPv6 address
  • I'm in the process of trying to get my name server (ns1.dalegroup.net) to have an IPv6 address.
  • Mail server has an IPv6 address (although nothing is routed to the IPv6 address yet)

EDIT: And now my IPv6 tunnel is completely broken :( I've email aarnet and hopefully it will be working soon!


Setting up a route based site-to-site vpn using aggressive mode

Posted by Michael Dale on Thu, 31 Jan 2008 9:22 AM

The following howto guide explains how to setup a route based site-to-site VPN with one site using a firewalled internet connection and a dyanmic ip address.

So the background:
We have a client who is currently uses a Next G wireless connection who requires a link back into head office.

The wireless connection is limited in the follownig ways:

  • No public ip address
  • No static ip address
  • No port forwarding capabilities

So the connection is locked down.

The client required a site-to-site vpn for their business to operate (main application is running in head office).

So the following guide will show you how to set this up.

Network Details:
Head Office

  • Real internet connection with a static IP address
  • 192.168.0.x internal network

Remote Office

  • Internet connection without public ip address and/or port forwards
  • 192.168.6.x internal network

Head Office Setup

  1. Create a new IKE user (Objects->Users->Local)
  2. Create a new Unnumbered Tunnel Interface mapped to the untrust zone (Network->Interfaces (List)) and connected to your untrust Interface
  3. Create a new "Dialup User" VPN Gateway (VPNs->AutoKey Advanced->Gateway),
    1. Dialup user being the one you created in step 1.
    2. Outgoing interface is your untrust port.
    3. Enter a preshared key.
    4. In the advanced settings:
      1. Mode (Initiator) Aggressive
      2. Enable NAT-Traversal
  4. Create a new AutoKey IKE (VPNs->AutoKey IKE).
    1. Security Level: Custom
    2. Remote gateway is the one you setup in step 3
    3. In the advanced settings
      1. Replay Protection
      2. Bind to the Tunnel Interface you created in step 2
      3. VPN Monitor
      4. Rekey
  5. Create Routes (Network->Routing->Routing Entries)
    1. Network (remote network): 192.168.6.0/255.255.255.0
    2. Gateway
    3. Interface: Tunnel Interface you created in step 2
  6. Create polcies:
    1. From Trust to Untrust:
      1. Source: 192.168.0.0/24
      2. Destination: 192.168.6.0/24 
    2. From Untrust to Trust: 
      1. Source: 192.168.6.0/24
      2. Destination: 192.168.0.0/24
          

Remote Office Setup

  1. Create a new Unnumbered Tunnel Interface mapped to the untrust zone (Network->Interfaces (List)) and connected to your untrust Interface
  2. Create a new "Dialup User" VPN Gateway (VPNs->AutoKey Advanced->Gateway),
    1. Local ID being the IKE Identity you created in step 1 on the Head Office setup.
    2. Outgoing interface is your untrust port.
    3. Enter a preshared key (same as Head Office setup).
    4. In the advanced settings:
      1. Mode (Initiator) Aggressive
      2. Enable NAT-Traversal
  3. Create a new AutoKey IKE (VPNs->AutoKey IKE).
    1. Security Level: Custom
    2. Remote gateway is the one you setup in step 2
    3. In the advanced settings
      1. Replay Protection
      2. Bind to the Tunnel Interface you created in step 1
      3. VPN Monitor
      4. Rekey
  4. Create Routes (Network->Routing->Routing Entries)
    1. Network (remote network): 192.168.0.0/255.255.255.0
    2. Gateway
    3. Interface: Tunnel Interface you created in step 1
  5. Create polcies:
    1. From Trust to Untrust:
      1. Source: 192.168.6.0/24
      2. Destination: 192.168.0.0/24 
    2. From Untrust to Trust: 
      1. Source: 192.168.0.0/24
      2. Destination: 192.168.6.0/24

So that should be all you need to do. The Remote Office will be the side that starts the VPN. Make sure the encryption settings are the same for each side.

The good thing about this setup is that you don't need to use a service like DynDNS so it should be a bit more reliable.

If I get a chance I'll try and add some screen shots.


.au domains for $21.45 2/year

Posted by Michael Dale on Mon, 14 Jan 2008 3:20 PM

Jumba have a special on at the moment; .au domains for $21.45 for two years. Thats cheaper than what I pay for a standard .com!

Anyway I picked up dalegroup.net.au


My Website History

Posted by Michael Dale on Wed, 19 Dec 2007 6:32 PM

I've just spent the last half hour restoring some of my old websites (dating back to around 2004).

I thought it would be interesting to see how they'd changed.

I did something like this back in early 2004, and ended up with a PDF document called "Dalegroup Evolved".

This time it is a little more interactive as the websites are live (click on the screen shots to visit the site) :)

So the first on my list:

dalegroup.net - 2004

dalegroup.net 2004

Dalegroup.net was my primary website before I started a blog. This site ran on one of my first CMS' and it is still working on PHP5 :)

I setup GD to generate the news titles into a coloured image that changed for each news item.

blog.dalegroup.net - 2005

blog.dalegroup.net 2005

This site was my first "real" blog and could be found at blog.dalegroup.net (no longer exists). This site ran on a script I called getnews and was simply a basic blog program I wrote during the HSC.

The customised CSS styles still work too!

bluetrait.com - 2007

bluetrait.com 2007

Bluetrait was my first site completely separate from dalegroup. I don't remember where the name came from but the idea behind it was to write a blog script that people could download and use.

So bluetrait ran on Bluetrait 1 which worked pretty well for a few years.

And now we're at the end of 2007. Bluetrait.com is still around and is currently running Bluetrait 2 Alpha-2.

 


Gravatar

Posted by Michael Dale on Tue, 18 Dec 2007 3:38 PM

I've added Gravatar support to this site.

A gravatar, or globally recognized avatar, is quite simply an 80×80 pixel avatar image that follows you from weblog to weblog appearing beside your name when you comment on gravatar enabled sites.


phpBB 3

Posted by Michael Dale on Sat, 15 Dec 2007 2:40 PM

Mac Mini

Posted by Michael Dale on Fri, 23 Nov 2007 8:57 PM

I got a Mac Mini for my birthday on the 21st. Specs:

Core 2 Duo 1.83GHz
1gb Ram
80gb HDD
Leopard.

It's awesome! I'll post some pictures later.


Creating a VIP in a different subnet

Posted by Michael Dale on Mon, 19 Nov 2007 10:15 AM

Recently the company I work for got another subnet to use, let's call it b.b.b.0/24 (and our current one is a.a.a.0/24).

We want to use this subnet to create more VIPs (Virtual IPs).

So we currently have:
a.a.a.2:80 -> 10.0.0.2:80

We wanted to add:
b.b.b.2:80 -> 10.0.0.3:80

Unfortunately trying to do this via the standard method fails with this error:
VIP error
With the help of the juniperforum website a way was worked out.

Steps:

1) Make sure the new subnet is routed to your netscreen (in this case to our untrust int)
untrust untrust policy
2) Create a new policy from UNTRUST to UNTRUST (yes this is not a mistake) with the following details:
Source Address: ANY
Destination Address: The external IP address you want to use i.e b.b.b.2
Service: The service you want
Under the advanced settings:
Enable Destination Translation
Translate to IP 10.0.0.3

policy
untrust untrust policy
3) To create more services to the IP address simply add another policy with the "Service" and "Translate to IP" details changed.

Note: This method mostly acts like a normal VIP. The only thing to look out for is that requests from the TRUST zone won't be translated.

More details can be found in the forum thread here.


Defensio

Posted by Michael Dale on Sat, 17 Nov 2007 11:49 AM

Defensio is an anti-spam service very similar to Akismet, except that they provide in depth spam statistics for your website.

I've just written a basic Defensio plugin for Bluetrait 2 and am giving it a test.

It looks pretty cool!


Apple G5 CPU and Heatsink

Posted by Michael Dale on Sat, 10 Nov 2007 11:56 AM