UA-9726592-1
Showing posts with label IPTables. Show all posts
Showing posts with label IPTables. Show all posts

Thursday, August 11, 2011

The D-link 825 router and DD-WRT firmware

This article is an update on another article Rightardia wrote on the Brighthouse  SMCD3GN router. See http://rightardia.blogspot.com/2011/07/home-security-101.html

BrightHouse and the other big cable companies have opened their residential networks to avoid lawsuits from the Motion Picture Association of America (MPAA) and Recording Industry Association of America (RIAA).

This means if you or your children are using the Gnutella network or BitTorrent to download movie or music, dozens of government and corporate trackers are monitoring these downloads. Start BitTorrent or Frostwire and after installing PeerBlock. You will be amazed on how many organizations are interested in your home downloads.

With the  BrightHouse SMCD3GN routers, all you can do is block Lan side ports to prevent your children from downloading files. BrightHouse does not allow you to block incoming Wan-side TCP ports because it says it already blocks all of them. According to PeerBlock, this is not true

Perrblock suggests that many of these TCP ports are now open for government and industry IT people to monitor your home network.

What can a home Internet user do to get the government and corporations out of your home network? First, buy a good home router.

One web site recommended the D-Link 655. See http://www.firewallguide.com.

Rightardia purchased the more current D-link 825 which provides dual band wireless in the 2.4 and 5 GHZ range. The 5 GHZ band was designed for high speed streaming media like a ROKU streaming media client.
 DW_160

If you have the right wireless adapter like the D-Link DWA-160, you can also get access to the 5 GHZ band. Wirehead would expect a a speedier link with a more a limited wireless range in the 5GHZ band.

Once you have the router, flash it with the open source DD-WRT firmware which will provide your home router with many features of a far more expensive router. Although Wirehead had no trouble installing the firmware on the D-Link 825, you can "brick" your router with this open source firmware. Be careful with the f/w upgrade! You don't want to turn your new router into a brick.


We let the upgrade continue for several minutes because we noticed a lot of hard drive activity on the PC we used for the upgrade. Likewise we powered down the router for 5 minutes after the f/w upgrade was complete because the D-Link router had no power button.

The rest of this article will address configuring the D-link 825 using the DD-WRT open source firmware.

The first screen is very important in the configuration.


Leave the WAN interface also identified as Ethernet 1 (E1) disabled. The DD-WRT f/w creates a bridge between the Lan port (E0), the Wan port (E1) and the two wireless ports. By the way, the E0 port and the wireless ports use the same MAC address.

Since your BrightHouse router provides wireless service and the dynamic host configuration protocol (DHCP) in the SMCD3GN router, you need to disable these features on the SMC router.

You don't want the BrightHouse router to provide these duplicate services because it will eventually the SMC router be configured in bridge mode which will turn it back into a cable modem.

Thus, the D-Link must be configured in gateway mode. If you try to configure it as a router, it will not work.

In Setup | Networking, a bridge group should be automatically created that briges E1 (WAN), (E0) (Lan) and the two wireless ports. Because of this bridge group, you do not need to configure the Wan port which should be disabled. 


Wirehead initially tried to configure the D-Link router with the more conventional Wan port and Lan port but the configuration didn't work. It caused problems with wired connections. Once the Wan port was disabled, the wired connections and DHCP worked correctly.

Wirehead used 192.168.1.3 as the IP address for the D-Link router.  This default address used for the Brighthouse router is 192.168.1.1. Since we disabled the WAN port, we didn't need a 192.168.1.2 address. The default address for the D-Link router is 192.168.1.1 You will have to change the D-Link address to avoid an IP conflict witt he BrightHouse router.

The IP address of the router and Ethernet port (E0) are the same. This means that the gateway for any any IP addresses in your Lan should be the IP address of the router or E0 port, not the cable modem's.  In the Rightardia router, the gateway IP address was 192.168.1.3. This is the gateway address that should be also be provided by the DHCP server.

The wireless settings had a tendency to revert to the defaults. We sometimes saw a phantom wireless network (DD-WRT) with an excellent signal. Configure the wireless as  in the screen below:


Note that in the first router, the SSID broadcast was disabled. This will produce a hidden wireless network that will keep the neighborhood script kiddie out of you network. Use the full channel width for your wireless configuration . 

For encryption of wireless security, use AES encryption unless you have older devices that require TKIP. In this case, you can use AES+ TKIP option. 

In the Setup | Services menu, telnet is enabled by default. When Wirehead disabled telnet which is usually a good idea, the wireless network stopped working.

At this point the wired and wireless networks are stable and the DHCP server works fine. We like the DD-WRT firmware (f/w). it has many features such as IPTables to block ports.  See http://www.dd-wrt.com/wiki/index.php/Port_Blocking

