cleaning up
This commit is contained in:
parent
221b762dd0
commit
56333f2fde
@ -15,7 +15,7 @@ apt install mariadb-server
|
|||||||
systemctl start mariadb
|
systemctl start mariadb
|
||||||
systemctl enable mariadb
|
systemctl enable mariadb
|
||||||
|
|
||||||
mariadb-secure-installation
|
#mariadb-secure-installation
|
||||||
|
|
||||||
mysql -u root -p
|
mysql -u root -p
|
||||||
|
|
||||||
@ -30,5 +30,3 @@ EXIT;
|
|||||||
# using 3 interfaces
|
# using 3 interfaces
|
||||||
# out {DHCP} only for install and update
|
# out {DHCP} only for install and update
|
||||||
# in {db} static
|
# in {db} static
|
||||||
# tailscale tunel to velocity {must edit conf file}
|
|
||||||
# echo lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file > /etc/pve/lxc/$server_id.conf
|
|
||||||
|
|||||||
@ -0,0 +1,18 @@
|
|||||||
|
apt update
|
||||||
|
apt upgrade
|
||||||
|
apt install vim curl
|
||||||
|
|
||||||
|
curl -fsSL https://tailscale.com/install.sh | sh
|
||||||
|
|
||||||
|
echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
|
||||||
|
|
||||||
|
echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
|
||||||
|
|
||||||
|
sysctl -p /etc/sysctl.d/99-tailscale.conf
|
||||||
|
|
||||||
|
printf "What ip range you want to subnet? [10.0.0.10/24] \n"
|
||||||
|
read ip_range
|
||||||
|
|
||||||
|
tailscale up
|
||||||
|
|
||||||
|
tailscale set --advertise-routes=$ip_range
|
||||||
Loading…
x
Reference in New Issue
Block a user