Showing posts with label encryption. Show all posts
Showing posts with label encryption. Show all posts

Wednesday, April 7, 2021

File Synchronization and Backup

 Having access to your files at any given time is a convenience some people today rely on so heavily, that as a person who often never really needs any particular files I find it humorous. Despite this, I have been rather obsessive about file access and backups in the past few years. This is so much so that I realized recently I have over 50 USB flash drives and 4 external hard drives accessible to the network. tow of the hard drives are specifically for TV and movies because I keep duplicates at the ready should an external fail on Kodi. One of them is an old Apple time machine that is ready to go, but I don't actually use it. Another is an old Seagate I have had for about 10 years or so now that keeps chugging along despite the slow speeds and for the small files I usually work with it works just as I need it. Taking it a step further, I have a RAID 1 setup on my main laptop with most of my documents duplicated onto a secondary laptop, and everything else was in Google Drive.


So here's the thing about all of this. Google Drive, like any other cloud service, can have terms changed, storage space altered, and on top of that, do you really want your files in "the cloud?" Truth be told you could easily just manually copy files onto each device you have and be relatively fine. So if you do have storage available, you should make use of it. So stop being lazy and back up your files yourself!


That being said, of course there are solutions that depending on the effort you put in, can be  Let me start out by saying that ANY local network solution can be an "anywhere" solution with tools like a VPN. I personally have OpenVPN setup at home because my Asus router has that option built in. You can create your own OpenVPN server fairly easily, but that's not the topic at hand for this.


For file synchronizing across multiple devices and types of devices, I was recently made aware of some rather cool software called Syncthing. The program name is rather unappealing, but the software is one of the coolest things I did not realize I needed in my life. What sets this apart from any solution I have seen before is that it is a "decentralized" file sync program. This means it uses a Peer-to-Peer model as opposed to the typical Server-Client model. If that doesn't make sense to you, view it like this. Normally you have a "centralized" server that handles all requests, files get uploaded to and downloaded from the server. In a peer-to-peer model, any device can serve files to any device asking and any device can ask any device that has the file for the file. This creates a huge advantage in file accessibility for a busy connection.


This means a few things to consider. The first is that you will need at least two devices to synchronize, not a hard thing to find now-a-days. The second is that rather than configuring a server, you must configure each device. As of writing this, I have four devices connected and the only limiting factor is a raspberry pi 4 connected to a very slow external. So here is some food for thought over any problems I have run into.


The first thing is be certain where you want the files stored and what you will sync. The reason being if you blanket a whole swath of folders, there is a chance some program specific or computer specific stuff will take up room on devices you do not need it to. I have separated all of my stuff to be synchronized out of the normal workflow and pieced it back together with shortcuts. I have also tried to break down the folders that get synced into separate items on the list for greater control and flexibility. The second thing to keep in mind is space on each device, what you need, and where. This is in addition to deciding a good folder structure.


With that in mind, there is a little catch on Linux. I have an external formatted in NTFS, which Linux is not exactly a fan of. I did this because the ntfs-3g stuff works better than ext drivers on Windows which love to lock up the file system and make everything unusable. If you have the same setup, the device should be mounted with the user you launch Syncthing under as the owner. If you launch it as root, there's probably nothing to worry about.


Head on over to the download page and install Syncthing on any and every device you want to be involved. For Windows, I suggest also installing the SyncTrayzor just for ease of access. To launch on Windows, you can use the SyncTrayzor in the start menu or you can launch it via command line with the syncthing command. To get to the console to set everything up you can either launch a web browser and go to http://127.0.0.1:8384/ or if you have SyncTrazor, there is an icon in your notification tray there is an icon that you can right click on and select "Open SyncTrayzor." We want to begin to lock things down a bit and make them better.


It will start out with asking you for statistical data, do as you want there. Then it will mention something about setting a username and password, let's do that. If you missed it on the box, just go to the "Actions" menu on the top right hand corner and select "Settings." Under the "GUI" tab at the top you can set a username, a password, and select a theme if you wish to change the color scheme. I also recommend you check the option to use HTTPS for the GUI because why wouldn't you encrypt when there's an option? Click save, then "X" out of the GUI and relaunch. If you are using the website, you need to change http://127.0.0.1:8384/ to https://127.0.0.1:8384/ if you checked the option. After that you should be all set where it has a default folder. Let's remove that. To remove a folder, you click on it and select "Edit" and then "Remove" on the edit page, bottom left corner this time. Now you can go through and add all the folders you want to sync, remember to organize them first. After you get all the folders set, you can start on the next device. Follow the same process. It does a good job at auto-discovery for when you add a device. When you add the device, the device you are trying to add will prompt for approval, nice little security measure.


