{"id":193,"date":"2012-12-12T00:04:44","date_gmt":"2012-12-12T08:04:44","guid":{"rendered":"https:\/\/blt.homenet.org\/wordpress\/?p=193"},"modified":"2012-12-12T09:45:35","modified_gmt":"2012-12-12T17:45:35","slug":"belkin-playmax-600hd-router-flashed","status":"publish","type":"post","link":"https:\/\/bt.beerprojects.com\/wordpress\/?p=193","title":{"rendered":"Belkin PlayMax 600HD Router Flashed"},"content":{"rendered":"<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"DD-WRT Logo\" src=\"http:\/\/www.dd-wrt.com\/wiki\/images\/9\/9f\/DD-WRT_logo.png\" alt=\"\" width=\"178\" height=\"80\" \/><\/p>\n<p>Here is a recap of an old project. following this straight through won&#8217;t be enough to redo what I&#8217;ve done, but the websites and hints that I followed are linked throughout this post.<\/p>\n<p>I bought a <a href=\"http:\/\/www.belkin.com\/IWCatProductPage.process?Product_Id=522111\" target=\"_blank\">Belkin PlayMax 600HD router<\/a> from Best Buy because I read in some review that I could do port forwarding (needed to setup my own server at home).\u00a0 Well after a lot of time in the settings and several emails to Belkin it turns out that this feature isn&#8217;t built in.\u00a0 So after a friend told me about dd-wrt I decided to give it a shot after reading a lot of forums to see if my router would work.\u00a0 <a href=\"http:\/\/www.dd-wrt.com\/phpBB2\/viewtopic.php?t=78042&amp;postdays=0&amp;postorder=asc&amp;start=0\" target=\"_blank\">This forum post <\/a>on dd-wrt.com is about my router.<\/p>\n<p>For the most part I followed the instructions from teh dd-wrt site: <a title=\"dd-wrt Installation\" href=\"http:\/\/www.dd-wrt.com\/wiki\/index.php\/Installation\" target=\"_blank\">http:\/\/www.dd-wrt.com\/wiki\/index.php\/Installation<\/a><\/p>\n<p>Start by doing a <a title=\"30\/30\/30 Reset\" href=\"http:\/\/www.dd-wrt.com\/wiki\/index.php\/Hard_reset_or_30\/30\/30\" target=\"_blank\">30\/30\/30 reset<\/a>. The text below is copied from the dd-wrt website.<\/p>\n<h4 style=\"padding-left: 120px;\">Hard Reset (aka 30\/30\/30 reset):<\/h4>\n<p style=\"padding-left: 120px;\">The following procedure will clear out the NVRAM and set dd-wrt back to default values:<\/p>\n<ul style=\"padding-left: 120px;\">\n<li style=\"padding-left: 120px;\">With the unit powered on, press and hold the reset button on back of unit for 30 seconds<\/li>\n<li style=\"padding-left: 120px;\">Without releasing the reset button, unplug the unit and hold reset for another 30 seconds<\/li>\n<li style=\"padding-left: 120px;\">Plug the unit back in STILL holding the reset button a final 30 seconds (please note that this step can put Asus devices into recovery mode&#8230;see note below!)<\/li>\n<\/ul>\n<p style=\"padding-left: 120px;\">This procedure should be done BEFORE and AFTER every firmware upgrade\/downgrade.<\/p>\n<p style=\"padding-left: 120px;\">Do not use configuration restore if you change firmware builds (different svn build numbers).<\/p>\n<p>I got my files from ftp:\/\/ftp.dd-wrt.com\/others\/eko\/V24-K26\/<\/p>\n<ul>\n<li>dd-wrt.v24-15508_NEWD-2_K2.6_mini.bin<\/li>\n<li>dd-wrt.v24-18946_NEWD-2_K2.6_mega.bin<\/li>\n<\/ul>\n<p>My Router is advised to only use the TFTP: http:\/\/www.dd-wrt.com\/wiki\/index.php\/TFTP_flash<\/p>\n<p>First I flashed the 15508 mini and then a 30\/30\/30 reset.\u00a0 Even though I&#8217;m advised to use TFTP I used the webpage GUI\u00a0 to flash the 18946 mega and followed up with a 30\/30\/30 reset.\u00a0 I&#8217;ve found that Firefox has issues with webpage GUI and have reverted to Internet Explorer for all setting changes and flash updates. \u00a0 I actually tried several different version and sizes for my router and sometimes had issues with enabling SSH or other weird things.\u00a0 I even had a problem with the 18946 mega for a while, but after a lot of time trying different things I believe that I simply didn&#8217;t get a good flash from either not doing a 30\/30\/30 reset properly or something else.\u00a0 But in the end the 18946 mega works for me.<\/p>\n<p>In the system settings I now see:<\/p>\n<div>Router Name: BLT_ROUTER<\/div>\n<div>Router Model: Belkin F7D4301 \/ F7D8301 v1<\/div>\n<div>Firmware Version: DD-WRT v24-sp2 (04\/07\/12) mega &#8211; build 18946M NEWD-2 K2.6 Eko<\/div>\n<div><\/div>\n<p>There is a ton of configuring to do that I&#8217;m not going to get into because I either don&#8217;t remember what I set or I&#8217;m concerned about leaking potential security details.\u00a0 Things that I&#8217;ve added are Wake up on Lan (WOL) for my media server, SSH is a must to get into the file system from within the network, port forwarding (see below) and sharing the two USB drive connections over the network (see below)<\/p>\n<h2>Port Forwarding<\/h2>\n<p>I had a heck of a time getting port forwarding to work for computers within the LAN.\u00a0 Here is a post I placed on the dd-wrt forum about this topic:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.dd-wrt.com\/phpBB2\/viewtopic.php?t=164202\" target=\"_blank\">http:\/\/www.dd-wrt.com\/phpBB2\/viewtopic.php?t=164202<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Here are several websites that I referenced read and found useful along the way<\/p>\n<ul>\n<li><a href=\"http:\/\/superuser.com\/questions\/418928\/dd-wrt-port-not-fowarding-when-connecting-with-public-ip-from-lan\" target=\"_blank\">http:\/\/superuser.com\/questions\/418928\/dd-wrt-port-not-fowarding-when-connecting-with-public-ip-from-lan<\/a><\/li>\n<li><a href=\"http:\/\/superuser.com\/questions\/285699\/dd-wrt-how-to-allow-port-forwarding-to-apply-to-requests-originating-from-insid\/289055#289055\" target=\"_blank\">http:\/\/superuser.com\/questions\/285699\/dd-wrt-how-to-allow-port-forwarding-to-apply-to-requests-originating-from-insid\/289055#289055<\/a><\/li>\n<li><a href=\"http:\/\/www.dd-wrt.com\/phpBB2\/viewtopic.php?t=89353\" target=\"_blank\">http:\/\/www.dd-wrt.com\/phpBB2\/viewtopic.php?t=89353<\/a><\/li>\n<li><a href=\"http:\/\/svn.dd-wrt.com:8000\/ticket\/1868\" target=\"_blank\">http:\/\/svn.dd-wrt.com:8000\/ticket\/1868<\/a><\/li>\n<\/ul>\n<p>In the end I added the following to the firewall section in the Administration-&gt;Commands section<\/p>\n<pre>insmod ipt_mark\r\ninsmod xt_mark\r\niptables -t mangle -A PREROUTING -i ! `get_wanface` -d `nvram get wan_ipaddr` -j MARK --set-mark 0xd001\r\niptables -t mangle -A PREROUTING -j CONNMARK --save-mark\r\niptables -t nat -A POSTROUTING -m mark --mark 0xd001 -j MASQUERADE<\/pre>\n<p>I&#8217;ll have to say I&#8217;m not entire sure I understand what is happening, but it works so I&#8217;m not complaining.\u00a0 Now I&#8217;m able to see this website both internal and external to my network.<\/p>\n<h2>NAS USB Drives<\/h2>\n<p>I have two 1TB USB drives attached to my router the following are the steps that I took which mostly comes from following this <a title=\"Large USB Drive Sharing Using DD-WRT and SAMBA 3.5 on WRT610N (v1, CFE .16)\" href=\"http:\/\/www.theunluckyfish.com\/archives\/windows-7\/large-usb-drive-sharing-using-dd-wrt-and-samba-3-5-on-wrt610n-v1-cfe-16\" target=\"_blank\">sites instructions<\/a> which also uses the dd-wrt sites instructions of <a title=\"Optware, the Right Way\" href=\"http:\/\/www.dd-wrt.com\/wiki\/index.php\/Optware,_the_Right_Way\" target=\"_blank\">Optware, the Right Wa<\/a>y.<\/p>\n<p>&nbsp;<\/p>\n<p>Format the hard drives<br \/>\n(I did this at another time and didn&#8217;t record my steps)<br \/>\nEnable USB at Services-&gt;USB<br \/>\nand enable the following parameters:<br \/>\nCore USB Support<br \/>\nUSB Storage Support<br \/>\nAutomatic Drive Mount<br \/>\nDisk Mount Option = \/opt<\/p>\n<p>Save then do a reboot<\/p>\n<p>Check Services-&gt;USB to see the Optware and Swap loaded<\/p>\n<pre>Disk Info\r\n--- \/dev\/discs\/disc0\/disc \r\nBlock device, size 931.5 GiB (1000204886016 bytes) \r\nDOS\/MBR partition map \r\nPartition 1: 930.5 GiB (999128297984 bytes, 1951422457 sectors from 2055) \r\nType 0x07 (HPFS\/NTFS) \r\nNTFS file system \r\nVolume size 930.5 GiB (999128297472 bytes, 1951422456 sectors) \r\nPartition 2: 1 GiB (1073741824 bytes, 2097152 sectors from 1951424512) \r\nType 0x0F (Win95 Ext'd (LBA)) \r\nPartition 5: 767 MiB (804257792 bytes, 1570816 sectors from 1951424512+2048) \r\nType 0x83 (Linux) \r\nExt2 file system \r\nVolume name \"\/Optware\" \r\nUUID 0A911958-F81C-51AA-E421-3C2F22FBB048 (Reserved) \r\nVolume size 767 MiB (804257792 bytes, 196352 blocks of 4 KiB) \r\nPartition 6: 255 MiB (267386880 bytes, 522240 sectors from 1952997376+2048) \r\nType 0x82 (Linux swap \/ Solaris) \r\nLinux swap, version 2, subversion 1, 4 KiB pages, little-endian \r\nSwap size 255.0 MiB (267378688 bytes, 65278 pages of 4 KiB) \r\nStatus: Mounted on \/opt \r\nStatus: Not mounted \r\nStatus: Not mounted \r\nStatus: Not mounted<\/pre>\n<p>Next SSH into the router and verify the \/opt partition is mounted<\/p>\n<pre>root@BLT_ROUTER:~# mount\r\n\r\nrootfs on \/ type rootfs (rw)\r\n\/dev\/root on \/ type squashfs (ro)\r\nnone on \/dev type devfs (rw)\r\nproc on \/proc type proc (rw)\r\nsysfs on \/sys type sysfs (rw)\r\nramfs on \/tmp type ramfs (rw)\r\ndevpts on \/dev\/pts type devpts (rw)\r\ndevpts on \/proc\/bus\/usb type usbfs (rw)\r\n<strong>\/dev\/discs\/disc0\/part5 on \/opt type ext2 (rw,noatime)<\/strong><\/pre>\n<p>Check for router connection to the internet<\/p>\n<pre>root@BLT_ROUTER:~# ping google.com\r\n\r\nPING google.com (74.125.239.7): 56 data bytes\r\n64 bytes from 74.125.239.7: icmp_seq=0 ttl=55 time=17.870 ms\r\n64 bytes from 74.125.239.7: icmp_seq=1 ttl=55 time=17.222 ms\r\n--- google.com ping statistics ---\r\n2 packets transmitted, 2 packets received, 0% packet loss\r\nround-trip min\/avg\/max\/stddev = 17.222\/17.546\/17.870\/0.324 ms<\/pre>\n<p>Next download the optware prep script<\/p>\n<pre>root@BLT_ROUTER:~# wget -O \/tmp\/prep_optware http:\/\/wd.mirmana.com\/prep_optware\r\n\r\n--2012-11-11 21:53:33--\u00a0 http:\/\/wd.mirmana.com\/prep_optware\r\nResolving wd.mirmana.com... 212.123.145.69\r\nConnecting to wd.mirmana.com|212.123.145.69|:80... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 25381 (25K) [application\/octet-stream]\r\nSaving to: `\/tmp\/prep_optware'\r\n\r\n100%[========================================================================================================================================&gt;] 25,381\u00a0\u00a0\u00a0\u00a0\u00a0 48.4K\/s\u00a0\u00a0 in 0.5s\r\n\r\n2012-11-11 21:53:34 (48.4 KB\/s) - `\/tmp\/prep_optware' saved [25381\/25381]<\/pre>\n<p>Now run the prep optware script. I choose Y for all questions<\/p>\n<pre>root@BLT_ROUTER:~# sh \/tmp\/prep_optware<\/pre>\n<p>Then I did a reboot<\/p>\n<pre>root@BLT_ROUTER:~# reboot<\/pre>\n<p>Check free space on optware partition<\/p>\n<pre>root@BLT_ROUTER:~# df -h\r\nFilesystem            Size  Used Avail Use% Mounted on\r\nrootfs                6.3M  6.3M     0 100% \/\r\n\/dev\/root             6.3M  6.3M     0 100% \/\r\n<strong>\/dev\/discs\/disc0\/part5 755M 360M 359M 51% \/opt<\/strong><\/pre>\n<p>Now install Samba 3.5 (or anything greater than Samba 2) so that it works on Windows 7. I followed <a title=\"Samba 3\" href=\"http:\/\/www.dd-wrt.com\/wiki\/index.php\/Samba3\" target=\"_blank\">this<\/a> for the most part<\/p>\n<p>First, create backups of original files<\/p>\n<pre>root@BLT_ROUTER:\/opt\/etc\/samba#    cp \/opt\/etc\/samba\/smb.conf \/opt\/etc\/samba\/smb.conf.copy\r\nroot@BLT_ROUTER:\/opt\/etc\/samba#  cp \/opt\/etc\/init.d\/S80samba \/opt\/etc\/init.d\/S80samba.copy<\/pre>\n<p>Then turn off the existing Samba service<\/p>\n<pre>service samba stop\r\nservice samba off<\/pre>\n<p>and then install Samba (I added Samba 3.5<\/p>\n<pre>ipkg-opt remove samba2 \r\nipkg-opt install samba35\r\nipkg-opt install samba35-swat<\/pre>\n<p>After doing this I saw an error:<br \/>\nAfter removing file and starting noticed and error<\/p>\n<pre>grep: can't load library 'libpcre.so.1'<\/pre>\n<p>I simply ran updates\/upgrades to fix the problem<\/p>\n<pre>Update OTWR\r\nipkg update\r\nipkg upgrade<\/pre>\n<p>Other in some forums had posted the following symbolic link fix, but my update above seemed to do the trick:<\/p>\n<pre>\t\r\nln -s \/opt\/lib\/libpcre.so.1 \/opt\/lib\/libpcre.so.0<\/pre>\n<p>With Samba 3.5 now isntalled it is time to get it configured for the USB drives. First check partitions to determine which name to setup the mounts to.<\/p>\n<pre>root@BLT_ROUTER:~# more \/proc\/partitions\r\nmajor minor  #blocks  name\r\n\r\n  31     0        192 mtdblock0\r\n  31     1       7936 mtdblock1\r\n  31     2       6405 mtdblock2\r\n  31     3         64 mtdblock3\r\n  31     4        128 mtdblock4\r\n   8     0  976762584 sda\r\n<strong> 8 1 975711228 sda1<\/strong>\r\n   8     2          1 sda2\r\n   8     5     785408 sda5\r\n   8     6     261120 sda6\r\n   8    16  976762584 sdb\r\n <strong> 8 17 975699964 sdb1<\/strong>\r\n   8    18          1 sdb2\r\n   8    21     921600 sdb5\r\n   8    22     136192 sdb6<\/pre>\n<p>SDA1 and SDB1 are my external 1TB USB drives. Plug in each one one at a time to determine which block size belongs to which harddrive. The following is just another view of the above.<\/p>\n<pre>root@BLT_ROUTER:\/mnt# fdisk -l\r\n\r\nDisk \/dev\/sda: 1000.2 GB, 1000204886016 bytes\r\n255 heads, 63 sectors\/track, 121601 cylinders\r\nUnits = cylinders of 16065 * 512 = 8225280 bytes\r\nDisk identifier: 0x4d0b4b49\r\n\r\n   Device Boot      Start         End      Blocks   Id  System\r\n\/dev\/sda1               1      121471   975711228+   7  HPFS\/NTFS\r\nPartition 1 does not end on cylinder boundary.\r\n\/dev\/sda2          121471      121602     1048576    f  W95 Ext'd (LBA)\r\nPartition 2 does not end on cylinder boundary.\r\n\/dev\/sda5          121471      121569      785408   83  Linux\r\n\/dev\/sda6          121569      121602      261120   82  Linux swap \/ Solaris\r\n\r\nDisk \/dev\/sdb: 1000.2 GB, 1000204886016 bytes\r\n255 heads, 63 sectors\/track, 121601 cylinders\r\nUnits = cylinders of 16065 * 512 = 8225280 bytes\r\nDisk identifier: 0x11c21da9\r\n\r\n   Device Boot      Start         End      Blocks   Id  System\r\n\/dev\/sdb1               1      121470   975699964+   7  HPFS\/NTFS\r\nPartition 1 does not end on cylinder boundary.\r\n\/dev\/sdb2          121470      121602     1059840    f  W95 Ext'd (LBA)\r\nPartition 2 does not end on cylinder boundary.\r\n\/dev\/sdb5          121470      121585      921600   83  Linux\r\n\/dev\/sdb6          121585      121602      136192   82  Linux swap \/ Solaris<\/pre>\n<pre>\r\nroot@BLT_ROUTER:\/tmp# blkid\r\n\/dev\/sda1: UUID=\"D4DC4E64DC4E414A\" LABEL=\"1TB ExtnDrive\" TYPE=\"ntfs\"\r\n\/dev\/sda5: LABEL=\"\/Optware\" UUID=\"0a911958-f81c-51aa-e421-3c2f22fbb048\" TYPE=\"ext2\"\r\n\/dev\/sda6: LABEL=\"Swap\" UUID=\"5d705f77-397f-868e-cf52-545be358059c\" TYPE=\"swap\"\r\n\/dev\/sdb1: UUID=\"FC0C24480C23FBF0\" LABEL=\"BackupDrive\" TYPE=\"ntfs\"\r\n\/dev\/sdb5: LABEL=\"Optware\" UUID=\"9515a4ae-351b-f102-a517-a196dcb45fa8\" TYPE=\"ext2\"\r\n\/dev\/sdb6: LABEL=\"Swap\" UUID=\"1bb9e834-1bf9-d98b-0a1f-d8bac631f5c5\" TYPE=\"swap\"\r\n<\/pre>\n<p>Next, edit \/opt\/etc\/automount to set the USB drives mount point to the desired location, as I didn&#8217;t care for the default too much. Leave \/opt as is. I changed my USB drive partitions to \/tmp\/mnt and \/tmp\/mnt2<\/p>\n<pre>root@BLT_ROUTER:\/opt\/etc# more automount\r\n\/opt 0a911958-f81c-51aa-e421-3c2f22fbb048 ext2\r\n\/tmp\/mnt D4DC4E64DC4E414A fuseblk\r\n\/tmp\/mnt2 FC0C24480C23FBF0 fuseblk\r\n\/tmp\/d 9515a4ae-351b-f102-a517-a196dcb45fa8 ext2<\/pre>\n<p>Next configure the samba configuration files to include the USB drives.\u00a0 Make sure the workgroup is the same as your windows computers (default is WORKGROUP)<\/p>\n<p>I changed the hosts allow and interfaces lines, though I don&#8217;t recall why now<\/p>\n<pre>hosts allow = 192.168.0.0\/16 10.0.0.0\/8 172.16.0.0\/12 127.0.0.0\/8\r\ninterfaces = 192.168.1.1\/24 192.168.1.1\/255.255.255.0<\/pre>\n<p>Enable WINS Support<\/p>\n<pre>wins support = yes<\/pre>\n<p>Then in the share definitions section I added the text below to assign the Windows share name to the desired path. All the other default shares are commented out.<\/p>\n<pre>[BackupDrive]\r\npath = \/mnt\r\nvalid users = www-data nobody root\r\npublic = yes\r\nguest ok = yes\r\n;BT\r\nread only = no\r\n;\r\nwritable = yes\r\nprintable = no\r\nforce user = root\r\ncreate mask = 0765\r\n\r\n[1TBDrive]\r\npath = \/tmp\/mnt2\r\nvalid users = www-data nobody root\r\npublic = yes\r\nguest = ok\r\nread only = no\r\nwritable = yes\r\nprintable = no\r\nforce user = root\r\ncreate mask = 0765\r\n\r\n[homes]\r\n   valid users = %S\r\n   read only = no\r\n   browseable = no\r\n\r\n[Optware]\r\npath =\/opt\r\nforce user = root\r\nread only = no\r\nguest ok = yes<\/pre>\n<p>Save the config file and restart Samba<\/p>\n<pre>service samba stop<\/pre>\n<p>Everything should be up and going.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a recap of an old project. following this straight through won&#8217;t be enough to redo what I&#8217;ve done, but the websites and hints that I followed are linked throughout this post. I bought a Belkin PlayMax 600HD router from Best Buy because I read in some review that I could do port forwarding [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[77,75,79,80,78,81,76],"class_list":["post-193","post","type-post","status-publish","format-standard","hentry","category-tech-talk","tag-belkin","tag-dd-wrt","tag-f7d4301","tag-f7d8301","tag-playmax-600hd","tag-port-forwarding","tag-usb"],"_links":{"self":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=193"}],"version-history":[{"count":23,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/193\/revisions"}],"predecessor-version":[{"id":497,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/193\/revisions\/497"}],"wp:attachment":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}