-
polyex
imagine a world where every binary is capsicum enabled with libxo integration
-
RhodiumToad
no thanks :-)
-
polyex
why not?
-
RhodiumToad
not every program can or should be capsicum enabled
-
polyex
why not?
-
RhodiumToad
for some programs, opening random files in the filesystem during execution is kind of the point
-
polyex
oh true
-
markmcb
can anyone recommend any books or other resources that deep dive on bhyve? i see "BHYVE: FreeBSD for Virtualization" from 2019.
-
ghoti
I'm having trouble getting a usb audio device to work. I see "uaudio" and "pcm4" show up in messages/dmesg. I am running pulseaudio, and `pamixer --list-sinks` shows the USB device's name... But no sound.
-
ghoti
Any idea what I'm missing?
-
michaeldexter
markmcb: What aspects of bhyve?
-
omegathree
does freebsd has a problem when you have a amd gpu and power usage is higher?
-
markmcb
michaeldexter: anything that goes a bit deeper than the manual/handbook
-
yourfate
I need a local network ftp server (for my shitty scanner), it should only have one user, and that user should only have access to a single directory. are there any good guides on setting this up? i've looked at ftpd(8), but now I found out I don't even have the ftpd executable
-
signalblue
yourfate: probably just need to configure vsftpd or proftpd
-
yourfate
i'm on 13.2 release, on a raspberry pi 4
-
signalblue
you most likely don't even need FTP since that scanner won't support it
-
yourfate
my scanner does SMB and FTP
-
signalblue
sorry FTP over SSL is what I meant
-
yourfate
but it seems with recent updates to smb on my pi that doesn't work anymore
-
signalblue
and use SMB if you can due to the security risks of FTP
-
yourfate
I can still access the smb share just fine from other machines
-
yourfate
the scanners config page also says the smb share works fine, but it then can't save to it
-
CmdLnKid
ncftp
-
yourfate
I an successfully store data on the share from other machines, using the same credentials the scanner has
-
CmdLnKid
portmaster ftp/ncftp
-
CmdLnKid
itll provide you with enough options to limit it anonymously to a single upload directory
-
CmdLnKid
ftp/ncftp3
-
CmdLnKid
default deny and permit everything you want
-
CmdLnKid
better options ... not in scope
-
signalblue
is that short for netcat ftp?
-
CmdLnKid
no
-
CmdLnKid
ncftpd is on it own
-
signalblue
got it... just thought that nc could mean netcat
-
CmdLnKid
thats the prob with abbrev
-
CmdLnKid
ftp/ncftp3/pkg-desc or |less on the makefile should show you whats going on
-
CmdLnKid
/usr/ports
-
CmdLnKid
websites involved
-
signalblue
Is there any way to create a FreeBSD user with an @ symbol?
-
signalblue
I need to do this for an email server that I am setting up
-
CmdLnKid
thats not posix so no
-
CmdLnKid
possible to create a alias for an email user yes. that it could be refferred to by a email server im unaware in 20+ years. exim seems to be highly modifiable tho knowing a user that created a business on it
-
unixman_home
Much Unix software will see @ as a special character separator, such as signalblue⊙se Even if you can do it, I do not recommend it. I would like to see the instructions you are reading that says to create such a user.
-
unixman_home
s/some.email/some.domain/
-
signalblue
I'm not reading instructions that say to do this but I have four domains with same usernames for emails and I'm not quite sure how to handle this
-
CmdLnKid
yeah that would be breaking a standard there. "not that it shouldn't be done" but seriously take a "LOT" of time considering it
-
jgh
multiple domains not a prob for exim
-
signalblue
for example info⊙dc, info⊙dc, etc.
-
megaTherion
unixman_home: you can do it, @ can be escaped without issues
-
CrtxReavr
What was that network directory software that was popular (mostly in military circles) prior to LDAP & Windows domains?
-
signalblue
NIS?
-
CrtxReavr
No.
-
CmdLnKid
there is a mailops mailing list...
-
CrtxReavr
I mean, yes. . . . but that's not what I'm thinking of.
-
unixman_home
megaTherion, I know it can be escaped. But using it in a username? Just ... no. ;)
-
jgh
netware?
-
CrtxReavr
It used @s as namespace delimiters for navagating the directory.
-
CmdLnKid
exim and sendmail both have involvement
-
megaTherion
unixman_home: its totally legit for mailboxes
-
CmdLnKid
as well as postfix
-
signalblue
and yes, jgh, I know that it's easy in Exim, but I am doing this in postfix and it's something I've done before
-
signalblue
just not sure how right now
-
CmdLnKid
lol jgh netware
-
unixman_home
megaTherion, ah, okay. TIL, thanks.
-
signalblue
because when an user adds the mailbox to their mail client, they'll need the full form email... and I'm not sure how best to enforce this
-
CmdLnKid
personally on some occasions i wouldn't mind having an email address translated to a twitter/X or insta account. but i won't go there
-
CmdLnKid
and have both conversations translated into DM's and email
-
CmdLnKid
not that kinda fan tho
-
signalblue
i mean that seems pointless
-
CrtxReavr
Banyan Vines!
-
unixman_home
megaTherion, nm me. I am decaffeinated. I forgot that AD users get created under sssd on Linux as user@domain. Just remembered that.
-
CmdLnKid
not in todays must keep up with my friends dinner
-
CrtxReavr
I tried to setup sssd once. . . found it horribly documented.
-
» unixman_home should not try to give advice before the third cup of coffee :P
-
CrtxReavr
The config file was so strange, I couldn't figure out what the comment characters were.
-
unixman_home
CrtxReavr, sssd is ... special. But it does work once one groks the setup.
-
CmdLnKid
nobody uses comments anymore except freebsd
-
CmdLnKid
;)
-
CrtxReavr
-
VimDiesel
Title: xkcd: Git
-
unixman_home
CmdLnKid, you mean to place comments in the sssd.conf file?
-
CmdLnKid
hahahahaa
-
CmdLnKid
just a joke not elaborating to stay on subject
-
CmdLnKid
probaly not even the right word "elaborating" even spelling...
-
yourfate
ARGH, the scanner also can't scan to FTP, even tho the ftp server works from other machines
-
yourfate
i'm at a loss. I reset the scanner, its on the latest firmware, the web-ui of the scanner that tests the ftp / smb connections says they work
-
yourfate
the target has more than enough space
-
megaTherion
ftp is pretty old but still legit kinda... a lot of stuff supports that
-
megaTherion
does the scanner login?
-
yourfate
ye, next thing I want to do, run the ftpd interactively and watch it login
-
CrtxReavr
I think Anonymous FTP is okay for public file downloads.
-
jgh
wireshark...
-
megaTherion
yup either that or wireshark/tcpdump
-
CrtxReavr
Probably not a popular opinion.
-
Demosthenex
CrtxReavr: i agree. ftp and http are fine for public files.
-
Demosthenex
as long as you have a cryptographically sound method to confirm the authenticity of the file you download
-
Demosthenex
ie: debian still uses http because they sign everything
-
CrtxReavr
sha256 sum should be good.
-
Demosthenex
and an authentic source for the sha256 sum
-
Demosthenex
ie: signed cksum files
-
CrtxReavr
Actually. . . FTP is a little wierd in how it uses two TCP connections. . . one for control and one for data.
-
megaTherion
yes old style
-
CrtxReavr
Then the whole thing with Active & Passive FTP can be a whole other pain point.
-
megaTherion
these days everything is shoved thru http
-
CmdLnKid
tftp is old style
-
CrtxReavr
Not everthing.
-
CrtxReavr
But a lot.
-
CmdLnKid
ftp was new kids on the block style
-
CrtxReavr
I've used way too much tftp in my life.
-
megaTherion
but I still keep an ftp, even in my private lan.. just for how easy and fast it is to access from various setups
-
Demosthenex
i think it's hilarious how people fuss over ftp wanting a second parallel connection
-
Demosthenex
you know http is a callback system?
-
Demosthenex
you open a link, and you open a port and wait for a callback?
-
Demosthenex
which is worse, really?
-
CrtxReavr
Demosthenex, I think it's less about two TCP sessions and more about the active/passive thing.
-
micdud
-
micdud
can provide ktrace and tcpdump on pastebin
-
CrtxReavr
ftp-data 20/tcp #File Transfer [Default Data]
-
CrtxReavr
ftp 21/tcp #File Transfer [Control]
-
Demosthenex
CrtxReavr: active/passive only says whether to have a control channel, or to try to "passively" do control inband with the transfer data
-
Demosthenex
by not opening a second port
-
CrtxReavr
o_O
-
CrtxReavr
No. . . . active uses 20/tcp and passive uses pseudo-random ports.
-
megaTherion
wasnt it also about whom may establish the connection
-
megaTherion
I cant remember
-
Demosthenex
off the top of my head, passive was to prevent a second port opening because most firewalls didn't like that
-
Demosthenex
but i could have the mechanic wrong.
-
megaTherion
wasn't active an outbound connection to the client?
-
Demosthenex
i thought it just tried to do everything on the one connection, which is why you have to hard kill broken downloads if they are hung, you can't send a control message while a file is flowig
-
megaTherion
and this was the issue when people began being behind routers
-
Demosthenex
megaTherion: yeah, but really it should be harder to handle http than ftp ;]
-
megaTherion
it is, in fact
-
megaTherion
(to handle http correctly that is)
-
sandu
anyone, I have a question : why do you like FreeBSD ?
-
micdud
mascot
-
sandu
:) haha, nice answer
-
micdud
way better then a penguin
-
sandu
yeah, more cool
-
unixman_home
sandu, 1) base is an actual standalone OS 2) packages and ports are kept separate from base 3) poudriere 4) standardized logical file system layout 5) yeah, better mascot. I am sure there is more, but that is first off the top of my head. ;)
-
sandu
i use both linux and freebsd. i use slackware, which is a bsd-style linux os. i like freebsd, although is not my primary os, for its feeling of order it gives me, compared to the chaos of linux kernel
-
unixman_home
I use both as well. Typing this from a NUC running Devuan Linux right now. My other system runs FreeBSD.
-
sandu
great !
-
unixman_home
My server "in the cloud" runs FreeBSD as well.
-
sandu
nice
-
sandu
i think FreeBSD users/people are more mature, compared to the average debianites
-
unixman_home
At $work we mostly run Hed Rat Linux due to having an enterprise site license, with some other OSs in the mix based on vendor requirements, including FreeBSD. I am not going to comment on maturity of user bases though.
-
mason
Ironic timing for saying "Hed Rat" there.
-
sandu
i like this very much :
-
sandu
BSD is what you get when a bunch of Unix hackers sit down to try to port a Unix system to the PC. Linux is what you get when a bunch of PC hackers sit down and try to write a Unix system for the PC.
-
micdud
but FreeBSD has a barrier of entry (unless you are greybeard and grew up with it), need to hack out of the box . example: (delete,home,end keys do not work for roots shell:)
-
sandu
from :
-
sandu
-
VimDiesel
Title: BSD For Linux Users :: Intro
-
sandu
yes, vim
-
sandu
is around here a channel for tcp/ip / networking ?
-
la_mettrie
sandu: #networking (or was it ##networking), if you mean it doesn't need to be freebsd related
-
signalblue
would a username such as testATdomainname.com be standards compliant?
-
signalblue
i would not think so though
-
yuripv
signalblue: passwd(5) describes allowed user names
-
signalblue
yuripv: i think i was able to sort out my issues with my mail server... i just need to do a lot of testing to confirm :)
-
polyex
so i'm learning about jails. but i'm wondering about logging. will the jail get its own /var/log/messages for system logs or will those go into the host /var/log/messages?
-
signalblue
that information I think will get relayed to the hosts' log files polyex
-
martinrame
Hi, does anyone know if there's something similar to Linux's autofs?. I need to be able to moung remote CIFS shares that for some reason gets disconnected from time to time. So far I have them mounted on /etc/fstab, but I have to re-mount periodically.
-
polyex
sorry i d/c
-
signalblue
no prob, that information I think will get relayed to the hosts' log files polyex.
-
polyex
ahh
-
polyex
so jails don't get their own logging environment?
-
polyex
was kinda hoping to keep jails fully separate in the state they create, like log messages
-
signalblue
-
polyex
but maybe i'm thinking about it wrong
-
VimDiesel
Title: Chapter 17. Jails | FreeBSD Documentation Portal
-
signalblue
A jail is characterized by four elements:
-
signalblue
rather it may be the way you want because of this
-
signalblue
-
VimDiesel
Title: jails - Send syslog messages from within the jail to the host | The FreeBSD Forums
-
V_PauAmma_V
Only if you set them that way with their own syslogd instance, I believe.
-
polyex
wow jails are flexible
-
signalblue
^^^
-
polyex
tyvm!!
-
signalblue
extremely customizable
-
signalblue
you can do it both ways... jails log internally or send logs to host
-
meena
that socat things looks cool
-
V_PauAmma_V
martinrame, see "apropos automount".
-
polyex
meena what's socat?
-
martinrame
V_PauAmma_V: thanks
-
V_PauAmma_V
polyex, the net/socat port. See
freshports.org/net/socat (incidently, that site suggests a book on FreeBSD jails - no endorsement as I haven't read it).
-
VimDiesel
Title: FreshPorts -- net/socat: Multipurpose relay and more
-
meena
-
VimDiesel
Title: socat(1)
-
Beladona
No straight forward way to change mouse icons in awesomwm + freebsd?
-
polyex
meena huh cool. could socat on a host proxy traffic from the outside to/from jails running on the host?
-
meena
i… dunno
-
polyex
sorry, back
-
meena
polyex: generally, if someone says proxy, I'm thinking http proxy, or ha-proxy, which can do more than just HTTP (by not giving a shit about the protocol)
-
polyex
oh i just meant any traffic. because jails can do more than just http
-
meena
i don't use socat much, so I don't know, but I'd guess: "probably"
-
RhodiumToad
not very well, I think
-
polyex
RhodiumToad what do you recommend for production quality proxying (all protocols not just http) network between host and jails?
-
RhodiumToad
do any of the services you need to proxy need to parse incoming data to know what jail to connect to?
-
» meena wants mount -o nullfs for sockets
-
RhodiumToad
meena: to do what exactly?
-
meena
RhodiumToad: mount syslogd sockets into jails… if that shouldn't turn out to be as dangerous as symlinks
-
polyex
RhodiumToad not sure. what if i said yes for some no for others?
-
RhodiumToad
rather than just having syslogs open more sockets?
-
RhodiumToad
*syslogd
-
meena
-
VimDiesel
Title: ⚙ D27411 add altlog_jaillist to syslogd's rc script
-
RhodiumToad
polyex: for example, for http and https (or any ssl protocol) you need to accept the connection and parse far enough to get the requested hostname, yes?
-
polyex
yep
-
polyex
i'm guessing host shouldn't run a general purpose proxy, but a specialized 1 for each protocol i want to proxy into jails?
-
RhodiumToad
which you can do with things like nginx
-
polyex
ya
-
RhodiumToad
but for cases where only one jail has a service on a given port, you can forward that port to the jail using nat
-
polyex
ahh, like if only 1 jail is handling the finger service can just nat forward it ok
-
polyex
then what if i wanna be able to like, ping the different jails from the outside?
-
RhodiumToad
I'm assuming the host has just the one external ip. if you want each jail to have an ip reachable from outside, then you can do that with bridging
-
RhodiumToad
but that assumes the availability of multiple ips which may be problematic these days
-
polyex
ya only 1 external ip
-
polyex
so in that case any way to ping individual jails? i'm guessing not?
-
RhodiumToad
not with icmp pings.
-
polyex
so basically for the jail to get network behind a single external ip, it needs a service specific proxy, or it needs exclusive port ownership for forwarding. that right?
-
polyex
so basically for the jail to get network behind a single external ip, it needs a service specific proxy, or it needs exclusive port ownership for forwarding. that right?
-
RhodiumToad
right, but in theory it may be possible to have an ssl-specific proxy for protocols using ssl+sni
-
» RhodiumToad hasn't tried that
-
polyex
oh wow like secure dns? i think that has tls
-
RhodiumToad
I believe nginx can do stream-proxying using SNI to detect which endpoint to proxy to
-
RhodiumToad
meena: not sure I agree with mjg there
-
meena
RhodiumToad: yeah, but i yielded to higher authority, and will go think about better ways of doing this eventually
-
polyex
RhodiumToad why not agree with mjg?
-
RhodiumToad
I don't think it's any more of a security problem than any other approach would be
-
SpaceBass
Im trying to mount a kerberized nfsv4 mount in 13.2-release ... I can mount it, but if I try and ls, I get 'permission denied'
-
SpaceBass
Im mounting as a nonprivledged user to a directory the user owns
-
RhodiumToad
the server doesn't think you have permission, most likely
-
SpaceBass
Hummm why would it let me mount it using kerberos then?
-
SpaceBass
mount -vvv -o sec=krb5p
-
RhodiumToad
it thinks you have permission to mount it, but not to read the root dir?
-
SpaceBass
I use samba in DC mode for SSO... what's interesting, on every client if I do: id user@domain it shows the right groups, etc, but the UID is different on each client :/
-
SpaceBass
And I'm noting that on some clients where mount is successful I get an nfs/... principal in my kerberos tickets, but I'm not getting that principal on the freebsd boxes
-
SpaceBass
Solved! Required gssd to be enabled
-
polyex
gssd?
-
polyex
grats btw
-
SpaceBass
-
VimDiesel
Title: gssd(8)
-
SpaceBass
Presumably maps kerberos tickets to permissions
-
SpaceBass
Now, I have to make it work at boot :/
-
RhodiumToad
sysrc gssd_enable="YES" should suffice for gssd
-
SpaceBass
Got it in rc.conf
-
RhodiumToad
I don't think fstab as any option to mount as a user other than root, though
-
RhodiumToad
s/as/has/
-
SpaceBass
Linux's mount allows for a UID= and pass=
-
SpaceBass
Not sure I love keeping a pass in fstab...
-
SpaceBass
Presumably there's some way to have a secure NFS mount with more than just host IP whitelisting
-
micdud
you can mount with noauto from fstab sec=krb5
-
micdud
let user kinit then mount, at least used to work
-
micdud
and mounting as root in kerberos is not advised
-
SpaceBass
But user can't kinit at boot
-
micdud
gssproxy i think is for that , and he can always manualy after boot
-
SpaceBass
In this case, services run as the user and need access to the filesystem when the services start
-
micdud
gssproxy
-
SpaceBass
I think I can export a key tab file and root can kinit against it at boot... but I'm currently failing at that
-
micdud
you can map staticaly map hosts file in the domain to a single user also
-
micdud
idmap.conf [Static] nfs/nfs-client.lan@LAN = someuser
-
micdud
on server that is
-
SpaceBass
But the client still needs to get the principal, right?
-
micdud
no, it will use the hosts keytab
-
SpaceBass
The server's key tab?
-
micdud
clients hosts keytab
-
micdud
i only done that with nfs though for auto mounting on boot , and linux clients . never on bsd ( but might be the same )
-
SpaceBass
On the nfs server? Sorry not following
-
micdud
on nfs servers idmap.conf [Static] nfs/nfs-client.lan@LAN = someuser (nfs/nfs-client.lan@LAN) being the keytab of the client host
-
micdud
but look in to gssproxy , thats its purpose i think, actually authenticating for apps or use who cannot or do not want to kinit
-
SpaceBass
Found this which is the only thing my google-fu found today that was directionally close... but for the life of me I can't get a ticket from my key tab file
lists.freebsd.org/pipermail/freebsd…-questions/2016-October/274336.html
-
VimDiesel
Title: Mounting Kerberized NFS at boot
-
_xor
RhodiumToad: You around?