It works, but there is a little problem:
If I connect machine while rPi is running, the guest device on eth0 doesn't get an IP address.
OK, this is not 100% true, because:
A: if I am connecting a Macbook, then it's ok. Maybe because the avahi part? It needs 10-15 sec to get a dhcp ip address.
B: Ubuntu live CD: doesn't work, I must manually run
to get an IP address./usr/sbin/parprouted eth0 wlan0
/sbin/ip addr add $(/sbin/ip addr show wlan0 | perl -wne 'm|^\s+inet (.*)/| && print $1')/32 dev eth0
I am searching about this problem, but there is not much information. I found a german blog post:
And there is a little monitoring script. I haven't tried yet, but isn't there a better option than a monitoring script running every minute with cron?"Calling parprouted in / etc / network / interfaces works only after restarting the Raspi. If, however, the device connected via the LAN port is disconnected from the power, the LAN connection no longer works."
Maybe directory /etc/network/if-up.d/ can help me?