DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th July 2008
cchapman cchapman is offline
New User
 
Join Date: Jul 2008
Posts: 2
Default OpenBSD and routing

This might be more of an advanced question but I am gonna ask it anyways

Is there a way to use openbsd to route all traffic to another ip?

To explain it a little better what I am doing is switching for a cable modem to fiber optics for our internet feed. I want to do the switch over on a weekend but dont want to loose anything while we are waiting for DNS to propogate.

Here is a diagram

This is route will include mail, web, and vpn. Or am i stuck with doing rdr statements to get this to work?

I will explain a little more if someone wants to take the time to help me with this.
Reply With Quote
  #2   (View Single Post)  
Old 25th July 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Hello, and welcome.

Your diagram appears to be missing.
Reply With Quote
  #3   (View Single Post)  
Old 25th July 2008
cchapman cchapman is offline
New User
 
Join Date: Jul 2008
Posts: 2
Default

Forgot to delete that part. I was going to do a diagram but dont have the time to. Is my explanation good enough?
Reply With Quote
  #4   (View Single Post)  
Old 25th July 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by cchapman View Post
Is my explanation good enough?
Diagrams can help clarify many details.
Reply With Quote
  #5   (View Single Post)  
Old 25th July 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Should we assume your OpenBSD box is a router with, say: 3 NICs. One for your local LAN, one for cable, one for fiber. Is that right?

Should we assume you're not using any route management tools? No ripd(8), no ospfd(8), no bgpd(8), nothing else?

You're just interested in IPv4?

Perhaps simple routing priority will meeting your needs.
Reply With Quote
  #6   (View Single Post)  
Old 25th July 2008
ai-danno's Avatar
ai-danno ai-danno is offline
Spam Deminer
 
Join Date: May 2008
Location: Boca Raton, Florida
Posts: 284
Default

Welcome! Hope your new adventures with OBSD are satisfying. With respect, you haven't provided enough info, but let's break down what you have given and attempt to give some insight anyway.

Quote:
Is there a way to use openbsd to route all traffic to another ip?
yes.

Quote:
To explain it a little better what I am doing is switching for a cable modem to fiber optics for our internet feed. I want to do the switch over on a weekend but dont want to loose anything while we are waiting for DNS to propogate.
As jggimi stated, sounds like you need three ethernet ports. Your scenario could be broken down, as I see it from your description, into one of three possibilities-

1) If your current cable router is NAT translating for the hosts behind it, then you are going to have a complicated setup (at the level you appear to be at, no offense) as you would have to be decent with configuring PF to accomplish this.

2) If your current cable router is a routed gateway with no NAT to your hosts behind it, you have a relatively easy road ahead. You would need to modify /etc/sysctl.conf to set "net.inet.ip.forwarding=1" to enable the box to be a router (necesary for the NAT scenario, too.) Then add a few static route statements to have it forward your old and new addressing to your hosts behind it, and you are nearly set.

3) If your current cable router is truly a cable modem that bridges (not routes) the connection between your cable provider and your hosts, then you could configure it to be a bridge. Of course, it's more than likely your new fiber connection would not do the same thing, so things would become more complex again.

Without a better description of your issue, I can't tell if these scenarios would fit or if another one would.

Quote:
Here is a diagram
I was going to do a diagram but dont have the time to.
Asking a question the way you did with no diagram won't get you far. And if you don't have the time to create a diagram, you certainly won't have the time to learn how to configure OBSD to do what you want it to. Go ahead and check for something similar to this-

http://www.superwarehouse.com/p.cfm?...GoogleShopping

... which will perform what you need, without you having to learn anything.
__________________
Network Firefighter
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Policy routing bsd and cisco clone Guides 1 17th August 2009 04:57 PM
Loose UDP routing? spiller37 OpenBSD Security 4 31st July 2009 11:10 PM
double nat routing giagni General software and network 5 22nd May 2009 07:10 PM
Firewall routing Magoo FreeBSD General 9 4th November 2008 04:39 PM
Routing and routing some more! Weaseal FreeBSD General 1 19th August 2008 01:39 PM


All times are GMT. The time now is 02:29 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick