Quote:
Originally Posted by Entropic
... it seems provisioning isn't necessary for my em0 ethernet (and thus internet) to work.. right?
|
No. During boot, rc(8) executes netstart(8) which provisions NICs from hostname.if(5) files. Without a provisioning file, a NIC will not be provisioned automatically on boot. Otherwise, the admin must manually issue ifconfig(8) commands to configure network connections.
During installation, the install script asks the admin which physical NICs to provision and creates these hostname.if(5) files.
Quote:
If by "correct" you mean the hostname.tun0 shows up in an ls command...
|
I meant that the contents were confirmed correct. Use a pager such as less(1), an editor such as vi(1), or a cat(1) command to display the contents of the file and confirm it contains no mistakes.
Quote:
To re-ask: is my "appending" (see previous post) at the top of the hostname.tun0 file "correct".. Still waiting on a response to this if anyone can help..
|
Your asking me to explain terminology used by the author of an unassociated, third-party web page. I believe -- without any actual knowledge -- that the use of the word "append" is unintentional, and that the author meant to use the word "create". But for clarity, you should reach out to the author directly. I can see that the website supports comments, where you might be able to reach out and obtain needed clarity about their published content.
Quote:
Why for example, would a prompt for authentication be of concern here? You seem to relate it to netstart not being interactive, but as I demonstrated above, it seems netstart isn't involved or necessary for my internet connection (em0) to work.. yet alone for OpenVPN...
|
It absolutely is a concern. The netstart(8) utility is not intended to support interaction. The second line of your hostname.tun0 file executes a command which (as configured) prompts for interactive input. I can be wrong, of course, but I don't believe it should.
Quote:
What I have noticed since creating the hostname.tun0 file in /etc/openvpn is that when I start my OpenBSD system, it no longer goes straight through to the x-window login screen with the blowfish pic. Instead it prompts me beforehand, in terminal, for the user authentication and pw. I assume this is the openvpn daemon starting up at startup?
|
Probably. But I cannot tell you if your responses are captured by the program or not.
Quote:
Either way, when I enter the details (user and pass), and go through and login normally at the main login screen, a "ifconfig tun0" reveals "down" still for my openvpn connection, and thats in spite of having working internet otherwise.
|
How is em0 provisioned, if you do not have a hostname.em0 file in /etc?
Quote:
I tried $ pgreg -lf openvpn and it says pgreg is not known in ksh..
|
As noted, you had a typo. The pgrep(1) command is a process finder, named after the many "grep" utilities that parse regular expressions.