From 7bf1c214ef0b7555c429d87286467049877298c4 Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 3 Dec 2024 11:52:56 +0100 Subject: [PATCH] fix: TUN device error --- src/network.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/network.sh b/src/network.sh index 44e525b..8063cbb 100644 --- a/src/network.sh +++ b/src/network.sh @@ -177,6 +177,7 @@ configureUser() { configureNAT() { local tuntap="TUN device is missing. $ADD_ERR --device /dev/net/tun" + local tables="The 'ip_tables' kernel module is not loaded. Try this command: sudo modprobe ip_tables iptable_nat" # Create the necessary file structure for /dev/net/tun if [ ! -c /dev/net/tun ]; then @@ -198,8 +199,6 @@ configureNAT() { fi fi - local tables="The 'ip_tables' kernel module is not loaded. Try this command: sudo modprobe ip_tables iptable_nat" - # Create a bridge with a static IP for the VM guest { ip link add dev dockerbridge type bridge ; rc=$?; } || :