When you have both devices set of any folder, if any, each is going to share (keep in mind if you want to merge a folder on both devices, sync one to the other and then move the files you want into that folder to make things easier). Just edit the folder on the device and use the "Sharing" tab up top and check any device you want to sync with.


Before you add more devices, I recommend you let everything sync and normalize before you add the next device. When you get a third setup, you will need to add it to  ALL devices you want to sync with, then on ALL the other devices elect to share with ALL devices expected to sync for the best stability and performance. You can keep a more-or-less centralized model, but I would take advantage of removing single point failures and have everything connect.


Now let's talk phone. Chances are the big thing is going to be syncing your photos to your computer. We can do that and ditch Google Photos or whatever other invasive "online photo album" software is the flavor of the day. It's generally more polite this way because chances are you will also help protect the privacy of friends and family that may make an appearance in your photos. Unless you're like me and the majority of your pictures are sleeping dogs, screw-ups at work, and memes.



That being said, just download the app for your phone. Add your folders in there, then we can add devices the cool way. Select the devices tab, hit the plus, then select that little QR code icon. Then on the device you need to add, on it's interface under "Actions" there is a "Show ID" option that gives you a QR code you can scan. As usual, it the device will want confirmation that you are trying to add it. Share your folders like normal.

So that's a quick overview of a fairly easy to use, decentralized, file sync program. So here are my thoughts.

The first is, it's really cool and I am quite happy with it. The interface is usable and it's just easy to setup and use. The only real critique I have is I really wish there was a built in function to move a folder. Instead I have to remove the folder in the control panel, move it on the system, then tell it to re-add the folder in the new location and wait for it to sync and a couple of times complain about "conflicting" files. Not a deal breaker for me, the advantages are just too good.

All that being said, I will continue in my search for secure and private alternatives for everyday conveniences and hope that you too will join me in taking the necessary steps to protect your data. Targeted marketing and advertisements on top of data breaches has hit levels it never should have all for the sake of what is convenient and I hope we can remedy it. If that's not your goal, then maybe you will at least find some cool software to check out.


Tuesday, April 6, 2021

Stay Safe and Private

 With everything going on in the world, I have been very busy between work and life. I wanted to make a quick post about some things you can do to keep yourself digitally safe during these uncertain times. So let's begin.


If you have an Android phone, there are some steps you can take to mask yourself a bit. While it's not perfect, you can hide yourself and your data a little better. The first big thing that popped into my brain was keyboard. Chances are that your keyboard is sending everything you type and your habits typing somewhere for the sake of analysis to make typing easier. However, do you really want everything you type sitting on a server that you do not know that well? I would rather not because I know the things I look up and some things are better off going to the grave. I found a keyboard that does enough to keep me happy and keep my privacy. AnySoftKeyboard is a good privacy focused keyboard. It can be challenging at times, but privacy is worth taking some extra time to spell check yourself. Another glaring hole for security is text messages. They are oh so convenient, however convenience should not take away from privacy and security. Signal has our backs here. It can do many other things, however text messaging is primarily what I use it for. You can also conveniently link it to your computer. Quite a cool app. More often than not another key function we use on a day to day basis is web browsers. Web browsers are nice, but they can harvest so much data you would not even think about. In this area there are multiple options. The cool thing about browsers focused on privacy is they usually block ads, so it's a great thing to have. I use DuckDuckGo, but Brave is also a good option. Privacy, Ad blocking, and there's alternatives to choose from, this is a great thing to see. Finally for the phone, if you are worried about Google tracking everything you download and install you can try other "play store" variations. I have been trying out APKPure. Aside from a lot of ads, there isn't anything I have found "wrong" with it. Keep in mind, there entirety of the Google Play Store is basically an ad platform, so it is what it is.a


