• 1 Post
  • 20 Comments
Joined 1 year ago
cake
Cake day: June 10th, 2023

help-circle







  • Some time ago I’ve done a “public IP implementation” on my VPS when I was on mobile network (no public IP).

    Basically set up IPSec/Wireguard on VPS and connect your router to it. Then setup EoIP over VPN between VPS and your router. Then add EoIP tunnel to your LAN’s bridge in your router.

    Then setup all ports forwarding (using iptables) from your VPS to your router on LAN, so if you connect to your VPS using tcp80, it will be simply forwarded (NAT’ed) to your router. Except tcp22, for SSH to your VPS obviously…

    And now you have yet another public IP lol.

    This is not something you asked, but might give you some ideas.



  • Isn’t “MAC NAT” you are after? I’ve seen Mikrotik has this feature to perform NAT for bridge devices. EDIT: no, since your ISP might check at DHCP leases and realise that you are cheating. Go with regular router instead.

    Also regular router would be sufficient IMO. Also don’t forget to set static TTL value so your “ISP” doesn’t see that you have a router between your devices.

    Also create MAC address and save it. Always change it before connecting - you will have less trouble.




  • Here is the example docker-compose.yml:

    services:
      caddy:
        image: caddy
        container_name: caddy
        volumes:
          - ./caddy/data:/data
          - ./caddy/config:/config
          - ./caddy/Caddyfile:/etc/caddy/Caddyfile
        ports:
          - 80:80/tcp
          - 443:443/tcp
          - 443:443/udp
        restart: always
    
      lemmy:
        image: lemmy
        container_name: lemmy
        ...
    

    Before executing, create a new directory caddy i working directory, then create new file Caddyfile in it (lemmy is a container name):

    mydomain.com {
        reverse_proxy lemmy:<lemmy_container_http_port>
        encode zstd gzip
    }
    

    Then fix your UDP Buffer size, so it’s compatible with QUIC: https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes

    And that’s it. tcp80, tcp443 and udp443 should be reachable from anywhere, as Caddy out of the box uses ACME to retrieve TLS certificates for your domain.

    Give it a try. Honestly Traefik is shit for a simple load balancer. It’s more suited for large enterprises and kubernetes services, but it also has numerous issues, such as basic auth performance issues, lack of headers customization as well as in overall somewhat difficult configuration. Caddy makes it straightforward & simple, which is perfect for simple users who love to self-host.



  • I get your point and I agree with you, but let me clarify what I was talking about.

    The idea is a very small office where people don’t focus on working with computer, but rather use computer to help certain tasks, process payments, save something to MS Excel and so on. Those people don’t really need laptops, so stationary devices are perfect.

    Just focus on what I wrote. I am the “admin” of such “small office”.

    Intel nuc is perfect solution for me, the performance is more than enough and small size factor really takes the cake. I am really sad that NUC goes away and hope that soon there would be alternative. ✌️



  • Unpopular opinion: everyone focuses on productivity, then on features. Literally zero consideration for performance. Also lack of customization. I can flash Linux, hackintosh or any other random OS on any laptop I buy, but not on smartphone…

    Kind of sucks that my Cat S62 Pro smartphone suck ass with it’s slowness and lags and I can blame Cat as a manufacturer for that, but lack of standards (so I can flash generic OS onto it simply sucks).

    So I am forced to buy new phone every 1-2 years because it gets slow… 🤷

    Oh wait! Batteries are not replaceable! USB-C port is also incresibly hard to change!



  • Devops here. The company I work in has enforced managed Windows laptops.

    What I did was to get BIOS password, test everything in Arch Linux VM, everything works - my work laptop now runs on Arch Linux.

    Been 4 months and haven’t got cought. Also managed to get rid of company’s proxy server and DNS, because companys resources are available without proxy via VPN, and everything else - via proxy, so I wrote a bash script with the help of ChatGPT that implements “VPN Split” post-VPN connection, also removes company DNS servers from /etc/resolv.conf and 🎉. Works like a charm. I can even open p*rnhub and company wouldn’t even tell as it goes directly through my router. Also the laptop is now fast AF, zero proxy configuration (unlike in Windows for WSL), it’s perfect now.

    And that’s in a large international company where Windows/Macs are enforced. I guess I am genius there… 😅