Labels

Friday, August 8, 2014

Setting up Shorewall and VLANs on the 1-Port Router

In putting together a 1-Port router, it seems that I have kind of lost a purpose here.  What I would like to do is have the router allow just the Mac Mini to access 3 other VLANs than what it is connected to.  In addition, I don't want anything from the Pers VLAN with the exception of the Mac Mini to be able to connect to these three VLANs.  I don't want any cross-talk between the VLANs.  The diagram of what I want to do is shown below.



 In order to accomplish this task I am turning to an old friend in the firewall world, Shorewall (http://www.shorewall.net/).  So I want to load Shorewall onto my 1-port router, add the additional VLANs, and add Webmin to manage the Shorewall setup and other things on this platform.  Installing Shorewall and Webmin is pretty easy:

sudo apt-get update
sudo apt-get install shorewall
sudo apt-get install -y perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.690_all.deb
sudo dpkg --install webmin_1.690_all.deb