Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-21-2006, 07:31 AM
|
#1
|
Member
Registered: May 2006
Distribution: Lovley Debian etch :)
Posts: 47
Rep:
|
Share Internet Connection ?
Hi, i have a question:
How to share my Internet Connection (it is WLAN) to my LAN users?
My Linux is Debian Sarge 3.1r2
My situation looks like this:
router--WLAN--(192.168.9.118)My computer(192.168.0.1)--LAN--Other (192.168.0.2)Computer
|
|
|
08-21-2006, 10:04 AM
|
#2
|
Member
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456
Rep:
|
the easiest way that i have found is to install an app called firestarter.
it manages your ip share, firewall, port routing, etc. And its GUI !
if you want to share via dhcp, you may have to install that package also. Otherwize, give your lan computers an ip address like 192.168.0.3 and up. let us know if you have any truoubles.
|
|
|
08-21-2006, 10:12 AM
|
#3
|
Member
Registered: May 2006
Distribution: Lovley Debian etch :)
Posts: 47
Original Poster
Rep:
|
Hmm so what's the different between "normal" sharing and via DHCP ?
|
|
|
08-21-2006, 09:04 PM
|
#4
|
Member
Registered: Dec 2005
Location: Lawrenceville GA
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216
Rep:
|
Basically, you want to use your Linux computer as a router. No problem here. You can either assign static IP addresses to the computers on your LAN (your Linux computer must have a static on the LAN) and set their default gateway to the Linux IP address, or you can setup DHCP on the Linux system to assigned an IP address to all your LAN computers from a pool. Using DHCP with pass them the default gateway and DNS information.
On you Linux system, you must have IP_FORWARDING enabled in the kernel so will route IP packets. Also, your WLAN router must be able to find your LAN through the Linux system. If you can't do that, they you'll need to setup masquerading through iptables to properly forward Internet traffic from your LAN computers.
|
|
|
All times are GMT -5. The time now is 09:09 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|