|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Some networking help
Hi guys,
Pretty new to openbsd and confusing myself on what I would like to do. I was using openbsd as my gateway box for everything, worked great. Recently I have moved to a wireless router, but I would still like to use my openbsd box. Instead of just throwing it on the wireless network though, I would like my openbsd box to use another internet connection(dsl). Wireless router is on cable. So right now I have Openbsd connected to the dsl and online. Next to that I have a windows xp box connected via the wireless router on the cable. I have an open NIC in both computers. Can I connect these via the 2 nics directly, and access the openbsd box locally for any computer on the cable network? If that makes sense.. I've confused myself thinking about this and not sure how to go about setting it up. Any help is greatly appreciated. Kevin |
|
|||
1. heh, this is kind of as good as it gets from me. couldn't get spacing to show up in the post. so had to image it below.
Ok, so that windows XP with an extra unused NIC in it, which is next to the openbsd.. Id like to connect to the other extra NIC in the openbsd to be able to then connect locally through to the openbsd computer from anything on the Cable connection(on the left) through that network. I hope that makes sense. I don't want to share internet connection between the 2, just be able to connect back and forth from the network cards between the cable side network / openbsd(dsl) 2. not that im aware of 3. 2 NICs. 1 being used to connect to the DSL modem. 1 unused at this point. |
|
||||
So, you are looking for something like this?
Code:
( Internet ) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | Cable DSL | | ---------------- --------------- | Wireless | | Router/ | |Router/Modem | | Modem | ----|----|------ -------|------- | | | ------ | _______|_______ |Other| -|---------- | if0 | |Hosts| | Windows | | OpenBSD Box | ------- | Box ---Xover Cable----- if1 | ------------ --------------- Edit: to do this sort of ascii-art, author your art in a text editor (vi, emacs, notepad if in windows), and then paste it between [code]..[/code] tags.
__________________
The only dumb question is a question not asked. The only dumb answer is an answer not given. |
|
|||
Yep, that is exactly what i am looking for. I had originally tried just setting ips, connecting but i wasnt able to ping or connect from either side.
Will give it another try, not sure what i could have done wrong though. Thanks |
|
|||
Ah, it looks like i was able to ssh into the openbsd box from the windows xp box it was directly connected to.. I just can't see that on anything else on the windows xp network("Other Hosts" in the above ascii), just that 1 computer.
not really sure what needs setup to reach it from the others on the cable side of the network. if thats something to do with the openbsd config and/or the windows box its directly connected into.. or something that needs allowed on the cable side router? thanks again |
|
|||
Quote:
What is still not clear from discussion thus far is what IP addresses are used for this subnet between the Windows box & your OpenBSD system. I suspect that you have configured each interface on your Windows box to be on a different subnet, & you are questioning how to communicate from other hosts connected to this wireless router through your Windows box to your OpenBSD system. In other words, you are wondering how to route packets from one subnet to another through this Windows box. In the Microsoft world, this is called multihoming, & you will need to ensure that the Windows box is appropriatedly configured. Some information on multihoming can be found at the following: http://technet.microsoft.com/en-us/l.../bb457118.aspx |
|
|||
Hi,
Reason Id like to do this setup is because the openbsd box is fairly far away from the router, and if I put it on wireless it gets a little flakey and id like to keep it online. I figure I can do this by keeping it online via the other internet connection(dsl) but still get onto it locally from the windows box next to it. Which is on the wireless that may be flakey but at least wont kick it offline. Just knock me off the local ssh. So far I have it setup as. Router(cable) Other hosts(from ascii) - 192.168.0.x/255.255.255.0 Windows Box - Wireless nic - 192.168.0.5/255.255.255.0 - 2nd nic - 10.0.0.2/255.0.0.0 Connected to that 2nd nic via crossover cable to openbsd is xl0 - 10.0.0.1/255.0.0.0 2nd nic - xl1 - dhcp(dsl connection) So from other hosts I need to reach 10.0.0.1/255.0.0.0 It seemed simple to me, but when I try to figure out what to do next.. I'm stumped. I've been looking through trying to figuring out the windows multihoming setup but I can't seem to find what relates to what I'm trying to do yet. I'm not even entirely sure if I've done everything upto this point correctly. I can access the openbsd box from the windows box though. It's just being able to get to it from the other hosts on that side.. Thanks again |
|
|||
Quote:
Quote:
The problem you are experiencing is when hosts on 192.168.0.0/24 want to send a message to 10.0.0.0/8, the sending NIC will see that the target address is on a different subnet, so they will send packets destined to 10.0.0.0/8 via the default router -- which is most likely configured to be your wireless router. When your wireless router receives packets for yet another private network, it will most likely be dropping the packets as it should. What you really want to do is:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Networking on virtual machine | satimis | General software and network | 4 | 29th November 2008 02:16 PM |
Networking: CLI quick reference | anomie | Other BSD and UNIX/UNIX-like | 0 | 2nd October 2008 01:21 AM |
Would BSD be right to learn networking? | php111 | Off-Topic | 17 | 25th September 2008 07:02 PM |
Networking between bsd and mac | rex | FreeBSD General | 7 | 12th May 2008 07:57 AM |
OpenBSD networking section? | ai-danno | Feedback and Suggestions | 4 | 9th May 2008 07:54 AM |