🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.bsd.openbsd.misc
5 messages
5 total messages Started by escii zer0for0je Fri, 02 Apr 2004 12:57
OpenBSD as a software hub.
#19
Author: escii zer0for0je
Date: Fri, 02 Apr 2004 12:57
23 lines
1662 bytes
# 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 ).
Re: OpenBSD as a software hub.
#20
Author: Peter Str�mberg
Date: Fri, 02 Apr 2004 14:30
24 lines
1276 bytes
/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
Re: OpenBSD as a software hub.
#21
Author: escii zer0for0je
Date: Sat, 03 Apr 2004 03:57
29 lines
1811 bytes
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
Re: OpenBSD as a software hub.
#22
Author: escii zer0for0je
Date: Sat, 03 Apr 2004 04:30
39 lines
2188 bytes
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
Re: OpenBSD as a software hub.
#23
Author: Greg Hennessy
Date: Sat, 03 Apr 2004 13:26
17 lines
1343 bytes
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. 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads