Labels

Thursday, November 7, 2013

Issue with the FVS318N Router

I am slowly learning how to incorporate the FVS318N.  However, now I discover that there is apparently no way to setup VLAN to VLAN rules.  The router gives you the ability to make some rules for LAN to WAN, LAN to DMZ, and DMZ to WAN, but no LAN to LAN (or in my case VLAN to VLAN).  I did discover that there is a CLI (command line interface document that details some newer aspects of the router, but a cursory look into the command set did not give me the impression that there was a way to setup LAN to LAN rules.

My main motivation in setting up the LAN to LAN rules is to allow the Media VLAN to be able to access the Plex server running on my Mac Mini which is on a completely separate VLAN.  In addition to that, I use the Mac Mini as the main workstation for modifying the routers and switches in my home network.  Yea, I know, way too much - but I enjoy doing what I do.  I was thinking that I might try my hand at setting up either a Raspberry Pi router or setup a VM on the Mac Mini to do the routing.  What would be perfect is if I could do it on the new FVS318N.  This router will be able to replace about 3 devices if I succeed. 

Update: I figured out that if I use a "1 to 1 NAT" from a router, I can have an IP show up in one VLAN from a device resident in another VLAN with a different IP.  I am currently working the issue using a VM on the Mac Mini to do the routing with Shorewall.  Once I get that up and running, I will transfer it to a Raspberry Pi router which will be on all the time.

Monday, November 4, 2013

Found an interesting thing while using one of my routers

This weekend while fooling around with one of my routers, I chanced to put the WAN input of the main router onto my DMZ vlan.  I was able to have a full connection to the outside after I got rid of the first ethernet cable that I was using (it did not register as being connected).  When I connected the main router to my DMZ vlan, I noticed that I had a GHz connection (thanks to the GBit switch that I was using) and I was able to connect to the outside with no apparent slowdown of the speed.

I still have an issue though, because I set up the ActionTec router to route specific ports to my main router.  However, with this new connection, I have a means of controlling pretty much everything in the house.  I was wondering how I might fit my new FVS318N router into the mix.  Originally, I was going to put it upstairs and replace 3 devices (my main router, the upstairs switch and the router I use with the media vlan downstairs).  The media vlan router is connected into the DMZ vlan in the downstairs bedroom.  I was going to use the FVS318N to replace it as I could set up multiple dhcp servers, each tuned to a separate vlan.  This has been the issue throughout my house as I expand the capabilities of my setup.

Sounds like I need to explore a little more of what vlans can do for me.

Saturday, September 21, 2013

Portable Pi Project - Part #1

Well I now have some challenges ahead of me. I have decided that I need to make a portable RPi layout for testing. The idea is to bring it in to work to have around during lunchtime, when I get a chance to eat a bowl of soup. I figure if I put an RPi, hub, battery, various USB devices, external wifi adapters, the RPi camera, etc. on a sheet of Lexan I can make good use of it. This will allow me to code and test out some projects while being able to put the RPi into my bag in the morning.
I think that putting the equipment between two sheets of Lexan, with enough standoffs, I should be far enough along. The real problem is the orientation of the peripheral ports. I need to get to the USB, Ethernet, HDMI, SD card slot and maybe the GPIO from the side of the setup. The SD card slot is needed to change out different experiment setups. The others are self explanatory.
If I get it tied down enough with a sufficiently narrow width, it should work.
Update:  I purchased two 8x10 sheets of Lexan from my local Home Depot, along with 6 - 1" plastic standoffs, 4 rubber feet, and mounting hardware.  I wasn't able to find M3 screws or nuts but I did have some that I purchased at a different time.  It turns out that 6-32 will not fit into the mounting holes of the RPi, but M3 will.  I was able to take 1/2" standoffs and cut them in half with a PVC pipe cutter (does a really good job BTW). I mounted the RPi in one corner with the power and SD card slot about 1/4" from the edge; this has the SD card sticking out when it is mounted, but makes it easy to change out.  I wanted to be able to get to the SD card slot for changing the peripheral.  Now my issue is mounting of the other elements.  I figure that I should take apart the USB hub and that should make it easier to mount in the shell.  The current state of the configuration is shown in the following picture.






I am planning on mounting the USB Hub in the center of the left side in the photo (the case for the USB Hub has been removed). The battery will be mounted on the bottom.  I will also mount a USB-WiFi adapter with antenna at the top.  In addition, I will probably mount either an Arduino and/or a USB-Audio adapter on the left.  That should cover me for most applications.  I would assume that I would attach the Logitech keyboard USB dongle on the right side of the USB Hub.

Mounting for the battery and other components has been somewhat of an issue. I would like to be able to remove the battery at times since I also use it with a robot and it also acts as an emergency iPhone battery recharger. I would like to get a clamp type mechanism but I am not sure where I would find such an animal or what it even looks like. Looks like a trip to Home Depot / Loews is in order here.

Monday, September 9, 2013

Finally got around to installing the RPi Camera

This weekend was pretty much a blur. I did manage to plug in one of the two cameras that I had bought for the RPi back a couple of months. I just followed the instructions that came with the cameras (remove tape from header next to the Ethernet port, pull up on both sides of the locking mechanism gently, insert the camera flexible cable so that the shiny part of the cable faces away from the Ethernet port, after ensuring the cable is all the way in, push down on the header lock). I then tried out the instructions found at http://www.raspberrypi.org/camera to test. Picture of the camera is below:





Friday, September 6, 2013

Reworking Some Ideas on the RGB LED Cube

I have not been working on the LED Cube for a while.  Now that I am back to thinking about it, I want to redefine the interfaces from the Raspberry Pi.  I was thinking that a good way of doing this would be to interface to the LED Cube through an Arduino.  I could re-purpose an Arduino to be an I2C device coming in with additional I2C busses going out.  The repetitive nature of flashing the LEDs is ideal for the Arduino.  I could have the RPi formulate the 3D nature of the data points at each phase and have the Arduino take care of displaying the 3D points in the LED Cube.  So the RPi would calculate what should be displayed, relay that to the Arduino, tell the Arduino to start displaying the new 3D point set, and while the Arduino switches to the new data set, the RPi would be busy calculating a different 3D point set.  The nature of our eyesight is that we need to have things change at roughly 1/24 of a second (frame rate) to visualize motion.  That should be easily attainable with the Arduino.  The RPi is better suited to gather other pieces of information.

Monday, August 19, 2013

Ponderings on vlans

I was experimenting with VLANs on the RPi over the weekend.  So far, I learned that you can implement a tagged VLAN in the 802.1q sense by installing the vlan library and adding the 8021q loaded modules to /etc/modules.  Lots of good hints here (thanks, San Bergmans).

sudo apt-get update
sudo apt-get install vlan
sudo modprobe 8021q
sudo su
sudo echo "8021q" >> /etc/modules 
exit

I also plugged in a USB to Ethernet adapter into the powered Hub on my RPi and started adding vlan ports to the /etc/network/interfaces file.  I am not sure how this will play out on the setup that I am using.  I do have to reset the managed router to access the new vlans on a port that the vlans will access.  I also need to make sure that my /etc/network/interfaces file has the correct mac address for the adapter so that it will come up as eth1 when it is plugged in.

I really didn't get too much of a chance to try it out because of other commitments and I was moving all of my media circuits to a separate vlan through the house.  I grabbed the router that I was using for connecting the RPis to the external FIOS network to reuse for the media vlan.  I first setup the router with a different subnet, connected it to the outside circuit, then proceeded to reset all of the media components to the new vlan.  Finally, I plugged the LAN part of the router into a managed switch on the new vlan and rebooted all of the media elements.  The only problem that I had was resetting the Ceton Echo to authenticate to my Windows Media Center at its new IP.

I am anxious to get back to the house tonight to tryout my connections to the other vlans within the house.  More later.

Tuesday, August 13, 2013

Trying to resolve a standard interface bootup structure

I have been trying over last weekend to get my setup to come up with the hostapd and dhcp server running along with x11vnc running and showing display :0.  Sometimes it works, and sometimes I have to log into the RPi to start something that didn't catch the first time.  There may be some timing issues here.

I want to be able to simply plug in the RPi with hub and peripherals and have it come up so that I can connect my iPad 2 both at home and at work.  Since there is a wi-fi proxy at work, with a capture page, this presents an unusual issue that needs to be resolved.  At work, I have to open up a browser, then enter in a username and password (which changes every two weeks or so) before I can get an internet connection.  At home, I have a wireless router which uses a standard form of encryption - that one is easy to get connected to.  However, going between each environment has its issues.  Solving this issue is the first one that I will need to solve in order to automate the standard interface on new SD cards as I use them.  If I can just mount a USB stick and run a script on a new SD card to setup the interface that would be nice.  Instead, I find myself having to go around the issue and log in a different way to get my setup the way that I want.  More on this later.

Update: I should probably turn this idea into a standard script to be runnable off of a usb stick.  That way, I can use the stick to setup a standard setup prior to modifying the setup for anything else.