Podarilo sa mi to dočastne spojazdniť pomocou:
ok - slowly. This should not be such a big problem - as Both network cards seems to be configured already.
I'll describe how to do a temporary setup - none of these changes will last if you reboot.
Firstly, i want you to run this command (it will turn ip forwarding on, which is needed if you want packets to pass through the machine)
sudo sysctl -w net.ipv4.ip_forward=1
Ok, now that is done, you'll need to masquerade your traffic from the internal network - so that the internet knows where to send the packets back to.
This can be done with
sudo iptables -A POSTROUTING --table nat -o ppp0 -j MASQUERADE
i am not sure if you need to use usb0 or ppp0 here - you can delete this rule again with:
sudo iptables -F POSTROUTING --table nat
and you can see the rules with:
sudo iptables -L POSTROUTING --table nat
ok - that should be it, really.
Ako zariadim aby mi to fungovalo aj po reštarte pls?