Skip to content

This mainly was made for if I needed to do it again in the future, but if someone can use it, more power to you!!

License

Notifications You must be signed in to change notification settings

mellow65/Debian-11-Unifi

Repository files navigation

This is a collection of some random scripts that I got tired of doing over and over. They are pretty specific to what I'm working on, but if they work for you, great!!

This is a copy of a Proxmox Helper script for filebrowser, but allows you to select the port you want to use.

bash -c "$(wget -qLO - https://github.com/mellow65/Debian-11-Unifi/raw/main/filebrowser.sh)"

This will automate the install of Docker

curl -o- https://raw.githubusercontent.com/mellow65/Debian-11-Unifi/main/deb12-docker.sh | bash

This section will set up your unprivlaged LXC container in Proxmox to be able to advertaise routes on your home network for tailscale and twingate. If you were to set it up with out this, you would be able to access your container, but not the rest of your network.

These lines must be added to your /etc/pve/lxc/1XX.conf file

lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file

Reboot container.

Install tailscale and twingate via their respectible recomended methods.

Twingate will output a copy/paste command from the admin page, there is nothing more to do in the lxc terminal.

Tailscale will requre extra configuration via the command line.

This will set up the networking in the container to allow advertising routes on your network. These are pulled from tailscales websites.

curl -o- https://raw.githubusercontent.com/mellow65/Debian-11-Unifi/main/prox_lxc_tail_twin.sh | bash

After setting up you can run this command, change IP address or ranges to fit your needs.

sudo tailscale up --advertise-routes=192.168.50.0/24,192.168.100.0/24

About

This mainly was made for if I needed to do it again in the future, but if someone can use it, more power to you!!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages