heredago's blog

September 17, 2013

how to connect to a VPN server on a TomatoUSB router and then only tunnel the traffic to specific hosts

Filed under: Uncategorized — Tags: , , , , , , , , , — heredago @ 20:48

1- setup openvpn connection on the router


2- ImageImageImageImage




2- only tunnel specific hosts route through openvpn client on tomato

I finally did it 🙂

I’m using v1.28.9054 MIPSR2-beta K26 USB vpn3.6, but should work on others, as it’s networking.

OpenVPN wants to setup all your routing, you’ve got to stop that…

In VPN Tunneling/Client/Basic: Uncheck “Create NAT on Tunnel”

In VPN Tunneling/Client/Advanced: Uncheck “Redirect Internet Traffic”

Custom Configuration, add the line: route-nopull


In Administration/Scripts/Firewall, make sure you have:

iptables -I FORWARD -i br0 -o tun11 -j ACCEPT
iptables -I FORWARD -i tun11 -o br0 -j ACCEPT
iptables -I INPUT -i tun11 -j REJECT
iptables -t nat -A POSTROUTING -o tun11 -j MASQUERADE

Reboot, and viola, you got nothing…

Then, in a VPN up script (Best choice), or if you have your VPN start with WAN, put in your Administration/Scripts/WANUP

sleep 30
ip route flush table 200
ip route flush cache
ip rule add from lookup 200
ip rule add from lookup 200
VPN_GW=`ifconfig tun11 | awk '/inet addr/ {split ($2,A,":"); print A[2]}'`
ip route add table 200 default via $VPN_GW dev tun11

This probaly isn’t the “best” or “proper” way to do it, but it works. Now only and192.168.2.13 will go through the OpenVPN tunnel. All other devices, and their traffic will go local.

This was extremely important for me, as i didnt want my Transmission torrent traffic going over the VPN. Some guy like SgtPepperKSU is looking at this and probably laughing… Anyway, from one Routing noob to another…


September 3, 2013

Recover deleted files (reddit)

Filed under: Uncategorized — Tags: , , , , , , , , , , , — heredago @ 16:37


Was the format the last thing that she did? It’s extremely vital not to write anything on that drive.


[–]NoSleepReader [S] 3 points 9 hours ago (4|1)

Yes. Formatting was the last thing she did.


[–]king_of_blades 15 points 9 hours ago (18|3)

Then I’d say that there’s almost 100% chance that she will be able to restore the data. That should make her panic less. That said, if it’s so important for her business I’d go to a data recovery company.

I probably would be able to help you if you know your way around a computer, but I’d really advice you get some professional help.


[–]NoSleepReader [S] 1 point 9 hours ago (5|4)

I’d say I know my way around a computer. When googling a lot of people recommend downloading programs. Are these of any use?


[–]TheBigC 13 points 7 hours ago (15|1)

I would reiterate King’s comments. Unless this is something you have done in the past, take the drive to a professional. They will charge $100 but your mother will likely get every single picture back. Then setup a proper backup and consider yourself lucky. The reason I say professional is that yes many utilities will recover deleted files, you may only have one opportunity to do it right. Do it wrong, or use a poor tool and you are done.


[–]TheBigC 3 points 1 hour ago (4|1)

I would add if you or your Mom thinks $100 is too much money, then the pictures aren’t that vital.



[–]king_of_blades 5 points 9 hours ago (5|1)

I assume that the drive is connected to a functional PC. She didn’t delete her OS? While it’s theoretically possible to fix the drive “in place”, meaning to make the deleted files appear on the drive again, I’d try to avoid modifying the drive in any way. That will let you seek professional help it you can’t restore it yourself.

Do you have another drive with enough free space to restore the files to it?


[–]NoSleepReader [S] 2 points 9 hours ago (3|1)

Yea we also own a 3TB external hard drive.

The drive is connected to a functional PC and the only thing deleted was everything on the 1TB external hard drive.

I’m very tired. It’s 2AM, I’m going to go to sleep. I will be sure to leave everything as is and follow up with you in the morning. I appreciate the help.


[–]king_of_blades 7 points 9 hours ago* (8|1)

Awesome. Download Testdisk.

If you use Windows this would probably be the best version to use.

EDIT: Didn’t notice that bit about going to sleep. It’s 2 PM where I live, so I can’t promise when I’ll be able to reply, but I’ll do it as soon as possible.


[–]princeofcash 1 point 7 hours ago (1|0)

Aside from it being free I’ve never tried TestDisk how does it compare to ontrack or to GetDataBack


[–]king_of_blades 2 points 7 hours ago (2|0)

Never used them. It’s a console application, so the learning curve may be a bit steep, but it does work. It seems to focus more on recovering lost partitions than on recovering individual files.



[–]capn_untsahts 2 points 7 hours ago (2|0)

Haven’t used those other programs but testdisk is very good at retrieving data, but it isn’t particularly user-friendly. Not super-complicated though.



[–]NoSleepReader [S] 1 point 8 hours ago (2|1)

Ok I downloaded it. Now what?


[–]king_of_blades 3 points 8 hours ago (3|0)

See my edit to my previous post. Go to sleep if you need, the whole process will take a few hours. Most of it just waiting for files to copy, but still.


[–]NoSleepReader [S] 2 points 8 hours ago (2|0)

I want to start it before I go. Do I open testdisk or photorec exe?




[–]excolatur 4 points 1 hour ago (4|0)

Before you use any of the file recovery software people are suggesting, the first thing you need to do is make a bitstream image of the drive using software like FTK Imager. And then you use the recovery software on that image.


[–]Lilday 1 point 3 minutes ago (1|0)

FTK Imager also has the function to export any files found…although I think you’d have to do them all one by one.



[–]garrettskj 4 points 8 hours ago (5|1)

As soon as you recover it…

Seriously best $60.


[–]NoSleepReader [S] 1 point 8 hours ago (1|0)

I appreciate this. I will look into this for sure!



[–]xKhanix 3 points 8 hours ago (3|0)

Be aware that if she has many pictures, songs …etc then all will be without names. Due to the way windows partitions save the names of files. (I have done a few disk recoveries in my days)



[–]fongaboo 3 points 5 hours ago (3|0)

I have had great results with R-Studio.



[–]YoshiMagick 2 points 1 hour ago (2|0)

I recommend DMDE to rewrite the file structure.

Hard Drives usually keep backups of the file structures in the last 128 sectors of the drive, and they can usually be recovered after a format.

You can use recuva as well, but DMDE would retain most of the names of the files as well as the folder structure. Recuva will probably give them all back to you unnamed and in one folder.

DMDE is a rather techie tool though. I recommend reading the manual or googling some guides.

Just keep in mind that the more unsuccessful tries you have with software the less of a chance you will get more of your files back. Also, after this is over, you might consider making a back up or two.



[–]almyz125 1 point 5 hours ago* (1|0)

I’ve tried recuva with no luck. The link above has worked for me. It’s not free though…

one of the tools in the link above is specifically for lost or corrupted photos. ^

There is also some open source tools for linux.



[–]unabletofindmyself 1 point 19 minutes ago (1|0)

I’ve used Restorer Ultimate (and other older versions of it) many times over the past 6-7 years to recover multiple TB of data across many drives and my even a crashed RAID-5 array, granted it didn’t restore everything, but it got about 85%.



[–]jstarlee 1 point 1 minute ago (1|0)

Please drill the concept of backing up data into her head for everyone‘s sake.

Good luck.

May 26, 2013

bbs betterbatterystats

Filed under: Uncategorized — Tags: , , , , , , — heredago @ 18:09

Process shows which apps consume the most CPU time. Most apps should never go past a minute or so for a single battery charge. (Unless you’re using them ALOT or they are 3D games)

Partial Wakelocks shows processes that keep your phone awake even if the screen is off. They are using resources in the background. If you’re playing podcasts with the screen off… They will show here as AudioOut or something similar. Background data transfer, processing, etc…

Other misc data about phone state… How long wifi was on… how long the phone’s been awake… screen on… phone talk time… etc

Kernel Wakelocks things that the kernel is doing to keep the phone awake. Dragons be here. Partial wakelocks usually lets me find the culprit apps.

Alarms this is how many times each app has woken up your phone to do something. Apps that are ranked high are waking your phone up all the time. Llama with polling sometimes hits into the thousands for me.

In the end each of these panels is just a tool to point you in the direction to look. By combining all of the data and doing some trial app uninstalls you can usually find out what’s killing your battery pretty quick.



March 4, 2013

Automatic Local Backup Software

Filed under: Uncategorized — Tags: , , , , — heredago @ 17:21


I use ‘Cobian Backup’ — lightweight and runs as a service.


Here are the options I like best:


SyncBack[1] if stuff is large and on you want it on another local HDD



Roadkil’s Unstoppable Copier – througha task is easy enough.



February 19, 2013

Android Apps for IT Professionals

