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 1st April 2012
npumcrisz npumcrisz is offline
New User
 
Join Date: Feb 2012
Posts: 5
Default Problem setting up a multiport router!!

Hardware list
  • 4 ethernet ports
  • a dwa552 wireless adapter (OpenBSD recognizes this as athn0 and not ath0! This adapter is a/b/g/n)
  • Using OpenBSD 5.0
  • Installing non-free firmware files on first boot? [yes]

Goal
  1. Have servers access the internet thru re1 on the openbsd machine.
  2. Have wired clients access the internet thru re0
  3. Have wireless clients access the internet and intranet thru athn0. {No bridge mode preferably}
  4. Different gateways in order to prioritize traffic
    http://home.nuug.no/~peter/pf/en/altqintro.html
  5. Split DNS for both IPv4 and IPv6
    • First split for internal access via re0,re1 and athn0
    • Second split for external access via re2 and re3
  6. Split DHCP for both IPv4 and IPv6
    1. First split for wireless clients using athn0 as gateway.
    2. Second split for wired clients using re0 as gateway.
  7. Use this instruction for non-routable addresses
    http://home.nuug.no/~peter/pf/en/unrouteables.html

What I am settling with
  • 2 Wan ethernet ports to the internet ( load balancing)
  • 2 Lan ethernet ports on the intranet.
  • A wireless adapter for wireless intranet ( Host AP mode)

Before connecting the device directly to the internet; l have it place behind a commercial router.

I followed the instructions on http://www.openbsd.org/faq/faq4.html#InstMedia

Available network interfaces are: re0 athn0 re1 re2 re3 vlan0.
Which one do you wish to configure? (or 'done') [re0] Enter

IPv4 address for re0? (or 'dhcp' or 'none') [dhcp] 10.97.1.254
{step followed}
IPv6 address for re0? (or 'rtsol' or 'none') [none] fc09::f256
{step followed}

Available network interfaces are: re0 athn0 re1 re2 re3 vlan0.
Which one do you wish to configure? (or 'done') [done] re1

re1: 10.81.0.254/8 & fc09::f625
re2: skiped
re3: dhcp {re2 and re3 would be connected to the internet that's why l didn't configure re2 and set re3 as DHCP}
*No DHCPv6 with commercial router

My problem!!
Available network interfaces are: re0 athn0 re1 re2 re3 vlan0.
Which one do you wish to configure? (or 'done') [done] athn0

Here where l need guidance.
I want to set this router as an access point (host AP)
I need to use 802.11 a/b/g and n
set the channel to 8
ESSID: mangoroes
wpa : {lets say concorde9concorde9concorde}

I looked at http://www.openbsd.org/cgi-bin/man.c...nfig&sektion=8 in vain

WRT to the split DNS and DHCP
I know it can be achieved on linux but not sure if it can be achieved on Openbsd? Any one can confirm this?

Last edited by ocicat; 1st April 2012 at 02:58 PM. Reason: activated links
Reply With Quote
  #2   (View Single Post)  
Old 1st April 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by npumcrisz View Post
I want to set this router as an access point (host AP)
Unlike Linux, the *BSD world identifies network interfaces via the driver used. In your case, you have indicated having a athn0 interface, so check the examples section in the athn(8) manpage.
Quote:
WRT to the split DNS and DHCP I know it can be achieved on linux but not sure if it can be achieved on Openbsd?
Yes. Study the pf(4) manpage, & the PF User's Guide.

Last edited by ocicat; 1st April 2012 at 05:50 PM. Reason: fixed missing [b] tag...
Reply With Quote
  #3   (View Single Post)  
Old 1st April 2012
denta denta is offline
Shell Scout
 
Join Date: Nov 2009
Location: Sweden
Posts: 95
Default

Quote:
Originally Posted by npumcrisz View Post
I want to set this router as an access point (host AP)
I need to use 802.11 a/b/g and n
set the channel to 8
ESSID: mangoroes
wpa : {lets say concorde9concorde9concorde}
From the caveat section of athn(4):

Code:
The athn driver does not support any of the 802.11n capabilities offered
by the adapters.  Additional work is required in ieee80211(9) before
those features can be supported.
Other than that, you could set it up with /etc/hostname.athn0 something like
Code:
mediaopt hostap
media autoselect
nwid mangoroes
chan 8
wpakey 'blablapass'
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
New Cable Modem/BSD Router Problem Dr-D OpenBSD General 11 2nd April 2012 06:33 PM
Problem setting up perl modules badguy OpenBSD Installation and Upgrading 4 10th August 2009 09:46 PM
Problem with PORTSNAP and my router cedcot FreeBSD Ports and Packages 2 22nd April 2009 11:32 AM
getting and setting time from router michaelrmgreen General software and network 1 5th February 2009 01:58 PM
Samba 3.0 problem to setting up private folder - FreeBSD 71-pre bsduser FreeBSD General 7 27th September 2008 03:34 PM


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


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