Share Internet Connection


Forum: Networking
Topic: Share Internet Connection
started by: Kama

Posted by Kama on May 28 2004,00:30
Hi guys, I'm new to linux as well. Wondering if it's possible to share the DSL internet connection with another networked box. I've tried to work it out with How-tos etc and IPMASQ looks promising, however, DSL package list doesn't look like it has it and the How-tos used scripts for RedHat.

Does DSL have an equivalent to IPMASQ? or???

thanks in advance...

Kama

Posted by Kama on May 28 2004,13:40
I tried this using DSL version 0.7:

Box connected to internet via 56K modem (successfully).
I set up apt then followed this advice from < http://forums.debianplaza.net/viewtop....b7fe7e, > I just followed it parrot fashion, some of it made sense.
# apt-get install iptables
# modprobe ip_tables
# modprobe iptable_filter
# modprobe ip_conntrack
# modprobe iptable_nat
# modprobe ipt_MASQUERADE
# iptables -F
# iptables -X
# iptables -Z
# iptables -t nat -F
# iptables -t nat -X
# iptables -t nat -Z
# iptables -P INPUT ACCEPT
# iptables -P FORWARD DROP
# iptables -P OUTPUT ACCEPT
# iptables -t nat -P PREROUTING ACCEPT
# iptables -t nat -P POSTROUTING ACCEPT
# iptables -t nat -P OUTPUT ACCEPT
# echo 1 > /proc/sys/net/ipv4/ip_forward

Then this from: < http://groups.google.com/groups?....&rnum=1 >

# iptables -A FORWARD -i eth0 -o ppp0 -j ACCEPT
# iptables -A FORWARD -s 192.168.0.0/24 -j ACCEPT
# iptables -A FORWARD -d 192.168.0.0/24 -j ACCEPT
# iptables -A PREROUTING -t nat -p tcp -i ppp0  -j DNAT --to 192.168.0.1


I got both boxes talking to each other, but box2 still couldn't get connected to the net...

Would someone please tell me where I've gone wrong???

thankyou...

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.