Hello Genodians
After the update to Genode 24.02 one of our more complex run scripts got stuck when trying to download the test-results from the googletest that it did run before.
To narrow down the problem, I tried to run the libports/run/lighttpd.run both on 23.11 and 24.02 releases without any of our patches applied. Unfortunately I can't download index.html on both releases. The output is as follows:
!% wget http://10.0.2.55/index.html !--2024-03-18 09:49:24-- http://10.0.2.55/index.html !Connecting to 10.0.2.55:80... failed: No route to host.
Now I'm thinking, that my setup for the TAP device might not be correct, and would like to ask, if someone can give me a hint what might be wrong?
My distribution is Debian 12, and I currently use the following script, to set up the TAP device (commands taken from libports/run/fetchurl.inc and libports/run/lwip_lx.run):
!#!/bin/bash ! !set pipefail -e ! !user=pirmin !netdev=enp1s0 !tapdev=tap0 ! !sudo ip tuntap add dev $tapdev mode tap user $user !sudo ip address flush dev $tapdev !sudo ip address add 10.0.2.1/24 brd 10.0.2.255 dev $tapdev !sudo ip link set dev $tapdev addr 02:00:00:ca:fe:01 !sudo ip link set dev $tapdev up ! !sudo iptables -t nat -A POSTROUTING -o $netdev -j MASQUERADE !sudo iptables -A FORWARD -i tap0 -o $netdev -j ACCEPT !sudo iptables -A FORWARD -i $netdev -o tap0 -m state --state !RELATED,ESTABLISHED -j ACCEPT ! !sudo sysctl -w net.ipv4.ip_forward=1
The output from ip address, regarding the TAP device is as follows:
!2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 ! link/ether 58:47:ca:73:7b:fc brd ff:ff:ff:ff:ff:ff ! inet <ip-addr> brd <brd> scope global dynamic noprefixroute enp1s0 ! valid_lft 5956sec preferred_lft 5956sec !6: tap0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000 ! link/ether 02:00:00:ca:fe:01 brd ff:ff:ff:ff:ff:ff ! inet 10.0.2.1/24 brd 10.0.2.255 scope global tap0 ! valid_lft forever preferred_lft forever ! inet6 fe80::ff:feca:fe01/64 scope link ! valid_lft forever preferred_lft forever
Regards, Pirmin