Page 1 of 1

Beginners Help

Posted: Tue 20 Dec 2005, 02:38
by ecomoney
I 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
Hi Raffy, thanks for that

May we have a "beginners help" blow by blow run down of how to do that plzzzz!!!!

Posted: Tue 20 Dec 2005, 19:07
by Auda
Unless you specificaly want to use puppy have a look at Freesco
http://forums.freesco.org/support/
Freesco a single floppy router and firewall. Its instalable on a hard drive or cd and will run Apache, ftp, mail, etc.
Auda

Posted: Wed 21 Dec 2005, 06:28
by sunburnt
Mark; in Win. at least it's called a proxy, Linux maybe not.
Try using the Freesco Router (Free Cisco Router), it only needs a floppy to boot & work, will run off a HD also, small fast, simple to setup & use, has http, ftp, routing, & a pile of packages for it, NFS, Samba, etc.
It's what I'll be using for the LanPuppy server if Puppy can't be fixed for dhcp & Samba servers.

http://freesco.org/

Smoothwall

Posted: Wed 21 Dec 2005, 11:36
by ecomoney
Were using smoothwall at the momen (www.smoothwall.org), That turns the pc into a dedicated firewall and rounter. Its excellent, but the pc we are using for this could also easily run puppy and solve a lot of domestic problems ;-)

Posted: Wed 21 Dec 2005, 15:25
by edoc
sunburnt wrote:Mark; in Win. at least it's called a proxy, Linux maybe not.
Try using the Freesco Router (Free Cisco Router), it only needs a floppy to boot & work, will run off a HD also, small fast, simple to setup & use, has http, ftp, routing, & a pile of packages for it, NFS, Samba, etc.
It's what I'll be using for the LanPuppy server if Puppy can't be fixed for dhcp & Samba servers.

http://freesco.org/
Can you add me to a LanPuppy list so I may be in the loop as it is developed? I just PM's another Forum member asking of there was anything like that in the works!

I am not smart enough to help meaningfully in development but seem to have the gift of breaking things -- useful in alpha and beta testing I suppose!

Thanks! doc