LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-21-2006, 07:31 AM   #1
TrAvIkK
Member
 
Registered: May 2006
Distribution: Lovley Debian etch :)
Posts: 47

Rep: Reputation: 15
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
 
Old 08-21-2006, 10:04 AM   #2
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Rep: Reputation: 30
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.
 
Old 08-21-2006, 10:12 AM   #3
TrAvIkK
Member
 
Registered: May 2006
Distribution: Lovley Debian etch :)
Posts: 47

Original Poster
Rep: Reputation: 15
Hmm so what's the different between "normal" sharing and via DHCP ?
 
Old 08-21-2006, 09:04 PM   #4
centauricw
Member
 
Registered: Dec 2005
Location: Lawrenceville GA
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216

Rep: Reputation: 31
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Share internet connection Braynid Linux - Newbie 12 05-27-2006 03:10 PM
Share Internet Connection sam_casperson Linux - Networking 3 02-03-2005 06:07 PM
How do I share my Internet Connection? sagi7ario Linux - Networking 3 03-16-2004 05:17 PM
how to share internet connection digihall7 Linux - Networking 5 10-22-2003 11:53 PM
How do I share the Internet connection? Valeria Linux - Networking 4 07-19-2003 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration