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)
Code:
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
Code:
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:
Code:
sudo iptables -F POSTROUTING --table nat
and you can see the rules with:
Code:
sudo iptables -L POSTROUTING --table nat
ok - that should be it, really.
Ako zariadim aby mi to fungovalo aj po reštarte pls?
zatiaľ to riešim len cez prepojenie dvoch windowsov....
Vie niekto ako na to?
sudo iptables-save
a ten sysctl by sa mal dat tiez nejako podobne, myslim ze je to v konfigu /etc/sysctl.conf
Internet device: ppp0 (mám to zlinkované s tým nas0)
Network device: eth0 (sietovka)
a nastastie mi to fici. klop-klop