• 7 Posts
  • 103 Comments
Joined 2 years ago
cake
Cake day: July 2nd, 2023

help-circle
  • To be honest I don’t really know, but I know that what you want can easily be solved with SOCKS5 proxy. I think Wireguard and other VPNs are added to encrypt the traffic. There are also other alternatives to SOCKS5 proxy adding encryption.

    In Wireguard you have those Allowed IPs, you can allow only those IPs to be reachable from outside and you can configure them per client if I am not wrong. I think the easiest way would be for you to run those services over Docker, that way each server will have an IP from your docker network and you can isolate the traffic. https://www.procustodibus.com/blog/2021/03/wireguard-allowedips-calculator/

    My personal suggestion is to spin up a VM, install Debian, Ubuntu, or whatever your poison is, run docker compose or podman compose, spring up a Docker or two and Wireguard and try to achieve what you want. Heck you can even run Wireguard from a container. Once confident with your setup you can migrate it to Nix.


















  • I am pretty sure your PC doesn’t block ICMP requests and you can get the MAC address of the IP address using the arp command and then check the first three octets against the MAC vendors database.

    This is all possible in Bash but the script will be slightly more complicated and will involve three different tools, ping, arp, curl.

    But I am sure you know how to check your PC IP address anyway.


  • One comment though, you are moving the bashrc and bash_profile instead of copying it. So consider fixing it in your instructions.

    You could have also run a for loop and ping all the IPs in your subnet. Something like this will work:

    for i in {1..254}; do ping -c 1 -W 1 192.168.1.$i &> /dev/null && echo 192.168.1.$i; done
    

    Presuming that your subnet is 192.168.1.0/24. This command will loop through all the IPs in this network and only print the one that are alive.

    I didn’t know that Steam have added an exception for /nix which is pretty cool. Thanks for sharing