Computing.Net > Forums > Linux > How to share internet connection?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to share internet connection?

Reply to Message Icon

Name: dadong
Date: December 3, 2002 at 02:05:03 Pacific
OS: linux
CPU/Ram: 256
Comment:

pls help me on how to share my internet connection to my workstations, what do i need? and how to configure? pls pls pls help me..



Sponsored Link
Ads by Google

Response Number 1
Name: uptown aj brown
Date: December 3, 2002 at 04:36:21 Pacific
Reply:

a router/hub

a dsl/cable router should work right out of the box , just need cat-5 cables and nic cards in each workstation.

or you could go wireless :) with usb and a wireless hub. no cables necessary then.

linksys, belkin, dlink are a few vendors.


0

Response Number 2
Name: Yanick
Date: December 3, 2002 at 06:06:40 Pacific
Reply:

I have succeded sharing my modem internet connection with Mandrake 9, by issuing these commands.

iptables -P FORWARD ACCEPT
iptables -A FORWARD -i ppp0 -m state --state NEW,INVALID -j REJECT
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward



0

Response Number 3
Name: n0dez
Date: December 3, 2002 at 06:34:34 Pacific
Reply:

what kind of internet access do you have?
All you need are ethernet adapters (eg: if you have 2 computers, 2). Cable t10. The connector looks like the phoneline one but much bigger.

n0dez

==
www.n0dez.com


0

Response Number 4
Name: n0dez
Date: December 3, 2002 at 07:18:35 Pacific
Reply:

after buying the hardware, you will need to setup your lan (this is the software part). how many computers wanna connect?

n0dez


0

Response Number 5
Name: Luckster7
Date: January 9, 2003 at 15:42:07 Pacific
Reply:

The iptables commands above do not share my
ppp0 connection out through eth0. Does
anyone have some rules that work? I have
modified a couple of scripts so that on
boot /proc/sys/net/ipv4/ip_forward is set
to 1. I'm running Mandrake 9.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: How to share internet connection?

how to share internet with windows 2000 www.computing.net/answers/linux/how-to-share-internet-with-windows-2000-/5473.html

How to share my Internet? www.computing.net/answers/linux/how-to-share-my-internet/7527.html

how to switch internet connections? www.computing.net/answers/linux/how-to-switch-internet-connections/17396.html