File tree 5 files changed +12
-18
lines changed
azure/internal-modules/azure-linux-vm
google/internal-modules/google-compute-instance
internal-modules/tailscale-install-scripts/scripts/additional-scripts
5 files changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ data "aws_ami" "ubuntu" {
27
27
28
28
filter {
29
29
name = " name"
30
- values = [" ubuntu/images/hvm-ssd/ubuntu-jammy-22 .04-*-server-*" ]
30
+ values = [" ubuntu/images/hvm-ssd-gp3 /ubuntu-noble-24 .04-*-server-*" ]
31
31
}
32
32
33
33
filter {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ data "aws_ami" "ubuntu" {
15
15
16
16
filter {
17
17
name = " name"
18
- values = [" ubuntu/images/hvm-ssd/ubuntu-jammy-22 .04-*-server-*" ]
18
+ values = [" ubuntu/images/hvm-ssd-gp3 /ubuntu-noble-24 .04-*-server-*" ]
19
19
}
20
20
21
21
filter {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ resource "azurerm_network_interface" "primary" {
23
23
private_ip_address_allocation = " Dynamic"
24
24
public_ip_address_id = var. public_ip_address_id
25
25
}
26
- enable_ip_forwarding = module. tailscale_install_scripts . ip_forwarding_required
26
+ ip_forwarding_enabled = module. tailscale_install_scripts . ip_forwarding_required
27
27
}
28
28
29
29
resource "azurerm_network_interface_security_group_association" "tailscale" {
@@ -73,8 +73,8 @@ resource "azurerm_linux_virtual_machine" "tailscale_instance" {
73
73
74
74
source_image_reference {
75
75
publisher = " Canonical"
76
- offer = " 0001-com- ubuntu-server-jammy "
77
- sku = " 22_04-lts-gen2 "
76
+ offer = " ubuntu-24_04-lts "
77
+ sku = " server "
78
78
version = " latest"
79
79
}
80
80
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ resource "google_compute_firewall" "tailscale_ingress_ipv6" {
45
45
46
46
data "google_compute_image" "ubuntu" {
47
47
project = " ubuntu-os-cloud"
48
- family = " ubuntu-2204 -lts"
48
+ family = " ubuntu-2404 -lts-amd64 "
49
49
}
50
50
51
51
resource "google_compute_instance" "tailscale_instance" {
Original file line number Diff line number Diff line change 6
6
7
7
echo -e ' \n#\n# Beginning ethtool udp optimization configuration...\n#\n'
8
8
9
- NETDEV=$( ip route show 0/0 | cut -f5 -d' ' )
9
+ NETDEV=$( ip -o route get 8.8.8.8 | cut -f 5 -d " " )
10
+ sudo ethtool -K $NETDEV rx-udp-gro-forwarding on rx-gro-list off
10
11
11
- for d in $NETDEV ; do
12
- ethtool -K $d rx-udp-gro-forwarding on rx-gro-list off
13
- if [ " $? " -ne " 0" ]; then
14
- echo -e ' \n#\n# ERROR: ethtool udp optimization failed.\n#\n'
15
- exit 1
16
- fi
17
- done
12
+ printf ' #!/bin/sh\n\nethtool -K %s rx-udp-gro-forwarding on rx-gro-list off \n' " $( ip -o route get 8.8.8.8 | cut -f 5 -d " " ) " | sudo tee /etc/networkd-dispatcher/routable.d/50-tailscale
13
+ sudo chmod 755 /etc/networkd-dispatcher/routable.d/50-tailscale
18
14
19
- for d in $NETDEV ; do
20
- printf ' #!/bin/bash\n\nethtool -K %s rx-udp-gro-forwarding on rx-gro-list off \n' $d | sudo tee /etc/networkd-dispatcher/routable.d/50-tailscale-$d
21
- chmod 755 /etc/networkd-dispatcher/routable.d/50-tailscale-$d
22
- done
15
+ sudo /etc/networkd-dispatcher/routable.d/50-tailscale
16
+ test $? -eq 0 || echo ' An error occurred.'
23
17
24
18
echo -e ' \n#\n# Complete.\n#\n'
You can’t perform that action at this time.
0 commit comments