I've been trying to configure IPTABLES in my server so I can share the internet from the server with another machine. The server IP is 192.168.10.1 (eth0), the connection is coming from 192.168.0.6 (eth0:2), the client is 192.168.10.10 (eth1 in the machine). I've tried using the commands from
with the correct changes, but I can't make it work, the client can ping 192.168.0.1 (where the internet is coming from), but it can't access the internet at all.
eth0 192.168.10.1 eth0:2 192.168.0.6 Currently has connection with both the client and the internet
eth1 192.168.10.10 Can ping both the router and the server