LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-23-2005, 06:44 PM   #1
shizzilla
LQ Newbie
 
Registered: Apr 2003
Location: Cyber Space
Distribution: MDK 9
Posts: 24

Rep: Reputation: 15
internet router for multiple static ips


Hi i have been looking over the internet for a way to build an internet router/firewall so my internet static ips are transparent so i can filter out
dhcp requests and internal ip addresses (ex. 192.168.1.x) from my provier's network.



Internet
|
Fiber/Bridge
| <no dhcp>
[Router/Firewall]
| <dhcp>
+---------------Machine1 [20.10.5.1]
+---------------Machine2 [20.10.5.2]
+---------------Machine3 [20.10.5.3]
+---------------Machinex [20.10.5.x]
 
Old 11-23-2005, 07:33 PM   #2
soulestream
Member
 
Registered: Nov 2005
Posts: 183

Rep: Reputation: 30
let me get this straight ...
you want your PC's to have routable addresses behind your router to block your ISP's non-routable addresses.


that doesnt make sense.


if you want your addresses transparent you take one of your static IPs and use NAT to route it to internal IPs (192.168.x.x)

that will block any external requests and any DHCP requests will be caught by the router.

in other words any $29 router will do what you want(should want) or you can use a standard router/firewall linux setup with NAT

the only way to use all your statics would be basically have each on its own router interface and translating each individually


let me know if im just confused on what you want to do

edit: you could just use a firewall to block certain requests, but the IP's still would not be transparent



soule

Last edited by soulestream; 11-23-2005 at 07:39 PM.
 
Old 11-23-2005, 09:11 PM   #3
shizzilla
LQ Newbie
 
Registered: Apr 2003
Location: Cyber Space
Distribution: MDK 9
Posts: 24

Original Poster
Rep: Reputation: 15
Ok so i would have to have 1 nic for every ip address and i would have to nat internet addresses?
Could I put more than 1 ip address on a nic ?
 
Old 11-23-2005, 11:20 PM   #4
soulestream
Member
 
Registered: Nov 2005
Posts: 183

Rep: Reputation: 30
The easiest way would be (other than buy a router ) ...


setup a box with two nics

one nic(a) will be hooked to your WAN connection.

it will have one of your static IPS

the other nic(b) will have a local IP (192.168.x.x)

setup NAT

hook a switch/hub to that interface(b)

and then set ip addresses on the PC' s in the same subnet as the NIC(b) (or setup DHCP)

the system will then translate traffic from IP addy (a) to internal addresses (b)

then you can setup firewall as needed with any rules needed.

soule
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ADSL and multiple external static IPs adasko Linux - Networking 3 09-15-2005 07:01 PM
Using static ips with a router jclu Linux - Hardware 2 07-31-2005 05:35 PM
MRTG - Graphing multiple IPs on one router? gnirtS Linux - Networking 1 02-04-2005 07:04 PM
Router with multiple public IPs Neodymium Linux - Newbie 1 04-13-2004 06:39 PM
Adding multiple static IPs to one NIC digihlp Linux - Networking 2 06-26-2003 07:13 PM

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

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