Okay. I might be asking this again but none of the answers solved my problem.
I have a PC A which has eth0 (192.168.1.28/24) connected to another machine B's eth1 (192.168.1.11/24). A has another interface wlan0 which has dynamic IP and is connected to internet (but eth0 is not).
So the setup looks something like
--------------------------------- ----------
Internet ---- | wlan0 | A (my machine) | eth0 | ------ | eth1 | B |
--------------------------------- ----------
I want to access internet from eth1 of B. I can ping eth0 IP of A from B but not wlan0 IP.
I tried to masquarade eth0 but it did not work.
Is there any way to get around this?
ip_forward
?