Now we are going to start rolling into some crossover of what to use for any device you have. One of the greatest points of protection you can consider is a VPN. If you don't know what a VPN is, it stands for Virtual Private Network and allows you to connect to a different network remotely for accessing local resources in another network or region. The majority of them offer encrypted tunnels, meaning your traffic is going to be very difficult for people in between to see what you're doing. Even more so, by using a major VPN along side everyone else, the traffic to and from the VPN is going to be difficult to determine who it is for or from. There are MANY options like ExpressVPN, Nord VPN, Surf Shark, Private Internet Access and so on. For the sake of honesty, I use ExpressVPN. They are fast, outside of most legal jurisdictions you might worry about, have not had any data breaches to my knowledge, the price is reasonable, and I have not had a problem with them yet. I encourage you to do your own research and find what you think is best. Remember to install an equivalent app for your phone, computer, and any other device you can put it on.


Next thing to cover is Tor. Tor can be used while on a lot of VPNs, has an app for your phone, runs on the computer and so on. The main idea with Tor, in my opinion, is security through obscurity. Basically, it bounces the connection around like mad making it hard to trace. The concern you should have is here it is bouncing through. So I would not recommend using any passwords over the Tor network.


Email is another must have today. There are many secure email options now. The one I have been using is Proton Mail. There's an app to use it on your phone as well. Not much else to say other than do some research and find the best option for you.


Options for computer security include web browsers like Brave, or the modified version from Gab called Dissenter. I would mention others, but it is a long list that seems to grow every day. Regardless, I highly recommend if you have the option to use an addon called uBlock Origin. uBlock Origin is hands down the best ad block I have ever used with great performance. It works better than Ad Block Plus and feels far faster. So if you're an ABP fan, I would consider trying upgrading and see how it fits for you. Ads are notorious for tracking, so blocking them is a must for privacy and security. Not to mention most of the tracking is done for targeted advertising so just make it even harder for them to deliver there messages. Make them work for it.


That all being said, remember to use a firewall on any device possible, whenever possible. Do not connect to open wireless access or the wireless access of any store, hotel, or other. Be smart, question everything, and do your own research before you hit a download button or run a program, click a link, so on and so forth.


Other things I will hopefully have time to look into in the future will be a more secure camera app, file sync/storage, and so on. There is a lot to look into.


Now the big speech. This isn't about being paranoid. This isn't about hiding. This is about being aware of our own safety and security. This is about being aware of the information we allow others access to. For far too long we have sacrificed an understanding of what information there is being bought and sold about us purely for convenience sake. I am guilty of this myself. I hope you will join me in trying to become aware of all of this and taking the steps necessary to protect yourself in today's world. Not everyone has your best interest in mind and the only person you should trust absolutely is yourself. Please stay safe.

Saturday, December 30, 2017

Tech Review: Asus RT-AC3100

After finally getting fed up with my old router dropping devices, locking up, and corrupting firmware, I decided to get a new one. Working in IT, one would think I had a good idea of what to get, but I only had a list of brands in my head to avoid. So off to the Googles for lists of good routers. I came across some various Asus routers and figured I would check their site for what they have to offer. Generally my goal is to go for a newer device to avoid upgrading for as long as possible. In this case, it was a matter of I need something that also works well.

So after a same day in store pick-up, it was time to set up a brand new router. So as far as basic setup to get going, it was so simple and quick that I don't remember any of it. Seriously, it was simple with a fully guided setup. For me, that's too boring. After it was setup, it was time to fine tune and update. The control panel for this is nice, however setting IPs manually is very annoying and was hard enough to find where to do it. There is also a rather bad disconnect between what you can do with the phone app for it and what you can do on the actual control panel.

