This is the first post about my home network. Before I get to the advanced parts, the basic network first needs to be set up. That is what will be described in this post. For the more advanced sections you will have to wait for the next post.
To understand the workings of my home network, it would be better to start at the end than the beginning. After the last post about my home network you should know how I set up each part of the network in the figure below, as well as how to graph the network traffic per MAC.
So let's back up a little and look at the network from the start.
The Main Router
The central gateway for my network is my TP-LINK router, so this is the first thing that I need to set up. Because my network has many things that it has to do, I want something that gives me a bit more control than the default firmware. I decided to flash the router with OpenWrt, which is a Linux distribution for embedded devices. You can check the list of OpenWRT supported devices on the OpenWrt website to see if your router is supported. They also have detailed instructions on how to flash each of these routers.
When this is done you can ssh into your router or use the web-interface. It should look something like this:
If your computer does not have an IP in the same range as the router (192.168.0.0/16 most of the time) you may need to force one in order to access it.
The Internet and DHCP
The next step is setting up the TP-LINK to dial the internet connection. By default my Telkom Mega 105WR modem dials the internet connection and runs a DHCP server, thus I had to turn both of these off. The way to do this differs for each modem. To dial the internet connection with the TP-Link router, the Telkom modem must be in "Bridge" mode (you will be able to change this under the connection settings, it will be in PPPoE mode) and must be connected to the WAN port of the TP-LINK router. You will need to write down the PAP/CHAP username and password from the modem as this will be needed to dial the connection from the TP-LINK.
Now on the OpenWRT web-interface go to Network > Interfaces > WAN. Set the protocol to PPPoE, enter the username and password. Finally "Save & Apply".
Lastly you will have to set up the DHCP server. I have set it up so my network has the range 192.168.0.0/24, with the router IP being 192.168.0.254.
To do this go to Network > Interfaces > LAN. Set the protocol to "Static address", enter IPv4 address > 192.168.0.254 and IPv4 netmask > 255.255.255.0. Finally "Save & Apply".
At this point you will have this part of the network:
tl;dr
Flashed TP-LINK router with OpenWrt and set up WAN and LAN.
Sunday, 28 October 2012
Tuesday, 16 October 2012
A Beginning
Welcome to my blog. This is my first attempt at blogging, so I will see where it goes.
I plan to post about projects that I work on in my free time, as well as some general information about creating an online presence.
I have three general projects I am busy with at the moment. I will give a brief overview of each, but will provide more detail in future posts.
1) Setting up my home network.
I am not talking about just having internet (which is as easy as plugging a cable into a modem that your ISP provides), but something more advanced. A quick overview of the challenge that I am facing: currently I have three different networks that I need to connect to. The Internet, CTWUG (Cape Town Wireless User Group) and the Stellenbosch University network (which is reachable via a VPN or Virtual Private Network). This is all relatively easy to get working on a per device basis (by forcing IP's and dialling a VPN on each pc), but I want this all to work transparently. If I get a new computer or connect to the WiFi on any device, I want to be able to access all these networks without changing any settings or installing any software.
2) Series Renamer
I watch a lot of series. It gets irritating when the files have different naming conventions and as a result episodes are out of order in a list. I decided to write a script which looks at all your series and renames them with a consistent naming scheme. The script also gets the name of each episode as well as a list of all the episodes that you are missing. The result is something in this form and directory structure:
Psych
└─ Psych S01
├─ Psych S01E01 - Pilot.avi
├─ Psych S01E02 - Spellingg Bee.avi
└─ Psych S01E03 - Speak Now or Forever Hold Your Piece.avi
I am currently working on a GUI (Graphical User Interface) for the renamer and finally got it to remain stable while fetching the filelists. Normally the whole thing would just hang while fetching the filelists so I had to implement an additional thread, but this made everything unstable and it kept crashing until I implemented the thread handling correctly - which is a hard thing of you are new to it as I am.
3) The Web
While I do not have very much experience with coding websites, I have tinkered a bit. I can give an outline on how to get started and give some ideas. Some information on acquiring and using a host-name how to set up a Drupal, WordPress or similar site. I am also running a VPS (Virtual Private Server) that I am renting from ThrustVPS and will give some more information on this as well.
tl;dr
This blog is about my projects, including networking, programming and the web.
I plan to post about projects that I work on in my free time, as well as some general information about creating an online presence.
I have three general projects I am busy with at the moment. I will give a brief overview of each, but will provide more detail in future posts.
1) Setting up my home network.
I am not talking about just having internet (which is as easy as plugging a cable into a modem that your ISP provides), but something more advanced. A quick overview of the challenge that I am facing: currently I have three different networks that I need to connect to. The Internet, CTWUG (Cape Town Wireless User Group) and the Stellenbosch University network (which is reachable via a VPN or Virtual Private Network). This is all relatively easy to get working on a per device basis (by forcing IP's and dialling a VPN on each pc), but I want this all to work transparently. If I get a new computer or connect to the WiFi on any device, I want to be able to access all these networks without changing any settings or installing any software.
2) Series Renamer
I watch a lot of series. It gets irritating when the files have different naming conventions and as a result episodes are out of order in a list. I decided to write a script which looks at all your series and renames them with a consistent naming scheme. The script also gets the name of each episode as well as a list of all the episodes that you are missing. The result is something in this form and directory structure:
Psych
└─ Psych S01
├─ Psych S01E01 - Pilot.avi
├─ Psych S01E02 - Spellingg Bee.avi
└─ Psych S01E03 - Speak Now or Forever Hold Your Piece.avi
I am currently working on a GUI (Graphical User Interface) for the renamer and finally got it to remain stable while fetching the filelists. Normally the whole thing would just hang while fetching the filelists so I had to implement an additional thread, but this made everything unstable and it kept crashing until I implemented the thread handling correctly - which is a hard thing of you are new to it as I am.
3) The Web
While I do not have very much experience with coding websites, I have tinkered a bit. I can give an outline on how to get started and give some ideas. Some information on acquiring and using a host-name how to set up a Drupal, WordPress or similar site. I am also running a VPS (Virtual Private Server) that I am renting from ThrustVPS and will give some more information on this as well.
tl;dr
This blog is about my projects, including networking, programming and the web.
Subscribe to:
Posts (Atom)