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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| # 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 ). |
| |||
| /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 |
| |||
| 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 |
| |||
| 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 |
| ||||
| 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. |