Hi Raffy, thanks for thatI use the Internet from eth0 and i try to share connection (NAT) to eth1.
I set eth1 with ip 192.168.0.1 mask 255.255.255.0 .
eth0 is with net ip (real) , mask 255.255.255.0 gateway + DNS
I set other computers which are connected to eth1 with ip's 192.168.0.2/255,
mask 255.255.255.0 and gateway 192.168.0.1
I can ping all ip's but they can't ping me .
and then set :
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
No Internet on computers connected to eth1 (no ping to ip which are in the network with the net)
then set:
iptables - t nat -A POSTROUTING -o eth0 -j SNAT -to-source "netip"
add:
iptables -A PREROUTING -i eth0 -j DNAT --to-destination 192.168.0.1
enable forwarding too with
echo 1 > /proc/sys/net/ipv4/ip_forward
May we have a "beginners help" blow by blow run down of how to do that plzzzz!!!!