When it comes to security, it has a guided scan for that, making it easy enough to lock down the features. The one thing that annoyed me is that if you don't go through the security stuff, it has a lot of outside access enabled. I turned off all of the dydns stuff and it's actually in its own NAT anyway, so that won't work. Reason for that is I have a business class router that gives me four separate networks I could configure, but I just use one and only really have it because I use too much internet. As far as all the security options, a quick run through is:

  • Change default login
  • Strong wifi password (mine is way too long but it keeps others from learning it)
  • Wireless encryption
  • WPS disabled
  • Ping from WAN disabled (doesn't do much in my case because the WAN is a private network)
  • DMZ disabled (WAN is private, so not much of a problem either way in my case)
  • Port trigger disabled
  • Port forwarding disabled (If you lock down your device, this doesn't matter too much)
  • Anonymous login to FTP disabled (I keep FTP disabled as a whole because it's plain text, they need to add SFTP)
  • Disable anonymous login to network shares
  • Malicious website blocking enabled
  • Vulnerability protection enabled
  • Infected device prevention and blocking
These are all good things, especially when you share a network or even have kids using it. My niece was using her new laptop she got for Christmas while she was over and I noticed she clocked on an ad which took her down a string of fake search engines. I feel having a safe network both outside and in will be quite necessary in the not so distant future.

The parental controls on this seem quite simple, I have not tested to see what catches them though. I'd imagine that I'd trip off parental controls quite often. The options are to block porn, violence, gambling and illegal stuff (sounds like a good weekend to me), messengers, social media, file sharing and streaming. Basically everything that runs into either age restrictions or COPPA.

Now the QoS stuff is my favorite. It doesn't do much on a not so heavily used network, but it has all the monitoring stuff there for you to view. It's very basic in controls and I don't know how much of an impact ia will have, but games and streaming are high priorities for me, so that's the gist of my setup. There's also further information in a traffic analyzer that can give some more insight into individual device usages.

A feature I have setup and plan to use quite a bit is the samba share. I have a 2TB external that I keep for backups, but since it is NTFS that can cause some problems. Luckily, every modern device known to man now seems to support samba, so we can dance the night away with some file transfers. I have noticed that while trying to move files off of a time machine to the hard drive, it times out quite often. I think that's just a culmination of other problems and aging hardware. You can isolate file permissions, but keep in mind that the router login will have full access to everything. You can remove its access but when I tried that, everything came apart at the seems. I couldn't write to the drive.

One feature I have enables that I think will prove to be very useful is the IFTTT options. I have my phone text me when someone connects to the network. One major security hole I see though, is the Alexa support. When you can voice command your router to do things like turn on a guest network or even administration stuff, that just seems like poor design. Voice recognition is not secure, so why add it to something you are trying to keep secure?

The last feature I want to touch on is the mobile app. It works. It's not great. It makes a good monitoring tool and the family feature lets you group devices together per person to either check their usage or quickly block someone entirely from the network. You can check on things and do some basic tasks quickly. I personally want more, but I can't fault it on that. I fault it on the fact that some mobile features are not available on the control panel as far as I can find and the same goes the other way. This is the disconnect.

I could go on for quite a while point by point with features and such, but the rest are boring. So quick overview: firewall, url filtering, keyword filtering, dual wan with fallback and loadbalancing, 3g/4g through usb devices, ipv6, vpn, WTFast integration, ssh (yay!), telnet (why?!), ping, traceroute, and nslookup. There are probably other things I missed, but whatever.

So, coverage and reliability. I live in a small house that was not designed with networking in mind. This router is made for large area coverage. My signal goes all over mu .98 acres and beyond. I have no idea where the signal ends. I have not had a device drop off for the two days I've had the router, but here's the thing. There is the AC88U that is the same 3100 class router, but with an extra network card that has 4 more ports. That one has a lot fo complaints about it just suddenly not working or things dropping off. I imagine it's a bit of user error and a bit of hardware not playing nice. This is just a guess. There were fewer complaints about that on this router, and by fewer I mean enough to chalk up to purely user error, mishandling, or actual defects on those specific devices. So I'm confident that it will hold up fine.

Now for the conclusion. Yes I would recommend it to others, even the less tech-savvy. In fact, I think it was made for the less savvy with a few bones thrown for the more technical minded. I've personally never had a problem with Asus before, but I have had problems with some of the pairings with Asus. So until the router decides to go down in a blaze of glory, I'd say it's a good deal. It's not cheap, but seeing as it is the only device that will be the backbone of most people's home network, it's something you should spend a little extra on.

Now for some after stuff of my network. I got a business class router/modem thing from Xfinity that I'm not going to check what the model is because that requires getting up. I just use one port right now that goes to the router. The router goes off to a very old switch that goes to everything else in the house. I have a newer switch, but that is in the office right now because I was working on stuff but then the RAM died and I'm too cheap and lazy to replace it right now. One of the ethernet cords goes to the entertainment center, which has an old time machine acting as a switch because reasons. I need a couple of new switches, but I'm too cheap to mess with what seems to work for now. The old switch is an HP procurve 8 port managed piece of junk and the newer one in the office is an unmanaged Cisco 8 port. I got the managed one to mess around with vlans, but I don't have anything that has a reason for that, so that's just me taking ideas from work home with me for no reason other than it's fun. Eventually I will do everything all proper, but for now it works.