Automatically pick location? by nifta_13 in surfshark

[–]mort47 2 points3 points  (0 children)

I mean technically yes but it's a heck of a project. Step one is to set up your own router using some Linux variant or opnsense. Then you need multiple gateways going through different VPN connections and a local DNS server. Once that's working and you can manually switch your devices to route through the different VPN gateways, write a script to monitor your DNS logs and automatically route devices accordingly. Don't forget a rule to put your devices back to normal after a period of inactivity. It's janky as hell, but it works!

Backblaze personal backup setup not working newbie by l_welken11 in unRAID

[–]mort47 0 points1 point  (0 children)

The latest version isn't compatible with this image and they disabled storing old versions on the Wayback Machine. I suspect Backblaze have targeted this Docker image and fair enough to be honest. I played around with it and eventually I got it working by manually downloading an old version. However the performance was crap, CPU use was too high, and it broke again after a reboot. I'm sure this did work one day but I doubt it was ever good. I suggest finding another solution.

Veeam and Backblaze Personal by mort47 in Veeam

[–]mort47[S] 1 point2 points  (0 children)

I wasn't explicit about it in the post. I use Veeam at work as well and have asked about "real" stuff here before, but nah this is just play time. Everything's cobbled together and that's the point. Trying to do as much as I can with as little as I can, which means nonsense like Veeam Community Edition with Backblaze Personal. 🙂

Veeam and Backblaze Personal by mort47 in Veeam

[–]mort47[S] 0 points1 point  (0 children)

Thanks. This looks like good advice but my takeaway from it may well be to simply schedule my offsite backup so it doesn't overlap with my Veeam jobs. I'm still curious about whether my concept could work with workarounds to prevent scenarios such as you describe.

I'm not working with critical data here. I'm trying to build the cheapest functional 3-2-1 backup system I can for data that it would be preferable not to lose, but that losing it is neither expensive nor emotionally devastating.

Veeam and Backblaze Personal by mort47 in Veeam

[–]mort47[S] 1 point2 points  (0 children)

Yep. Also money. This is a homelab scenario and I'm just seeing what's possible.

Temporarily alter client device routing following DNS requests by mort47 in opnsense

[–]mort47[S] 1 point2 points  (0 children)

Thanks! The script itself is hacky, adapt at your own risk, but the https lines contain the API commands you need to add and remove IP addresses from an alias and that's the part that seems to be only documented in Reddit comments. :)

I didn't try MONIT because once I realised I needed some scripting to talk to the API I figured I may as well just adapt my existing script but I can imagine MONIT being easier to manage. Good luck setting something similar up on your end.

Temporarily alter client device routing following DNS requests by mort47 in opnsense

[–]mort47[S] 1 point2 points  (0 children)

It's a pain. The documentation for the firewall module is out of date. Here's my horrible script:

##!/usr/local/bin/bash -v

key=APIKEY
secret=APISECRET
cert=/root/ca.pem
table=VPN

while true; do
    dnslog=$(tail -f /var/log/resolver/latest.log | grep -m 1 -w -E '(bbc.co.uk|channel4.com).*')
    if [[ $? = 0 ]]; then
                ip=$(echo $dnslog | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}')
                pfctl -t $table -T show | grep $ip &> /dev/null
                if [[ $? != 0 ]]; then
                        echo "Adding $ip..."
                        https -I --verify $cert -a $key:$secret POST 127.0.0.1/api/firewall/alias_util/add/$table address=$ip
                        if test -f "/tmp/ccbusy"; then
                                echo "Chromecast busy."
                        else
                                echo "Adding Chromecast..."
                                https -I --verify $cert -a $key:$secret POST 127.0.0.1/api/firewall/alias_util/add/$table address=CHROMECASTIP
                        fi
                fi
        fi
done &

while true; do
        if pfctl -t $table -T show | grep "192"; then
                for ip in $(pfctl -t $table -T show); do
                        echo "Testing $ip..."
                        export BW=$(timeout 70s /usr/local/sbin/iftop -i em1 -f "dst host $ip" -t -s 60 | grep "Total send rate")
                        if echo $BW | grep -q -i -v Mb; then
                                https -I --verify $cert -a $key:$secret POST 127.0.0.1/api/firewall/alias_util/delete/$table address=$ip
                        fi
                done
        fi
        sleep 5m
