Closed bsdimp closed 7 months ago
Thanks @bsdimp for reporting all these problems back and not giving up on Wifibox! The problem of documentation was raised in #82 where I have followed up in a generic, high-level answer which touches upon many of these points.
Here I would like to get into the details along answering each of the points. But first of all, let me agree with you: the sentence in question in the "Configuration" section of the manual page is indeed too vague. This could have been more elaborated but I could not come up with better at the time of writing and there are a couple of design principles that had to be taken into consideration. I would like to still do that while improving on the clarity.
wifibox-alpine(5)
, which tries to give the users a relatively detailed description on how it is constructed and how it should be used. There are at least two reasons not to allow using /etc/wpa_supplicant.conf
directly: 9P-based file-system passthrough for bhyve
does not implement file-level sharing (like Docker containers could do) therefore the whole /etc
directory would need to be shared, which I do not consider secure. It is not guaranteed that the Linux guest would run exactly the same version of WPA Supplicant as the FreeBSD host and it may use different configuration options or layout. But I agree that it should be emphasized better that the wireless connection is handled exclusively by the Linux guest.interfaces.conf
, udhcpd.conf
, and such there are links planted pointing to the corresponding manual pages. The uds_passthru.conf
is a Wifibox-specific file, wifibox-alpine(5)
and the comments there should be enough to assist the users about its contents. In my opinion, none of these are really about Linux networking but using the specific third-party tools. The rest is just classical IPv4 and IPv6 networking, the use of iptables(8)
might be the only exception.wifibox(8)
says "embedded (virtualized) wireless router" but this theme is not carried on later through the document. I thought that being not a drop-in replacement is evident, but I can see that the possibility of importing the WPA Supplicant configuration from the host may confuse users about there might be NAT in use.wifibox-alpine(5)
or wifibox-guest(5)
and general guidance is provided for troubleshooting at the "Diagnostics" section. But I admit there is an explicit reference is missing that would orientate the users towards this specific page, it is only mentioned for the console
command.byhve
PCI pass-through configuration in the main wifibox(8)
document would have to be replicated. It is the configuration file where this piece of information has to be utilized, the syntactical specifics would not add too much value to the document. Note that rc.conf(5)
is discussed there only because the port/package does not modify its contents on installation, hence it is the place where the related information could be provided. For all the configuration files, where Wifibox has the control over, it is enough to plant the hints in the specific files.core.conf
.All in all, this is a small, one-developer project basically, therefore the review process is rather light. I was trying to do my best to catch many of such oddities in the documentation, but apparently a single pair of eyes is not enough for that. That said, I really appreciate your comments and hopefully I will be soon back with a PR with the proposed fixes.
@bsdimp I have just prepared #87 as a proposal to address the points, following up on my earlier comment. Let me know what you think about it.
Description
A clear and concise description of what the problem is. What is expected from the application?
Before I start, I want to say I love wifibox. My comments below are ways I think will make it more accessible to a wider audience.
The configuration paragraph
is too vague. Specifically, the following items should be mentioned somewhere:
wpa_supplicant.conf
to `/usr/local/etc/wifibox/wpa_supplicant/wpa_supplicant.conf. The host's wpa_supplicant.conf is unused. One option might be to have an option that uses the host's wpa_supplicant.conf though./usr/local/etc/wifibox/appliance
to change this: interfaces.conf, udhcpd.conf, uds_passthru.conf. As someone unfamiliar with Linux networking, it took a while to find these.ip
,iw
commands, ideally with the most useful ones spelled out to aid in debugging the problem. Also an explicit not of NO-CARRIER -> you don't setup wpa_supplicant.conf right in the manual would be helpful.debug
if you encounter problems.so, having been super picky, I'd like to end this on the following note: In not too much time i was able to get this up and working. My RTL8822BE card works well under linux. I was able to hit fast.com and it told me I had a 200Mbps connection (the mac next to this laptop gets 300Mbps). Still, this is way better than the usb stick which had troubles hitting 1Mbps some days.
thank you so much for climbing this hill and sharing it with the world.
Host operating system
Wireless NIC
Wifibox version
Disk image type and version
The kind of VM image in use, e.g. Wifibox/Alpine, and its version.
Changes to the default configuration files
Logs
Additional context
Add any other context about the problem here that might help the investigation.
Have you tried to turn it on and off?