DD-WRT f/w  supports hotspots and can gather traffic information. It provides excellent traffic statistics. More importantly, you now have a home network that is more secure.

Of course, the final step is to call BrightHouse and have them put the SMC router into bridge mode. That will get the government and corporations out of your home network.

Also, don't forget to backup the configuration file. You may need it for a rainy day.

Subscribe to the Rightardia feed: http://feeds.feedburner.com/blogspot/UFPYA   Netcraft rank: 6627 http://toolbar.netcraft.com/site_report?url=http://rightardia.blogspot.com Creative Commons License
Rightardia by Rightard Whitey of Rightardia is licensed under a Creative Commons Attribution 3.0 Unported License.
Permissions beyond the scope of this license may be available at rightardia@gmail.com.

Monday, July 27, 2009

Face off with Fedora and Ubuntu Linux

by Wirehead

While I was working, the screen froze up and I noticed the hard drive thrashing away. After powering the PC down, I noticed it could not find a a working Linux image to boot off of. I had trouble restoring Ubuntu Linux 9.04 so I loaded a copy of Fedora which is the open source version of Red Hat Linux.

After working with Fedora 11, code named Leonidas, I started to notice some idiosyncrasies. First there was no third party driver for my Nvidia PCI video card. The Ubuntu driver didn't work perfectly because I had to reset the video resolution to 1600 x 1200 dpi every time I rebooted. In the case of Fedora, there was no third party driver at all. I even looked for one on the Nvidea Linux page but there was only a .bin driver that Fedora couldn't use. So I was stuck in 1024 x 786 dpi resolution.

I also noticed that Fedora had a CD-burner but it was buried in Places | Computer rather than as an Accessory. The Take Screenshot (print screen utility) was crippled in Fedora. I could grab the entire desktop or current screen in the foreground, but I could not grab a selected area by framing it. When you publish a blog, this is an essential function because tables and graphics can be easily copied. That was a real bummer.

When I tired to download a third party application from the command line using the Terminal function, the command would not run because it did not consider my user name to be an administrator. I ran into this problem months ago and there is a work around, but you have to edit a file and change permissions to fix it. This was bummer number 2.

I also post my best articles in a couple of Usenet conferences. Again , when I tired to use Yum Package Manager to download the Pan newsreader, the application was not available. I searched on the web for Pan but there was no download in the .RPM format that Fedora uses. This was bummer number three. I was never able to get any news reader to work on Fedora although I found some alternative newsreader aps. None showed up in the Fedora menus, however.

Having some background in network security, I tried to download the CLAMAV antivirus/malware utility and its front end, CLAMTK. I was able to download both, but I could never upgrade the CLAMAV antivirus signature, even after a reboot. This was bummer number 4.

However, the Fedora firewall front end for IPTables was a nice surprise because Ubuntu dos not come with a a firewall front end. I have to download GUFW using the Synaptic Package Manager for the AV front end in Ubuntu. So chalk up one kudo for Fedora.

I also ran into problem playing You Tube videos with Fedora. A Totem movie player plug in was missing that could not be downloaded. In Ubuntu, you are prompted to download Flash to see the You Tube videos. I embed videos in my blog and the Flash download worked fine for viewing videos.

Printing was also problematic with Red Hat. It was missing Canon PIXMA drivers that Ubuntu provides that was bummer number 5. I also notice that themes, backgrounds (wallpaper) and OpenGL screensavers were missing in Fedora. I was able to download OpenGL screensavers using YUM. I would venture to say that Red Hat probably dumbs down Fedora because it is the free version of it it commercial product, Red Hat Linux. I have used Red Hat in the past and it is more robust. It also comes with technical support for one year when you purchase it.

After continuing to play with Fedora for a couple of days, I backed up my data and reinstalled Ubuntu. Clearly Ubuntu has an edge over Fedora. Ubuntu supports third party video drivers, the screenshot utility is not crippled, The administrator account works when you login for the first time, the package manger provides an excellent newsreader that can be downloaded, the antiivirus utility didn't not work in Fedora and I could not view Flash online videos. The Canon Pixma printers are very popular because of the print quality and the low cost of ink jet cartridges. The missing print drivers were really irritating.

It is possible that over time I could have fixed many of the problems with Fedora. But why waste the time since Ubuntu had all of these problems resolved.

If you are going to try Linux, Rightardia recommends Ubuntu. You will get up to speed faster with Ubuntu.
 

Get 30 days of free traffic analysis simply by going to Web-Stat: http://www.web-stat.com/?id=2955

Subscribe to the Rightardia feed: feeds.feedburner.com/blogspot/IGiu

Improve blog traffic with TrafficG http://trafficg.com/splash/splash01.php?uid=eelder1

Netcraft rank: 30670