Double your speed double your fun

I was at one of my in-laws neighbors homes the other day, he needed some help setting up Rabbit.TV and his Chromecast. I had never heard of Rabbit.TV, while it is cheap, $10 for the year, I found it very hokey and very difficult to navigate. Plus I believe it just links you to all the free content, but places it all in one convenient spot – I don’t know and not the point.

When I was all finished he asked if I wanted an extra cable modem he had. He had been mailed the modem in error or ended up not needing it after he bought it, I can’t remember which. I hesitated at first as I really need to stop collecting ewaste, but I took it and I am glad I did. I looked it up when I got home, nothing fancy just a Motorola SB6141. I was using a Ubee DDM3513 at the time. I originally has some Motorola Dinosaur but it had died, the Ubee is what was given to us in its stead. I haven’t had a lot of issues but I do feel it was sluggish at time. Not evidence to back it up thats just the overall feeling I was given from The Family. They two modems are both DOCSIS 3.0 the difference is (that would make a difference) that the SB6141 can handle “channel bonding of up to eight downstream channels and four upstream channels” (up to 300 Mbps downstream, 100 Mbps upstream). The Ubee is 4/4 (up to 171Mbps downstream, 122Mbps upstream). I Googled the hell out of the Motorola for a few hours and I came up with a lot of posts and forum comments on the performance. Most people advertised they were getting a higher Mbps with the SB6141 than other modems for their current speed tier (hitting 12Mbps on a 6Mbps account for example). So I decided to swap the modems out.

It actually went very smoothly, on Comcast’s side. I connected the new modem (SB6141) in place of the Ubee and plugged my netbook directly into it. It connected to the net within about 3 minutes or so. When I transferred the modem to the server/router is when I hit a snag. My ClearOS box wouldn’t grab a new IP address from the modem. If I watched it closely I could see it get the local 192.168.100.10 address, then drop it, then switch to the ISP public and then drop it 10 seconds later. Then I got to stare at the spinning loading logo forever. The netbook would grab it no problem every time. I power cycled the modem and the server/router many times, made no difference. I even tried cloning the MAC of the netbook on the server/router, it did take the clone but it made no difference either. What worked for me was to delete the ethernet card under “IP settings”. Mine is eth11 so I just deleted eth11 and then added it back in again. Voila it worked.

Speed tests ran from speedtest.net and speakeasy both report 12Mbps down, 1Mbps up. Prior to the modem switch I was only hitting 6.5Mbps, which is my speed tier cap. So 12Mbps on a 6Mbps speed tier – score, at least for now.

Update 10-22-2015: I have come to find an easier solution (other than not using Comcast and therefor not needing a cable modem). If you SSH into the box you can simply release and renew the IP of the ethernet port.

sudo dhclient -r your_nic followed by
sudo dhclient your_nic

For example my card is enp3s0 so I would type:

sudo dhclient -r enp3s0

That should release and renew the IP for you. I found this out after upgrading to ClearOS 7. The old trick of deleting and re-adding the NIC wasn’t working anymore. So it appears that it is not just Comcast and their cable modems, ClearOS has something to do with it.

ClearOS and FTP

Getting that same problem? Well apparently you are not alone, seems ProFTP and ClearOS don’t really work well out of the box. FileZilla would constantly timeout on listing the directories, so it would never actually connect. Transmit would timeout too, but it would spit out different errors, usually Error 162 Port Fail. After hours of digging I did find the problem, and the solution. It was actually pretty easy to fix (makes you wonder why the fix is not implemented?). Depending on your ClearOS setup YMMV and other steps may be required. I am running my ClearOS box in gateway mode, it is my server and router.

Start by forwarding all those ports required. Clear uses different ports for different things with FTP.
21 standard ftp port (internet say this is for home folders, but it connects me to flexshares). 60,000-61,000 are used for port 21 PASSIVE connections 2121 standard ftp port (internet says its for flexshares). 65,000-65,100 are used for port 21 PASSIVE connections. 989/990 SFTP ports.

To ditch the unroutable address warning toss this in your proftpd.conf file:
sudo nano /etc/proftpd.conf MasqueradeAddress ftp.mydomain.com  # using a DNS name

This did allow me to finally connect with Transmit with no issues. A friend of mine was able to connect with FileZilla after I made the changes. I had to change my FileZilla settings to use an Active connection versus a Passive or mine would refuse to connect. Odd.

I found these sites to be helpful, and thats where I got my information.
http://www.proftpd.org/docs/howto/NAT.html
https://www.clearos.com/clearfoundation/social/community/remote-ftp-access-through-nat-router-solved
https://www.clearos.com/clearfoundation/social/community/ftp-problem
http://forum.slicehost.com/index.php?p=/discussion/4491/ftp-error-162-port-failed/p1
http://www.theserverpages.com/articles/servers/cpanel/tweaks/Getting_passive_FTP_connections_to_work_through_a_firewall_properly.html
https://forum.filezilla-project.org/viewtopic.php?t=7315