Unix Technical Forum

OpenBSD as a software hub.

This is a discussion on OpenBSD as a software hub. within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> # CROSS POST - comp.unix.bsd.openbsd.mi,fa.openbsd.tech Hi, I have 3 computers, one with openbsd, one with linux and one with ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 06:28 AM
escii zer0for0je
 
Posts: n/a
Default OpenBSD as a software hub.

# CROSS POST - comp.unix.bsd.openbsd.mi,fa.openbsd.tech

Hi,

I have 3 computers, one with openbsd, one with linux and one with windows,
the obsd box has 3 nics, one to the internet, one connected to the lin box,
and one
too the win box.

What i want to do:

Setup the openbsd box in such a way so it acts as a software hub - so i can
have
the other two machines with 192.168.0.x addresses , and they can ping
eachother
through the openbsd box ( that has a 192.168.0.x address too ), how can i
configure
the openbsd box to do this?

thank you in advance.

ps - the obsd box is 3.2, the nic's are we0 ( net ) , ex1 ( win ), and ne3
( lin ).


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 06:28 AM
Peter Strömberg
 
Posts: n/a
Default Re: OpenBSD as a software hub.

/etc/pf.conf
nat on we0 inet from ! (we0) to any -> (we0)
block return out quick on we0 from ! (we0) to any

/etc/sysctl.conf
net.inet.ip.forwarding=1

/etc/hostname.ex1
inet 192.168.0.1 255.255.255.252

/etc/hostname.ne3
inet 192.168.0.5 255.255.255.252

Winbox:
IP 192.168.0.2 MASK 255.255.255.252
GW 192.168.0.1

Linbox:
IP 192.168.0.6 MASK 255.255.255.252
GW 192.168.0.5

--
Peter Strömberg
C2K2 C2K3 ISCCIV02 ISCCIV03
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-16-2008, 06:28 AM
escii zer0for0je
 
Posts: n/a
Default Re: OpenBSD as a software hub.

255.255.255.252 as a subnet mask ?
What does this do, and why should i use this insead of 225.255.255.0

"Peter Strömberg" <wilfried@spamcop.net> wrote in message
news:Xns94BFA7DCC399Cwilfriedspamcopnet@130.133.1. 4...
> /etc/pf.conf
> nat on we0 inet from ! (we0) to any -> (we0)
> block return out quick on we0 from ! (we0) to any
>
> /etc/sysctl.conf
> net.inet.ip.forwarding=1
>
> /etc/hostname.ex1
> inet 192.168.0.1 255.255.255.252
>
> /etc/hostname.ne3
> inet 192.168.0.5 255.255.255.252
>
> Winbox:
> IP 192.168.0.2 MASK 255.255.255.252
> GW 192.168.0.1
>
> Linbox:
> IP 192.168.0.6 MASK 255.255.255.252
> GW 192.168.0.5
>
> --
> Peter Strömberg
> C2K2 C2K3 ISCCIV02 ISCCIV03



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-16-2008, 06:28 AM
escii zer0for0je
 
Posts: n/a
Default Re: OpenBSD as a software hub.

Wait a second, after doing a little research, i'm basicly creating 2
subnets, with the size
maximum host capibility of 2 on each subnet!

would this setup behave as if they were all connected to a hub with the
netmask 255.255.255.0 ?
( i wouldnt think so. )

Its important that all my hosts are all on the same net.

If not, how can i turn my openbsd box into a software hub, and have them all
on the same subnet ?

"Peter Strömberg" <wilfried@spamcop.net> wrote in message
news:Xns94BFA7DCC399Cwilfriedspamcopnet@130.133.1. 4...
> /etc/pf.conf
> nat on we0 inet from ! (we0) to any -> (we0)
> block return out quick on we0 from ! (we0) to any
>
> /etc/sysctl.conf
> net.inet.ip.forwarding=1
>
> /etc/hostname.ex1
> inet 192.168.0.1 255.255.255.252
>
> /etc/hostname.ne3
> inet 192.168.0.5 255.255.255.252
>
> Winbox:
> IP 192.168.0.2 MASK 255.255.255.252
> GW 192.168.0.1
>
> Linbox:
> IP 192.168.0.6 MASK 255.255.255.252
> GW 192.168.0.5
>
> --
> Peter Strömberg
> C2K2 C2K3 ISCCIV02 ISCCIV03



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-16-2008, 06:28 AM
Greg Hennessy
 
Posts: n/a
Default Re: OpenBSD as a software hub.

On Sat, 3 Apr 2004 14:30:35 +1000, "escii zer0for0je"
<dialuplinux@optusnet.com.au> wrote:


>
>If not, how can i turn my openbsd box into a software hub, and have them all
>on the same subnet ?
>


# man brconfig



greg

--
Cast in the name of God. Ye not guilty.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:18 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com