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 02-17-2012, 08:51 AM   #1
peterko121
LQ Newbie
 
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
Wlancard -->Server (Firewall and DHCP) -->LAN


Hi
Im using wlan (wifi) connection at home to Internet. But I have Desktop PCs which doesnīt have Wifi card... Only laptops have...(So My Internet provider broadcast Internet via Wifi).

Now Im thinking to buildup the server and hire is my model:
Server will have Wlan(wifi)card.. This server will connect to Internet over wifi to my provider network (server will obtain IP and DNS from it.. It means dynamic IP obtain).
I need to share Internet connection (I donīt know how, make bridge or ? ) with my eth0 card. But On server will run DHCP server. So all LAN user (computers) will obtain IP from my server. And they will have connection to Internet.

Important is too, that I want firewall between wlan and eth0.

I know im bad writer, just look on pics.

Any ideas or manual? how to build it? Is this good model ? I want to run server on fedora.. But I thinking ins not Dependents on distribution.

Hire is My schema:http://img823.imageshack.us/img823/6...workscheme.png
 
Old 02-18-2012, 04:03 AM   #2
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Rep: Reputation: 10
you need masquerading.issue this command on 192.168.1.1 and set other computer's gateway as 192.168.1.1:
Code:
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
eth1 is the ethernet card connected to the internet.
 
  


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
search LAN for DHCP server cccc Debian 3 11-23-2011 11:04 AM
LAN Server w/DHCP - hostname? dbc001 Linux - Server 6 08-03-2007 07:07 PM
dhcp server and iptables firewall m021998 Linux - Networking 3 09-15-2003 06:35 PM
How do you make the ip masquerade server/dhcp server broadcast dns to lan cmisip Linux - Networking 6 01-25-2003 10:43 PM
DHCP server on two LAN cards V.krishna kumar Linux - Networking 3 10-24-2002 12:57 PM

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

All times are GMT -5. The time now is 06:55 AM.

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