Filed under: Uncategorized — Tags: , , — heredago @ 07:16

I’ve yet to see, nor find, a thread that lists useful apps for an IT professional or techs. Here’s some that have been recommended to me, and that I use personally. Add yours below and I’ll update the list. Please specify if it requires root access.

Directory Services


  • Rhybudd[3] – Viewing Zenoss alerts from your phone
  • aNag[4] – Nagios monitoring tool
  • Core Temp Monitor[5] – Monitor node temperature



  • Cam Scanner[7] – Create a PDF via a picture of a document


  • SQLTool Pro Database Editor[8] ($2.99) – Connect and manage MySQL, SQL Server, PostgreSQL, Sybase, and Oracle databases from your Android device.

External Storage

  • Nexus Media Importer[9] ($2.99) – Allows you to connect an external storage device via a USB OTG cable. Requires the device to have USB host control natively installed. [LIMITED COMPATIBILITY]

File Browsers

  • Solid Explorer[10] ($1.99) – Great file browser that can also do SMB, FTP, SFTP, and Cloud connections
  • ES File Explorer[11] – Also does FTP, SMB, and cloud connections
  • X-Plore File Manager[12] – FTP, SMB, Cloud connections, and some other functionality



Network Utility Apps

  • Wifi Analyzer[15] – Self explanatory
  • Landroid[16] – Basic networking tools such as ping, tracert, etc. from your phone
  • CIDR Calculator[17] – Subnet calculator
  • Wifi Kill[18] – Disable internet connection for a device on the same network [REQUIRES ROOT]
  • Shark Rooted[19] – Capture packets on Wifi and mobile data [REQUIRES ROOT]
  • Shark Reader[20] – Read pcap files
  • Android PCAP Capture[21] – Uses an external NIC connected via an OTG USB cord to capture network traffic
  • Fing[22] – Large package of network tools

Note Taking

  • Evernote[23] – Cloud based note taking

Password Storage

  • LastPass[24] – Password storage/auto fill. Syncs with other devices and desktops/laptops
  • KeePassDroid[25]


  • Pinout[26] – Diagrams of cable pin types

Remote Access


  • dSploit[34] -Multipurpose security tool with: Wifi cracking, port scanning, deep inspector, login cracker, kill connection, injection, vulnerability testing, and a lot more. [REQUIRES ROOT]


Sync Tools

  • FolderSync[39] – Backup selective folders with different methods



February 4, 2013

dsploit to replace wifikill and droidsheep

Filed under: Uncategorized — Tags: , — heredago @ 17:49

Google Play MArket enabler unlocker to get Apps that are US restricted for ex

Filed under: Uncategorized — Tags: , , , , , — heredago @ 17:48

Market enabler


[–]saultymoosepickles 8 points 1 day ago (8|0)

Market-Enabler is an application to fake the phone’s location and access markets from other countries. Android market is separated into regions (country and carrier specific) and some apps are just enabled for a specific country and not available to the other Countrys.



[–]Mr_R0LTZ N4, NS4G 3 points 23 hours ago (3|0)

Link to app. I think is the latest version, even if it was released January of 2012.


[–]shadowdude777 Galaxy S3 Verizon, CM 10 4 points 19 hours ago (4|0)

To be fair, this is basically a build.prop modifier. It doesn’t need to be updated unless a new version of Android changes build.prop.

Dood’s Music Streamer. Search and play from grooveshark for free.

Filed under: Uncategorized — Tags: , — heredago @ 17:45

Dood’s Music Streamer. Search and play from grooveshark for free.

Here’s the link[1] .   And save them for offline listening as well.



also alternative:

Tinyshark it is a grooveshark player that allowed you to cache songs to play offline. Basically it was a free version of spotify but better in every way


[–]Mr_R0LTZ N4, NS4G 6 points 23 hours ago (6|0)

Both TinyShark and TinyShark Downloader can be found here.





Auto-resume ringer after muting it for a meeting / movies / class

Filed under: Uncategorized — Tags: , , , , , , — heredago @ 16:38


Prevent app from auto-starting on Android

Filed under: Uncategorized — Tags: , , , , — heredago @ 00:14


I’ve been using this to keep an eye on apps that are going out of control. Android handles memory just fine, you need to watch out for apps using hte CPU running in hte background that chew through your battery.…hdoglite&hl=en

I also used Autostarts (or a free alternative) to stop some apps from starting e.g. I don’t use twitter so it doesn’t need to start and why the hell does facebook need to start with the phone. Also get faster reboot times.


Older Posts »

Create a free website or blog at