LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-02-2002, 06:56 AM   #1
ThePlague
Member
 
Registered: Jul 2001
Posts: 34

Rep: Reputation: 15
Question More ip's


Lets say i have a cnet, and i have several machines in my network and i want each of them to have their own official ip adress on the net. How can i do that? Do i have to share the internett and ip's in someway ?
 
Old 02-02-2002, 04:19 PM   #2
rusty
LQ Newbie
 
Registered: Feb 2002
Location: Twin Cities Metro Area
Distribution: Debian and Mandrake
Posts: 8

Rep: Reputation: 0
direct, nat or proxy...

There are three different ways you can do this.

If you're connected via a cable or dsl modem with an ethernet port, and your ISP will provide you more than one IP through that modem you could connect all directly to the modem via a switch or hub, and use dhcp to give them all their own ip's. This does open all of the systems up to being directly attacked via their internet connection, but that's a risk you may be willing to take. (I'm not, so I don't, even though I could.)

Next up is simple NAT. To do this, one box on your network has to act as a router. You want to set up your own internal network with a private IP network range, (see my notes in a response in the "IP address which class" thread) The box you set up as the router is gateway for the other computers. Depending upon the version running on this box you will use ipmasq, ipchains or iptables to set up masqurading or network address translation. Good documentation on that can be found at www.linux.org under the documentation button then "how to" link.

Last up but most secure, is to set up proxies for those services that you want to handle. The restriction here is that those services have to have a proxy available. At this point you do not want either IP-forwarding, or nat/masqurading running on the gateway, you only want the proxies and servers you need running. (mail might be a good example of something you want running here.
 
  


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
All internal IP's are taken? kuplo Linux - Newbie 3 12-04-2005 06:29 PM
IPTables - Multiple Public IP's to private IP's matneyc Linux - Security 8 05-27-2005 12:23 PM
fake ip's g452 Linux - Networking 3 06-04-2004 01:26 PM
ip's/country juanb Linux - Security 3 01-28-2004 09:32 PM
ip's Syphon Linux - Networking 1 01-18-2002 07:35 PM

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

All times are GMT -5. The time now is 02:34 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