-
martinrame
Hi!, I have PostgreSql running on a jail (port 5432), then from another jail I cannot connect, not even telnet ip_of_postgresql_jail 5432.
-
martinrame
both are on the same network and postgresql allows connections from *
-
martinrame
From the jail I can ping the postgresql IP (the same as the host)
-
martinrame
both have allow.raw_sockets and allow.sysvipc=1
-
polyex
i got a rc.d script that uses daemon to keep a bin running. 'service mybin start' works, 'service mybin status' identifies the daemon pid. 'service mybin stop' works. but if i make mybin's config file have an error and it crashes on start, 'service mybin stop' doesn't work.
-
polyex
it keeps waiting on daemon's pid and hangs. meanwhile in mybin's log file i can see it keeps being started (by daemon) and erroring out. any way to improve this? why doesn't daemon see that it's had 'service mybin stop' called and not try to restart mybin?
-
_xor
Hmm, ok. So I "seem" to have gotten mozjemalloc compiling on FreeBSD. At the very least, I have mozjemalloc.o. Trying to figure out how best to proceed from here.
-
_xor
Doing this because I like Firefox, but my biggest gripe with it is the amount of memory it chews up. Saw in the port message that it doesn't use mozjemalloc, which is supposed to use less memory.
-
JustBleedFan
What is mozjemalloc?
-
_xor
So I did `make extract patch`, copied out WRKSRC, and started looking through the source.
-
_xor
I have it compiling successfully now. Wondering how best to build firefox with it. I guess I could just create the appropriate files/patch-* files for it and build the port, but wondering if anyone else here has any experience or input on the subject.
-
_xor
JustBleedFan: Custom memory allocator by Mozilla that is based on jemalloc.
-
_xor
You would think that because it's based on jemalloc that it should compile easily on FreeBSD, though a lot of the failures were due to the build system (I think).
-
JustBleedFan
I never heard of it. I do love Firefox though. I'm new to BSD anyway. Never compiled anything in my life.
-
JustBleedFan
I have about 90 tabs open in Firefox constantly so my computer uses a lot of memory all the time.
-
_xor
Firefox on FreeBSD is terrible about memory usage when compared to the Windows build.
-
_xor
Auto Tab Discard is a good extension to help mitigate that, but I'd like to see if mozjemalloc makes a big difference.
-
JustBleedFan
My experience is Linux mostly after years of Windows use. It's definitely better on Linux than it was on Windows.
-
rennj
firefox/chrome in 4GB ram vm, chrome is the pig
-
rennj
but yeah
jemalloc.net you would think on fbsd
-
VimDiesel
Title: jemalloc
-
rennj
imgur.com/QPd1N8e pigs one and all
-
sfox
i've been having an issue with mozjemalloc
-
sfox
too
-
sfox
but with a fork of firefox
-
sfox
i don't think mozjemalloc is anything special but an old version of jemalloc included in firefox source
-
sfox
it's mainly used because gnumalloc is slow
-
_xor
It's supposed to be more secure. There's a long discussion about it.
-
sfox
however, i can't compile it on freebsd yet because apparently the source code implements it's own malloc shim for the purposes of telemtry
-
sfox
it does this by overriding c++ std:: which breaks a lot of things
-
sfox
_xor, where?
-
_xor
I have to find the link, I'm pretty sure I saved it somewhere.
-
_xor
-
VimDiesel
Title: [tor-dev] TBB Memory Allocator choice fingerprint implications
-
rennj
heh LD_PRELOAD
-
rennj
heh torproject had wayland binding when mozilla firefox didnt, had to ld_preload those abort ()
-
rennj
mozilla firefox no wayland, torproject same mozilla but with wayland foo..this was like 2 years ago i want to say.
-
rennj
termbin.com/n163 has to do that for like 2years
-
rennj
just for tor
-
rennj
old xorg well tough, tor browser basically
-
rennj
onion router to nsa exit nodes..thats tor/torbrowser. haha
-
rennj
torbrowser had wayland bindings before mozilla firefox did, for some reason..guess they are cutting edge.
-
sfox
i've had exit nodes try to force down to http on the first request
-
rennj
yeah same..
-
rennj
tor-new-circuit try again
-
rennj
i got firefox and chrome proxy thru tor if i want
-
rennj
also torbrowser..but meh
-
Dooshki
just keep in mind that a browser with javascript or cookies enabled completely defeats the purpose of tor, as you'll be very easily tracked
-
Dooshki
(same goes for normal VPNs, they don't magically "make your data secure")
-
rennj
nah, first launch each time
-
rennj
like user just installed it
-
rennj
screen size, fonts, ram, os ..fingerprinting
-
rennj
immutable ram-os is nice rm -rf stuff..means nothing to me
-
rennj
when i launch firefox/chrome/torbrowser, its first time each time..no saved anything...
-
rennj
i dont have bookmarks.html with timestamps
-
rennj
my vmware vm's same deal rm -rf them..just barebones stupid foo...steal my laptop evil maid
-
rennj
.ca stole my laptop in like 2008 at border crossing..never returned it... encrypted drives
-
rennj
truecrypt/veracrypt been audited twice now
-
rennj
oh canada!
-
rennj
seperate the os from the data
-
pie_
Is there way to view per interface routing tables or do whatever is the equivalent on freebsd of `ip route get someup dev somedev`? or is that not a thing on bsd?
-
nmz
pie_: like netstat -r you mean?
-
nmz
-
VimDiesel
Title: Chapter 34. Advanced Networking | FreeBSD Documentation Portal
-
nmz
_xor: you think that's bad? my firefox just immediately crashes when I open it
-
nmz
I've lost my profiles as well, switch to chrome, but unfortunately it can't import from the profile itself
-
mzar
pie_: route(8) has "get" command
-
Tobbi
Hello. I'm currently trying to resurrect supertux's build on freebsd. Unfortunately, we're currently having issues during the linker stage. It can't find -lSDL2_image and -lSDL2. However, we install both packages using `pkg install`. Any idea?
-
dstolfa
Tobbi: pkg search supertux turns up 2 builds already. perhaps you can look at the ports tree to see what it does?
-
Tobbi
Oh sure. Any build logs?
-
dstolfa
Tobbi: ¯\_(ツ)_/¯, you could try to clone the ports tree and build it yourself to see what it does
-
Tobbi
Ah, I found an online git repo.
-
Tobbi
I may need to provide the library path on the cmake lists command line
-
Tobbi
Anyway, the thing is, dstolfa that apparently, freebsd uses a custom makefile which somehow calls cmake.
-
Tobbi
And IDK how it works.
-
Tobbi
It has like USES_SDL=<list of libraries>
-
makr
download.freebsd.org directs me to ftp0.sjb.freebsd.org and it's very slow
-
polyex
any way for a bin in a jail to bind to a low port (80) without being superuser?
-
polyex
trying to use the portacl-rc pkg but it's not working
-
polyex
i have mac_portacl kernel mod loaded in jail host
-
johnm
polyex: have you tried forwarding that traffic using 'pf' from the lower port to a higher port that the bin can bind to without superuser access?
-
polyex
no i don't wanna do it like that
-
Dooshki
why not?
-
Dooshki
pf isn't as difficult to configure as it might seem on first glance
-
Dooshki
I find it a lot easier than Linux firewalls (iptables / nftables)
-
polyex
that's a workaround for letting a user bind a bin to a lower port. that's what mac_portacl stuff is for
-
johnm
there is a sysctl setting to allow lower port binding by non-root users (net.inet.ip.portrange.reservedhigh), but it affects the entire jail and could lead to security issues later on if not monitored or changed back when not needed
-
polyex
ya i don't wanna use that either. i wanna use mac_portacl. for that exact reason
-
johnm
have you loaded the mac_portacl module, including loader.conf, and added the necessary format in sysctl using the "idtype:id:protocol:port" format?
-
polyex
i did everything in github.com/Freaky/portacl-rc README
-
polyex
but portacl-rc still can't start in the jail
-
johnm
is the 'uid' correct for the jailed user?
-
polyex
ok got to bottom of it. sadly mac_portacl isn't virtualized per-jail. it can only be set in the jail host and it applies to all jails. really sucks
-
polyex
can't imagine mac_portacl not being per-vimage jail
-
Freaky
polyex: I could have sworn I documented that, but maybe it was just in www/caddy
-
polyex
mind putting it on the README somewhere that it's not for jails or smth?
-
polyex
and bigger issue, when and how can we get mac_portacl support per-vimage jail? that would be killer for sec
-
polyex
btw no "jail" in man page too fwiw
-
Freaky
the sysctl is virtualized if you use vnet iirc
-
polyex
what?
-
Freaky
-
VimDiesel
Title: ThomasHurst/Caddy - FreeBSD Wiki
-
polyex
that's convoluted. is that saying to put the mac_portacl rule for the jail, in the host?
-
polyex
how it should work is jail host makes sure mac_portacl is loaded, then in jail set up everything else including running the portacl-rc stuff, so jails have their own security.mac.portacl.*
-
polyex
so they can set and have their own security.mac.portacl.rules
-
polyex
any way we can make that happen Freaky?
-
mzar
polyex: this code is not vnet aware
-
mzar
but instead you can use firewall in the jail
-
polyex
it should be vnet aware tho is what i'm saying
-
polyex
is it like super hard or ?
-
mzar
if you want mac_portacl to become vnet aware, then it needs patch
-
wcarson
if i have several packages that are currently installed, but lost the .pkg file (and it's no longer in ports), is it possible to ... rebuild the .pkg from my installation?
-
wcarson
(sadly it's not in /var/cache/pkg either)
-
wcarson
i suppose a hacky way might just be to tar up the output of pkg info -l..
-
polyex
mzar know how hard it might be?
-
mzar
wcarson: pkg help create
-
wcarson
oh neat
-
wcarson
oh man, that's so simple!
-
Freaky
polyex: I have no great insight, but I wouldn't have thought it would be that difficult, mostly just changing the globals/sysctl defs to their VNET equivalents
-
zBeeble
Not sure where/how to submit this, but I have a 14 host running a behyve 15 that runs poudriere. The 14 runs poudriere for everything <= 14, and the 15 runs poudriere for 15 (obvs).
-
zBeeble
the vm mounts /usr/local/poudriere and friends from the host. This is so the output of poudriere for 15 is put together with 14.
-
zBeeble
During this, after only a few hours, I get a lock order reversal of nfs vs. bufwait followed immediately by nfsupg and bufwait
-
zBeeble
... then I get a pile of "fieid changed" errors from the vm.
-
zBeeble
... and then I need to reboot the VM to keep running poudriere.
-
zBeeble
bug?
-
V_PauAmma_V
IIRC, any lock order reversal is a bug. Dunno about the rest.
-
zBeeble
well... there are LORs to ignore. This one is a tripple, tho.
-
saper
which component is supposed to create /dev/bluetooth/<devicename> device nodes?
-
voy4g3r2
i must be going crazy, once a person does zfs set quota=1024G <zfs dataset> how do you remove that quota? the zfs-set and zfs man pages only give examples of enabling but i do not see how to unenable this quota
-
souji
voy4g3r2: can you just set it to 'none'? Thats the default I think.