Skip to content

Commit

Permalink
fix: TUN device error
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Dec 3, 2024
1 parent 8bff6ab commit df8d618
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,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
Expand All @@ -190,8 +191,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=$?; } || :
Expand Down

0 comments on commit df8d618

Please sign in to comment.