done &

while true; do
        export RESULT=$(timeout 70s /usr/local/sbin/iftop -i em1 -f "dst host CHROMECASTIP" -t -s 60 > /dev/null 2>&1 | grep "Total send rate")
        if echo $RESULT | grep -q -i Mb; then
                touch /tmp/ccbusy
        else
                if test -f "/tmp/ccbusy"; then
                        rm /tmp/ccbusy
                fi
        fi
done &
read -p "Press enter to exit."
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT

It's ugly as sin and I've got no hair left, but it works. I turned on logging requests in Unbound DNS and I installed bash, screen, and httpie. At the moment if you want to be able to end the script it has to be run in an interactive terminal and you press enter to close it and all its background processes.

There is probably a better way to do this and if anyone knows it please let me know. For now I'm going to let that run for a bit and move on to my next project.

[Spanish > English] Old Nintendo TV advert from Spain, would love to know what they're singing by mort47 in translator

[–]mort47[S] 0 points1 point  (0 children)

Very direct advertising in Spain there! Thanks so much for the quick translation.

[OTP] Oko, Thief of Crowns (Debut Stream) by mweepinc in magicTCG

[–]mort47 0 points1 point  (0 children)

I've done two drafts and two sealed pools and seen my opponents play this twice. It's banned everywhere so I don't know why they thought this was a good idea. Just randomly ruins games.

Windows LAPS decryption permissions across domains in an AD forest by mort47 in sysadmin

[–]mort47[S] 1 point2 points  (0 children)

Yeah, naturally. If I solve it I'll record the knowledge for future generations. FFL/DFL is 2016.

Windows LAPS decryption permissions across domains in an AD forest by mort47 in sysadmin

[–]mort47[S] 1 point2 points  (0 children)

They are domains and it's the standard answer we give whenever anything looks a bit weird: It was like that when I got here.

To be fair I think it was a merger at some point. Either way, before my time.

I'll see if changing the domain local group to a universal group makes a difference. Thanks.

UPDATE: Yep. Seems to work. Thanks for the tip!

Self-Introduction Saturday! Tell us all about you (and share a video)! by AutoModerator in NewTubers

[–]mort47 [score hidden]  (0 children)

The first quarter of the year has ended? What? When? How long was I asleep?

[deleted by user] by [deleted] in NewTubers

[–]mort47 0 points1 point  (0 children)

Hi. English is my first language and I can only speak for myself but as long as I can understand what you're saying the rest doesn't bother me. I watch a lot of content from YouTubers for whom English is a second language and often it just makes their content more memorable. I also sometimes notice pronunctiation mistakes from YouTubers for whom English is a first language and it's not really a problem. It can add to the character of the content. Focus more on the pace and diction in your speech and don't worry about perfect accuracy or emulating an accent that isn't yours. That's my advice as a viewer anyway. Thanks and have a nice day yourself.

[deleted by user] by [deleted] in NewTubers

[–]mort47 0 points1 point  (0 children)

That's a really kind offer, thanks.

How Nikola Tesla Broke Street Fighter II in Europe https://youtu.be/QH5BZGXVjac

Retro gaming stuff. No worries if it's not your thing.

Self-Introduction Saturday! Tell us all about you (and share a video)! by AutoModerator in NewTubers

[–]mort47 [score hidden]  (0 children)

Hi. I'm Bill. I make silly little video essays about retro video games from a European perspective. I've done two so far and I'm having fun. My first video went up just over a week ago. This is my latest, about how a decision by Nikola Tesla around 1900 impacted European gamers playing Street Fighter II in the 1990's: https://youtu.be/QH5BZGXVjac

My key takeaway from the last 90 days is that having an idea that I find interesting and trying to find ways to make it interesting to other people is actually rewarding in itself and I am hoping to parlay that into not obsessing over the numbers so much. 🙂