LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-2009, 12:29 PM   #1
themrrobert
Member
 
Registered: Feb 2007
Distribution: Debian Sid
Posts: 52

Rep: Reputation: 16
Cool I am bridging 2 networks, but only want the Bridge machine to see both networks.


I need a server that is visible from 2 networks. I think I just solved my own question.

I have a network of Phone agents who need access to the database server, but no external access. They run Winblowz. This was fine, because the database was also offline. But Now, we are adding a server that is accessible from the WWW so that different iso's can connect to use and send us data that we can use on our internal network.

I've set up a bridge using bridge-utils and brctl, and would like to know how i can use iptables to filter traffic out so that the networks dont see each other. but i guess what i should really do is leave each nic configured individually, but in that case help me here:

NIC A: 192.168.1.50

NIC B: 192.168.1.90 (i know, should be on a diff subnet, w/e)

How can I use iptables to say (when i connect to machines 192.168.1.1-50, use eth0, and 192.168.1.51-200 use eth1.

Also you think I should just change the subnet of one of the networks?

also what do i need to know about ipforwarding? thank you guys!
 
Old 02-17-2009, 12:40 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
actually what you would want to do is set it up as such

internet router->DMZ->firewall->internal network(including database server)
webserver---------|

this would be accomplished by attaching a switch to the router and having your firewall plugged into one port and your webserver attached to another

the webserver and firewall's external nic would be something like 192.168.1.x then forward web traffic to the ip of the webserver
the internal network on the internal nic of the firewall would be something like 10.0.0.x

you can talk to the webserver from inside out but the firewall would prohibit web trafic from outside in

for a firewall look into something like smoothwall which is a custom distribution of linux designed to be a firewall that provides a nice web based interface on it's internal nic

Last edited by frieza; 02-17-2009 at 12:43 PM.
 
  


Reply

Tags
bridge, dual, networking, nic



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
Problems when bridging wireless and wired networks Rostfrei Linux - Networking 0 10-22-2008 02:04 PM
Wireless Bridging / Disjoint Networks mikotoiii Linux - Wireless Networking 0 08-15-2008 02:50 PM
bridging networks? help please oXiKoTToN Linux - Networking 3 07-08-2008 07:53 AM
bridging wireless networks - kubuntu laptop alaios Linux - Wireless Networking 0 11-20-2007 04:24 AM
Bridging networks alexr186 Linux - Software 0 08-06-2004 06:57 PM

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

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