So last night Bryn's sister's boyfriend (Josh) and I setup a VPN between our two houses. Josh is currently running Gentoo, while I'm using a Netscreen 5GT.
Background
My Place
Josh's Place
So I'll go through the process of setting up the dial-up VPN first.
Dial-up VPN (Single PC at Josh's Place accessing my network)
Step 1)
The first step is to setup a dial-up vpn on the Netscreen. I've covered this process here (only do Setting up the Netscreen).
Step 2)
Install racoon on the linux/bsd box (I'm not going to cover this as it is a different process for almost every distro, although most distros have some form of package management).
Step 3)
Setup racoon.conf. Now for this process we used a combination of:
So our config looks like:
padding
{
maximum_length 20; # maximum padding length.
randomize off; # enable randomize length.
strict_check off; # enable strict check.
exclusive_tail off; # extract last one octet.
}
# Specification of default various timer.
timer
{
# These value can be changed per remote node.
counter 5; # maximum trying count to send.
interval 20 sec; # maximum interval to resend.
persend 1; # the number of packets per a send.
# timer for waiting to complete each phase.
phase1 30 sec;
phase2 30 sec;
}
remote 59.167.253.89 {
exchange_mode aggressive;
doi ipsec_doi;
situation identity_only;
my_identifier fqdn "Test.User";
peers_identifier address;
verify_identifier off;
lifetime time 28800 seconds;
initial_contact on;
passive off;
proposal_check obey;
support_mip6 on;
generate_policy off;
nonce_size 16;
proposal {
encryption_algorithm des;
hash_algorithm md5;
authentication_method pre_shared_key;
dh_group modp1024;
}
}
sainfo address 10.0.11.15/32 any address 10.0.0.0/22 any {
pfs_group modp1024;
lifetime time 3600 seconds;
encryption_algorithm des;
authentication_algorithm hmac_md5;
compression_algorithm deflate;
}
listen {
isakmp 10.0.11.15;
}
log debug2;
Things to note:
Step 4)
Setup ipsec.conf
So our config looks like:
spdadd 10.0.0.0/22 10.0.11.15/32 any
-P in ipsec esp/tunnel/59.167.253.89-10.0.11.15/require;
You'll just need to change the IP addresses to suit your setup.
Step 5)
Setup psk.txt.
So our config looks like:
So change the ip address to your netscreen external interface and change the preshared key to the one used when setting up the netscreen
Step 6)
Test. Use both ends to debug and test.