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

reddit best treks trek lp lonely planet

Filed under: Uncategorized — heredago @ 16:47

more for the reddit comments

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.

Create a free website or blog at