###To laptop
Specify an IP address to eth0 (here 192.168.56.1)
sudo ifconfig eth0 192.168.56.1 netmask 255.255.255.0
Enable IP forwarding
sudo sysctl -w net.ipv4.ip_forward=1
Forward packets from eth0 to wlan0
sudo iptables -A FORWARD --in-interface eth0 -j ACCEPT
sudo iptables --table nat -A POSTROUTING --out-interface wlan0 -j MASQUERADE
###To device connected to laptop
Setup IP address for eth0,and add gateway
sudo ifconfig eth0 192.168.56.2 netmask 255.255.255.0
sudo route add default gw 192.168.56.1
Hi valp124 and any other, out there. Just for the records, if someone looks for the same infos :)
1st to make iptables rules persistent, install the "iptables-persistent" package, avaiable on every common linux distro
this will add your current tables to an autostart script
2nd to make routing persistent, edit /etc/sysctl.conf and add or modify following entry to "net.ipv4.ip_forward = 1"
think is verry common, checked with debian stretch
Cheers the-celtic