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 22nd June 2022
harrollld harrollld is offline
Fdisk Soldier
 
Join Date: Jan 2022
Posts: 56
Default wifi, management..

new questions, about wifi :

a1/ usually I connect by :
/sbin/ifconfig iwn0 nwid Essid wpakey keyyyyyy
/sbin/dhclient iwn0
then I launch the ovpn script

unfortunately, when I lid/suspend the laptop, I have to always relaunch the wifi script, to get connected again, so I have to.. login in root. Isnt it possible to do otherwise?


b2/ and another very specific one, on my linuxes ones, there are several profiles whom I guess debian tries everytimes by scanning wifi ssid, then connecting if it fits. would it be possible to do the same with openbsd, to scan each time internet is gone, for new available wifi and automatically connect to the known one, and maybe -you'll not appreciate that one-, to connect to a nearby opened network, as if I go to a public place or in an hotel, automatically connect to the opened network, to avoid do so by connecting in root? a bit like if I do it with a phone/linux, it doesnt asks for a passcode for each new wifi network

thank you vm for those questions, as linux works well with wifi without being root.. a such exception would be possible on openbsd?
Reply With Quote
  #2   (View Single Post)  
Old 22nd June 2022
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,716
Default

Quote:
Originally Posted by harrollld View Post
new questions, about wifi :

a1/ usually I connect by :
/sbin/ifconfig iwn0 nwid Essid wpakey keyyyyyy
/sbin/dhclient iwn0
then I launch the ovpn script

unfortunately, when I lid/suspend the laptop, I have to always relaunch the wifi script, to get connected again, so I have to.. login in root. Isnt it possible to do otherwise?
  1. You could configure your network using an /etc/hostname.iwn0 file, rather than a manually executed script. See the hostname.if(5) man page and the OpenBSD FAQ to get started.
  2. The dhclient(8) utility is still available for edge-cases when needed,, but was replaced at Release 6.9 by dhcpleased(8) and auto-configuration provisioning in ifconfig(8).
  3. If you still discover you need a root-executed script to run automatically after a resume from suspend or hibernate, see the FILES section of the apmd(8) man page.
Quote:
b2/ and another very specific one, on my linuxes ones, there are several profiles whom I guess debian tries everytimes by scanning wifi ssid, then connecting if it fits. would it be possible to do the same with openbsd, to scan each time internet is gone, for new available wifi and automatically connect to the known one, and maybe -you'll not appreciate that one-, to connect to a nearby opened network, as if I go to a public place or in an hotel, automatically connect to the opened network, to avoid do so by connecting in root? a bit like if I do it with a phone/linux, it doesnt asks for a passcode for each new wifi network
You can provision all of your desired WiFi networks in your /etc/hostname.iwn0 file -- see the join option in the 802.11 WIRELESS section of the ifconfig(8) man page.
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
Config management beavers OpenBSD General 12 4th February 2019 05:43 PM
fan speed management Oficre_josef OpenBSD General 5 13th November 2014 07:19 PM
log file management drummondislebsd FreeBSD General 3 5th January 2011 01:11 PM
Help with OpenSolaris package management roddierod Solaris 2 6th August 2008 03:11 PM
OpenVPN management bichumo General software and network 0 15th July 2008 09:05 AM


All times are GMT. The time now is 09:45 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick