Networking Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationNetworking Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old March 19th, 2004, 01:46 PM
nednieuws nednieuws is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 70 nednieuws User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 58 sec
Reputation Power: 5
Can't figure out if I need a bridge, gateway, or ...

I've posted a similar question in the BSD forum, but I'm kind of stuck now. The reason why is on http://coombs.anu.edu.au/~avalon/ipfilfaq.html#VII-3A where it says that "IPF does not yet support Bridging on FreeBSD, only OpenBSD... however Darren plans on implementing this soon."

Currently, I have FreeBSD 4.9 STABLE installed on the server, but before I go further I might need to switch to OpenBSD.

Sitrep: The network for our school is maintained by another company. Frequently it hangs and my group has had it with it. Now, what I want is a solution that works and I pretty much don't care what it is.

I was thinking about creating a private network and coupling this network to the existing network. So the server that I have for storage will be used for this. It is multi-homed. I guess I need a dhcp server on it to serve the private net, but I'm not so sure about the impact this will have on the current network: will I need to coordinate things with the other company? If not, well, point me to the resources that will help me determine what to do or (even better tell me how you would do it. So far, I think there are two options: a bridge or a gateway. I will be using the server for storage, mail and webserver.

The other threads didn't get any (on-topic) replies, so if we can start a dialogue asap it would be much appreciated!

Last edited by nednieuws : March 20th, 2004 at 01:54 AM.

Reply With Quote
  #2  
Old March 19th, 2004, 05:10 PM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10
There's an article in the FreeBSD base system on filtering bridges that might be useful - it's under /usr/share/doc/ usually - or google for 'freebsd filtering bridges'

Friendly tip - don't put 'urgent' in your subject - I don't usually bother reading posts like that.

Reply With Quote
  #3  
Old March 19th, 2004, 06:05 PM
nednieuws nednieuws is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 70 nednieuws User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 58 sec
Reputation Power: 5
Quote:
Originally Posted by munkfish
There's an article in the FreeBSD base system on filtering bridges that might be useful - it's under /usr/share/doc/ usually - or google for 'freebsd filtering bridges'

I'll check that out. So you are of the opinion that I do need a bridge and not a gateway or sumpin' else?

Reply With Quote
  #4  
Old March 20th, 2004, 01:55 AM
nednieuws nednieuws is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 70 nednieuws User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 58 sec
Reputation Power: 5
Maybe I need to configure the box as a router? Or, reading up on ipfilter (*BSD), maybe ipfilter and ipnat are enough?

Aargh! Where are the networking gurus, this is your chance to shine once again .

Reply With Quote
  #5  
Old March 20th, 2004, 09:37 AM
juniperr juniperr is offline
network dude
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Dec 2003
Posts: 1,679 juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 21 h 55 m 2 sec
Reputation Power: 85
You basicly want two networks correct? If you have two NICs in the server set one for one network and the other for the other network and enable routing on the server so one network can talk to the other and get familiar with IPchains to do firewalling between the two. NATing is upto you whether to enable or not. Depending on your network topology you may have to put static routes in the server and other routers.

If the server is unstable or you want to do this "professionaly" then I would get a cisco 3550 with new IOS so it can do inter-vlan routing (so you dont need a router) create 2 vlans on the switch and enble routing on the switch so it can route between the two networks and plug the one interface of the server into one vlan and the other into the other vlan etc.

Reply With Quote
  #6  
Old March 20th, 2004, 11:03 AM
nednieuws nednieuws is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 70 nednieuws User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 58 sec
Reputation Power: 5
Quote:
Originally Posted by juniperr
You basicly want two networks correct? If you have two NICs in the server set one for one network and the other for the other network and enable routing on the server so one network can talk to the other and get familiar with IPchains to do firewalling between the two.

Yes, two networks. IPchains is for Linux and I will be running *BSD, but, both platforms have firewalls and I think I'll go for ipfilter. However,


Quote:
Originally Posted by juniperr
Depending on your network topology you may have to put static routes in the server and other routers.
This worries me. How much will the configuration change in "other routers"? The company that runs the other network is not cooperative at all. They don't have to be as they were appointed by the government and will stay there forever. (Read: they don't necessarily need to serve their customers as if they were in a competitive environment.)

What I forgot to mention is that the systems behind the server will only need to get traffic through when they surf the web. That's all. All the relevent systems on the other side may choose to use the proxy on my server for web access, but will mostly use it to maintain their webpages, access their share and maybe e-mail. But, the school's network is only allowed to see the ip number of the server, and never the private network behind it. So I guess that's where nat comes into play?


Quote:
Originally Posted by juniperr
If the server is unstable or you want to do this "professionaly" then I would get a cisco 3550
Of course I want to do it professionaly, but we don't have a Cisco budget (yet -- this is however viewed as a proof of concept which might outgrow itself rather fast). That's why I would like to stay with this one server and later use older systems (still P3) that are written off to off-load the server in due time.

So, if I configure this machine as a gateway (as described in the FreeBSD handbook at http://www.freebsd.org/doc/en_US.IS...rk-routing.html) with dhcp and nat will this be sufficient for my needs? -- and will the standard routed be the enough or would you recommend using the zebra package?

Btw, thanks for replying. It's the first reply I've gotten on this subject for a couple of days on several sites!

And sorry for the long URL but I'm browsing with Firefox, and the URL button does nothing for me...
__________________
Regards, Charles.

Reply With Quote
  #7  
Old March 20th, 2004, 11:09 AM
nednieuws nednieuws is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 70 nednieuws User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 58 sec
Reputation Power: 5
Oh, and all machines behind the server are Mac OS X.

Reply With Quote
  #8  
Old March 20th, 2004, 11:42 AM
juniperr juniperr is offline
network dude
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Dec 2003
Posts: 1,679 juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 21 h 55 m 2 sec
Reputation Power: 85
If all you want is http traffic from the new private to go out you made this very easy then. with the the second NIC plug it into a dedicated switch/hub whatever for the new network and give it an IP address on the new network (this address will be the default gateway for the PCs in the new network. on the server setup a new DHCP scope for the new network. enable routing and NATing so it NAT's the new private addresses to the address on the other NIC thats it. Basicly at this point your new network can talk to everything, but PCs on the other network will not be able to talk to your PCs in the new network unless they changed their default gateway to the server.
(only thing that might stop you is if the school has a real firewall running as it might see your network address getting NATed and think it was spoofed and drop it, ie.. some firewalls you have to specify the networks that traverse it)

The routers for internet already know how to get to the servers address it was translated to so no routing needs to be done on any other equipment. However, if you would like people on the other network to come into yours then routes would be needed on the routers.

As for BSD I never touched it hehe which I was assuming same as linux when I reffered to IPchains which I dable in but it should be fairly straight forward to set this up in BSD.

Reply With Quote
  #9  
Old March 20th, 2004, 04:53 PM
nednieuws nednieuws is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 70 nednieuws User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 58 sec
Reputation Power: 5
Doesn't this describe what I want?

http://www.muine.org/~hoang/freenat.html

What do you think about that solution?

Reply With Quote
  #10  
Old March 20th, 2004, 05:55 PM
juniperr juniperr is offline
network dude
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Dec 2003
Posts: 1,679 juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 21 h 55 m 2 sec
Reputation Power: 85
Doesnt get much more straight forward then that. just follow the directions. Im gonna save that link just incase I decide to play with BSD, Im working towards CLE ( certified linux engineer) at the moment though which is based on SuSe linux.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationNetworking Help > Urgent: Can't figure out if I need a bridge, gateway, or ...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway