The FreeBSD Diary |
(TM) | Providing practical examples since 1998If you buy from Amazon USA, please support us by using this link. |
Moving your wireless gateway
8 September 2005
|
IPsec is a smart way to secure communications. It prevents others from sniffing your traffic. I like using it for my wireless network. To be fair, my WLAN consists of one laptop. But that's so far. More may join later. I first wrote about Wireless IPsec late last year. In that article, I describe how to create a gateway for your WLAN and implement IPsec to secure the communications. Since then, it's been working flawlessly. However, it's time to move the gateway to a new box. The existing gateway is a Pentium P150. It's a fine machine. Never had a problem with it! However, I have too many machines. I recently got my hands on a Dell Optiplex GX-260. This box will replace two other boxes: the WLAN gateway box and my FreeBSD 5.4 box that I use to build world for my laptop. It will also be used for a test box for the Bacula project. I put a SCSI card into it and plan to attach an external DLT drive. |
Functions to be moved
|
The following services need to be implemented on this box:
For the most part, this will be a copying of files and installing of ports. No other changes are required. I will assume you know how to install the ports in question. This article is more about the problems I encountered when moving the configuration files over and setting up the services. |
Gateway
|
Not much to do here. Just ensure that options IPFILTER #ipfilter support options IPFILTER_LOG #ipfilter logging options IPFILTER_DEFAULT_BLOCK #block all packets by default
Since I'm using ipf, I also added
In order to do NAT, I needed |
DNS Server
|
I added these entries to forward only; forwarders { 10.55.0.18; 10.55.0.23; }; I also commented out the following line: listen-on { 127.0.0.1;};
Commenting out that line ensures that |
IPsec
|
An easy move. I copied |
racoon
|
A bit trickier. I failed to set the owner right on the files and so racoon
did not start up properly. The file I needed where in
|
DHCP Server
|
No problems here. I copied
|
Debugging
|
For debugging purposes, you might want to review the steps I went through when doing my first IPsec setup. |