WAVElan server setup using IPsec
WAVEsec ClientsBase StationDownloads |
The base station must be set up by the conference organizers. Notebook
users need not concern themselves with these details.
IPsec server requirementsYour IPsec server
FreeSWAN 1.99 can do all of these things. We have RPMs for RedHat 7 and 8 here. Server setupInstall FreeS/WANInstall FreeSWAN on your server, as described here. Keys in DNSFor each of the server's IP addresses, insert KEY and TXT records into the reverse map, as described here. TestYou can test that you've correctly published your DNS records by creating an opportunistic connection. First, temporarily enable the Opportunistic Encryption ("me-to-anyone") conn which comes in /etc/ipsec.conf, by making sure this line is present in the connection: auto=add Restart FreeS/WAN so that this will take effect: ipsec setup restart Then, from your IPSec server: links oetest.freeswan.org If the site says you have a secure connection, your DNS records have been published properly. If not, take another look at your reverse map and troubleshoot using dig. A note to the paranoid: the feds are probably watching oetest.freeswan.org . Disable the OE connection when done, by #auto=add Configure FreeS/WANYou will need to configure FreeS/WAN by modifying the /etc/ipsec.conf configuration file, as described in the following sections. List protected interfacesIn config setup, list each interface you want to protect with IPsec. This will be at least the interface which faces your WAVEsec clients, ie. wlan0. If you are in inline mode and want to protect outgoing connections with IPsec, mention the public interface too. For example:
config setup
interfaces="ipsec0=eth0 ipsec1=wlan0"
Many connection descriptionsTo enable your WAVEsec clients to connect, create a connection description for each IP address that will be served. A future version of FreeS/WAN may reduce this to a single definition, but this is not yet implemented. For each, you will need a conn like:
conn host66-to-world
left=192.139.46.254 # IP of WAVEsec gateway
leftsubnet=0.0.0.0/0
right=192.139.46.66 # IP of potential client.
keylife=1h # IP may be reused after 1 hour idle
rekey=no
auto=add
Generate all the descriptions you need and put them in: /etc/wavesec.conns Place this line at the end of ipsec.conf: include wavesec.conns Be sure that FreeS/WAN loads these connections with: ipsec setup restart Exempt DHCP and DNS packets from IPSecTo allow clients to renegotiate a connection on reboot, exempt DHCP and DNS packets from IPsec on the server side. For example, see this script. Working with non-FreeSWAN clientsIf your users have IPSec clients which can not deal with raw RSA keys extracted from DNS, then you'll need to package the server key differently. In most cases, this means an X.509 certificate. The OpenSSL software will be necessary. There are two methods:
Distribute the resulting X.509 certificate to the clients by ftp, HTTP download, or finger. |