Skip to content

Commit f149ad9

Browse files
committed
feat: enable ipv6 support
1 parent 172849e commit f149ad9

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed

ansible/files/postgresql_config/pg_hba.conf.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,6 @@ host all all 10.0.0.0/8 scram-sha-256
8989
host all all 172.16.0.0/12 scram-sha-256
9090
host all all 192.168.0.0/16 scram-sha-256
9191
host all all 0.0.0.0/0 scram-sha-256
92+
93+
# IPv6 external connections
94+
host all all ::0/0 scram-sha-256

ansible/tasks/setup-system.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
copy:
128128
content: |
129129
127.0.0.1 localhost
130+
::1 localhost
130131
dest: /etc/hosts
131132
mode: 0644
132133
owner: root

ebssurrogate/scripts/chroot-bootstrap.sh

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,6 @@ EOF
100100
localedef -i en_US -f UTF-8 en_US.UTF-8
101101
}
102102

103-
# Disable IPV6 for ufw
104-
function disable_ufw_ipv6 {
105-
sed -i 's/IPV6=yes/IPV6=no/g' /etc/default/ufw
106-
}
107-
108103
function install_packages_for_build {
109104
apt-get install -y --no-install-recommends linux-libc-dev \
110105
acl \
@@ -141,19 +136,7 @@ GRUB_DEFAULT=0
141136
GRUB_TIMEOUT=0
142137
GRUB_TIMEOUT_STYLE="hidden"
143138
GRUB_DISTRIBUTOR="Supabase postgresql"
144-
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset console=tty1 console=ttyS0 ipv6.disable=1"
145-
EOF
146-
}
147-
148-
function setup_grub_conf_amd64 {
149-
mkdir -p /etc/default/grub.d
150-
151-
cat << EOF > /etc/default/grub.d/50-aws-settings.cfg
152-
GRUB_RECORDFAIL_TIMEOUT=0
153-
GRUB_TIMEOUT=0
154-
GRUB_CMDLINE_LINUX_DEFAULT=" root=/dev/nvme0n1p2 rootfstype=ext4 rw noatime,nodiratime,discard console=tty1 console=ttyS0 ip=dhcp tsc=reliable net.ifnames=0 quiet module_blacklist=psmouse,input_leds,autofs4 ipv6.disable=1 nvme_core.io_timeout=4294967295 systemd.hostname=ubuntu ipv6.disable=1"
155-
GRUB_TERMINAL=console
156-
GRUB_DISABLE_LINUX_UUID=true
139+
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset console=tty1 console=ttyS0 ipv6.disable=0"
157140
EOF
158141
}
159142

0 commit comments

Comments
 (0)