-
tsundoku
is it possible to name a bridge at the time of creation? I found a mailing list thread that said "yes you can, see the manpage" but I'm not finding an example there.
-
cybercrypto
tsundoku: what is it that you want to achieve? to create a bridge you have to specify the bridge name. Can you reformulate the question?
-
cybercrypto
tsundoku: the man page has an example using 'bridge0' as the bridge interface name, with two slaves to it.
man.freebsd.org/cgi/man.cgi?bridge(4)
-
VimDiesel
Title: bridge(4)
-
tsundoku
I can't find anything. unless I am completely failing to read, or looking at the wrong manpage, they don't say how to do it, and all the examples I'm finding assume the reader is fine with "bridge0"
-
kevans
yeah no idea what they're talking about
-
kevans
but you can do `ifconfig bridge0 create name whatabridge`
-
tsundoku
does that rename the bridge or make another one?
-
kevans
creates bridge0 and then immediately renames it
-
kevans
there's no atomic create-as-a-given-name outside of the classic <driver><unit> schema, so there's by necessity a msall window where someone can observe the original name in all cases
-
tsundoku
that may be what was referred to. it's just not apparent and I couldn't find any example of it in the manpage
-
tsundoku
fair enough
-
kevans
but I get the feeling you just don't want to do two ifconfig calls
-
tsundoku
I'm trying to unravel what bastille does so I can do some more stuff manually because it can't do what I need on its own
-
tsundoku
so bastille has already created "ixl1bridge" on its own
-
tsundoku
I'm getting deeper in the weeds than I intended to because its automatic features won't create two vnets for a jail
-
kevans
a jail can only have one vnet by design
-
kevans
you can do some wonky magic with neseted jails where the outer jail and inner jail each have their own vnet, but you can't have a jail with more than one vnet on its own
-
kevans
s/neseted/nested/
-
kevans
(this may be a terminology issue where I'm being a bit pedantic, sorry)
-
tsundoku
that's interesting... someone else told me that there's no limitation on jails and vnets, just that bastille only knows how to do one
-
tsundoku
that... kind of ruins what I was trying to do
-
kevans
can you give a high-level description of what you're trying to do?
-
tsundoku
I have a server with multiple physical NICs, each connected to a different VLAN on my core switch
-
tsundoku
I want to create VNET jails that are on various of those VLANs. most jails only need to be on one, but unless I dramatically change my setup, a few of them need to be on two
-
tsundoku
I'm coming from Solaris where you can add as many interfaces as you want into a zone
-
kevans
yeah, you shouldn't really need multiple vnets for that
-
tsundoku
no?
-
kevans
nah, this is definitely just a terminology mismatch. assuming you need to share these NICs with multiple jails, you'll likely just have a bridge per NIC and then an epair per jail
-
tsundoku
yes, that's exactly what I want to do.
-
tsundoku
but when I tell bastille to give the jail a vnet, that's what it does automatically, so I thought that was the correct term.
-
tsundoku
I'm also trying to figure out the best way to configure it so that I'm not just duct-taping things together.
-
tsundoku
(or defeating anything bastille is trying to do)
-
kevans
yeah, so vnet is the name for the virtualization of the network stack. so a jail gets a new vnet, and that vnet is the container for, e.g., all of the NICs assigned to it, the context in which the TCP stack operates, etc
-
tsundoku
oh, that's definitely not what I want
-
kevans
it is, though, it's just the concepts on top of a vnet that you care about
-
tsundoku
that's what bastille wants to do if you aren't putting the jail behind a NAT or something, though.
-
kevans
a vnet gets its own loopback and whatnot, it can bind to privileged ports
-
kevans
oh wait, maybe not by default still
-
tsundoku
-
VimDiesel
Title: Bastille Networking in Depth | BastilleBSD
-
tsundoku
this is making it sound like what bastille called VNET is literally just a bridge and an epair
-
kevans
yeah, I can see where it gives off that vibe
-
tsundoku
so I think I get how I need to make my bridges
-
tsundoku
now I need to figure out how to specify the epairs in the jail.confs. what bastille does with its -V option isn't entirely apparent from the one it generates
-
kevans
i'm actually not sure the usual approach for that; you could certainly assign them in an exec.created script
-
tsundoku
hm
-
tsundoku
I'm trying to make this as clean as possible, so... still looking
-
tsundoku
I can't find where bastille specifies the epair, which is a problem for me needing to create my own extra ones
-
tsundoku
what exactly *is* jib and what does it create? there's no manpage as far as I can tell.
-
mns
-
VimDiesel
Title: VNET Jail HowTo | Antranig Vartanian
-
mns
-
VimDiesel
Title: An Introduction to Jails and Jail Networking
-
tsundoku
thanks
-
tsundoku
I can already tell this is doing things very differently from bastille, though
-
tsundoku
this is part of the problem I'm running into...
-
mns
I think Bastille makes certain assumptions
-
tsundoku
it does, and I'm trying to figure out what they are, but the developers don't seem to expect you to need to care
-
tsundoku
so they're not making it easy
-
mns
I've heard of 'jib' but forget what it is used for. its not part of base as far as I can tell
-
tsundoku
I think jib is the key to all of it
-
mns
tsundoku: found it in /usr/share/examples/jail/
-
tsundoku
oh?
-
tsundoku
yeah, so it looks like it creates the epairs on its own
-
jmnbtslsQE
it looks like it's handled in generate_vnet_jail_netblock() in common.sh
-
jmnbtslsQE
using exec.prestart, etc, and calling the jib utility
-
jmnbtslsQE
so i don't see why you couldn't just use some exec.* variables for your additional interface
-
tsundoku
that's the idea
-
tsundoku
but I need to figure out the right syntax to use
-
jmnbtslsQE
personally i just i put that kind of initialisation in my own script called from an exec.* declaration. so if there is any way for you to specify those
-
jmnbtslsQE
i haven't used that software so i don't know
-
tsundoku
yeah
-
tsundoku
I'd rather not be adding helper scripts into the mix
-
tsundoku
I want to keep it tidy and as close to the bastille standard as possible, so just, in jail.conf, using jib, ideally
-
tsundoku
not calling homemade scripts that set up all the network stuff manually in my own way
-
tsundoku
I think I'm getting closer but there may still be a bunch of trial and error left
-
jmnbtslsQE
OK
-
tsundoku
right now I'm working on setting up the bridges I intend to use, then I'll see if I can get a jail.conf that will do the thing properly
-
tsundoku
so we were talking earlier about how to do like `ifconfig bridge0 create name whatabridge`
-
tsundoku
how would I reflect that in rc.conf?
-
jmnbtslsQE
hmm, i'd think it would be like other rc declarations, like ifconfig_bridge0="name whatabridge inet [...]" - a bit strange since the name will change. not sure
-
tsundoku
it is a little strange
-
tsundoku
and I can't find examples of bridges being named in the official documentation
-
tsundoku
and there's the cloned_interface thing too which I don't understand yet
-
jmnbtslsQE
actually, looks like you can do interface_bridge0_name="whatabridge" and then configure it normally with ifconfig_whatabridge
-
tsundoku
I'll try that
-
jmnbtslsQE
but yeah i don't think the ecosystem is very well developed yet, and you may find yourself doing more custom things than you originally want
-
tsundoku
yeah, I'm honestly really disappointed
-
tsundoku
I've been using Solaris zones for a long time and a friend who is a big FreeBSD believer told me to check out bastille because he thought it would do what I want
-
tsundoku
I'm getting the impression that it's not really there yet
-
tsundoku
I can make it work but it's much more crude than I hoped for
-
tsundoku
maybe it will get there in time...
-
mns
tsundoku: another option would be cbsd or appjail .... I've not used appjail, and cbsd was more complicated than what I needed, but might suit your needs better than bastille
-
mns
I'm actually looking to downgrade from bastille to just using /etc/jail.conf.d/jail_xxx.conf type of setup
-
tsundoku
I'd have to look
-
tsundoku
I want something that's at least sort of in the direction of Solaris zones and not doing a whole lot of manual handholding
-
mns
I've not used Solaris zones so can't compare
-
tsundoku
basically it does all the networking stuff for you. you just tell it which interfaces you want it to have and what you want their IP configuration to be
-
mns
Solaris had another container technology as well besides Zones.
-
tsundoku
you maybe thinking of LDOMs?
-
tsundoku
I never ended up playing with those.
-
mns
no not LDOMs
-
tsundoku
then I'm not sure
-
tsundoku
I'd probably recognize it by name
-
mns
its been a while since I did anything with Solaris
-
tsundoku
I'm still using it but I'm about to get off because my machine is old and I'm going to have to eventually...
-
tsundoku
about ten years ago I played with FreeBSD and jails, on FreeBSD 9, and I didn't like the state of things, so I stuck with Solaris, but now I think it's about time to give up
-
mns
there is also netbsd and its nvm setup
-
tsundoku
interesting
-
tsundoku
I won't touch anything without ZFS for servers anymore, though
-
mns
just have to wait for netbsd 10 then I think
-
tsundoku
unfortunately I don't have a whole lot of time on my hands to play around with a bunch of different things, so if I can beat bastille into shape I'm just going to go with it
-
tsundoku
so I got my bridge up and I got a jail connected to it with an epair, but the network is unreachable form inside the jail
-
tsundoku
hmm
-
mns
pf firewall
-
tsundoku
not running
-
mns
I think you need it to be running, but have a look at that VNET how to that I sent the link for earlier
-
tsundoku
I didn't need it running for the automatic jib-created ones
-
mns
I think with bridges you do need it, as I recall.
-
tsundoku
but jib creates a bridge, too.
-
tsundoku
it does the same thing
-
jmnbtslsQE
you either need an address on the epair or a route
-
tsundoku
there shouldn't be any routing happening
-
tsundoku
not on the FreeBSD machine.
-
jmnbtslsQE
hmm, if it's IPv4 then i guess ensure you have ARP turned on in the bridge
-
jmnbtslsQE
by route i just mean an entry in the jail's routing table. this should happen if you have an address on the epair
-
tsundoku
yes, it has the correct default route
-
tsundoku
but it can't reach the gateway
-
jmnbtslsQE
by gateway you mean the nexthop in the route right
-
tsundoku
I mean the defaultrouter as configured in rc.conf
-
jmnbtslsQE
well, i guess you know that you need that defaultrouter to be part of a directly connected subnet (one of your epairs)
-
tsundoku
yes, the epair and the bridge are supposed to be doing that job
-
jmnbtslsQE
not sure about that error then. aside from actually receiving a network unreachable icmp response
-
jmnbtslsQE
on the host system, bridge needs to addm your vlan interface or you need net.inet.ip.forwarding=1 , though i don't know if lack of that would generate network unreachable
-
jmnbtslsQE
there are people who can help with this better than i can who are undoubtedly not here now
-
tsundoku
yeah I'm afraid I'm going to have to go to bed in defeat tonight
-
jmnbtslsQE
also worth checking you have a non-trivial netmask set on your epair i guess
-
tsundoku
no, it's nothing obvious like that
-
jupiter126
Hello, I just read
freebsd.org/security/advisories/FreeBSD-EN-23:16.openzfs.asc and was wondering if there was no binary patch for 14.0. I did freebsd-update fetch, install and reboot, but zfs --version still reports zfs-2.2.0-FreeBSD_g95785196f and uname -a 14.0-RELEASE #0 releng/14.0-n265380 (while I hoped for releng/14.0-n265384) - did I miss something?
-
mage
jupiter126: check with freebsd-version
-
Nixkernal
try with freebsd-version -kru (k=kernen r=running u=userland)
-
tercaL
Updating from 13.2 to 14.0 via freebsd-update tool, I know that there is an Errata "FreeBSD-EN-23:16.openzfs" solved the OpenZFS problem, I wonder is there anything additional I can do, during the upgrade process, to fetch and install that patch, or a regular upgrade process will install all the patches for 14.0 automatically?
-
sopparus
is there any m2 pci-e expension card that is known to work well?
-
s2r
tercaL: first update to the latests 13.2p6 then to 14.0R
-
Zyxer
Oh
-
Zyxer
Hi
-
Zyxer
I am not sure if this is freebsd issue or mumble, since I am new to FreeBSD and Mumble. It won't accept my mic input. Same device is output, and playing sound works. Mumble is also playing sound on correct device. But it doesn't hear the mic
-
Zyxer
I can't use clbin. ssl expired? wat
-
Zyxer
curl: (60) SSL certificate problem: certificate has expired
-
Zyxer
Well, the line of interest is: pcm9: <USB audio> (play/rec) default
-
Zyxer
Ok so I have no idea why, today when I was gonna debugg mic works somehow
-
thorre
Hello, any news on OpenZFS 2.2.2 on FreeBSD? Will it be released as a 14.0-RELEASE-p releas?
-
angry_vincent
it is already in stable/14. maybe it will be in some patch set
-
thorre
so stable != RELEASE, right?
-
angry_vincent
what is your expectation in 2.2.2?
-
thorre
-
VimDiesel
Title: Two new versions of OpenZFS fix long-hidden corruption bug • The Register
-
nimaje
the corruption bug is fixed in 14.0-p1 / 13.2-p6, is there something else you want from openzfs 2.2.2?
-
angry_vincent
RELEASE has some corruption bug fixes
-
thorre
I have applied the sysctl setting that is mentioned but that is just a workaround in a bug that aparently has been in ZFS for a long time.
-
thorre
Since 2.2.2 suposedly has fixed this bug I hope to be able to get it via a RELEASE-p upgrade.
-
nimaje
"The FreeBSD project has published an errata notice, and made fixes available for FreeBSD 12, 13 and 14."
-
angry_vincent
you will not get 2.2.2 but RELEASE has the fixes cherry-picked
-
angry_vincent
-
VimDiesel
Title: src - FreeBSD source tree
-
angry_vincent
-
VimDiesel
Title: src - FreeBSD source tree
-
angry_vincent
-
VimDiesel
Title: src - FreeBSD source tree
-
thorre
Does this imply that I can remove the sysctl setting that is mentioned in the errata?
-
thorre
I am (or rather my server is) on 14.0-RELEASE-p1
-
nimaje
yes, the workaround section in the erratas is for the cases when you can't update to the point release that includes the errata
-
thorre
nimaje: Thank you for clarifying
-
nimaje
it even contains "The workaround should be removed once the system is updated to include the fix described in this notice."
-
Zyxer
How do I explain that FreeBSD eating 2GB RAM because of ZFS and that it is a feature without sounding ironic?
-
daemon
zfs aims to use free ram and give it up when something requests it
-
tykling
Zyxer: just explain that the RAM ZFS uses is freed up if something else needs it, so look at it as "optimising by using available unused resources" rather than "eating ram"
-
mason
Zyxer: Modern systems keep as much in disk cache as they can as an optimization. Spending electricity on empty RAM isn't useful.
-
Zyxer
Thanks
-
echelon
how do i check if ikev2 is supported in strongswan?
-
scoobybejesus
free RAM is wasted RAM
-
angry_vincent
echelon: not a FreeBSD question per se
-
thorre
echelon: have you tried ipsec statusall?
-
echelon
thorre: thanks
-
echelon
it's showing ikev2
-
thorre
you are welcome ;-)
-
scoobybejesus
jupiter126: i had your same question, and came to the same conclusion (or at least question) as you. for now, i am waiting to revert the vfs.zfs.dmu_offset_next_sync sysctl setting
-
nimaje
update to the latest point release and revert the setting, the point release should have the fix
-
skered
What man provides docs for rc scripts vars like required_files?
-
skered
er.. think I found it... rcsubr
-
skered
Yeah, that's it. nm.
-
echelon
thorre: you happen to know what it means when you get: parsed IKE_SA_INIT response 0 [ N(NO_PROP) ]? :/
-
thorre
Looks like a proposal missmatch to me
-
thorre
conn myconnection
-
thorre
...
-
thorre
ike=aes256-sha1-modp1024,aes128-sha1-modp1024!
-
thorre
esp=aes256-sha1,aes128-sha1!
-
thorre
...
-
thorre
sorry for the off topic paste :|-
-
thorre
Basically, to the best of my understanding, you have a miss match of the proposed and supported cyphers between the client and the server
-
echelon
i don't have any ciphers configured :/
-
echelon
thorre: happen to know what the log path for strongswan? /var/log/messages isn't registering anything
-
thorre
do a "ls -lrt" in /var/log and check wich files got updated last. Check the contents of daemon
-
Oreal
hello there i have bug in freebsd 13.2 p6 i try run inspircd version 4 and i get error and this a error Undefined symbol "_ZN3fmt2v912format_errorD1Ev"
-
Oreal
someone can help to me please?
-
mns
did you build it or install it via pkg ?
-
Oreal
i run it look the version 3 is run good but when i run the version 4 i get error
-
Oreal
i think something in freebsd not working good
-
Oreal
i think the error come from system Undefined symbol "_ZN3fmt2v912format_errorD1Ev
-
nimaje
but where did you get the binary you are trying to run from? as version 4 is in alpha, my guess would be you build it yourself, but instead of getting such an error at runtime you should have got it at build time
-
mns
I was thinking might be a missing library or something like that, or a version mismatch
-
nimaje
yeah, but that shouldn't happen at runtime with a freshly build binary, it should have failed to compile instead (but of course that "freshly build binary" is just an assumption because inspircd version 4 is in alpha and likely wrong)
-
Zyxer
Is it possible to read LUKS on FreeBSD?
-
nimaje
hm, there is
freshports.org/devel/libluksde but no idea if it works
-
VimDiesel
Title: FreshPorts -- devel/libluksde: Library and tools to access LUKS Disk Encryption encrypted volumes
-
daneurysm
anyone attempt an in-place upgrade from 13.x to 14.0? Have one running now. Hope I don't brick this ting.
-
Oreal
i have a update to 13.2.p6
-
daneurysm
I just updated to that, wanting to see what 14 is like. I'm pretty green anymore with BSD. I haven't touched it in like 2 decades
-
Oreal
i cant see the update to 14
-
Oreal
i dont have it in system
-
Oreal
and now i also run it
freshports.org/devel/libluksde and again i get error
-
VimDiesel
Title: FreshPorts -- devel/libluksde: Library and tools to access LUKS Disk Encryption encrypted volumes
-
daneurysm
I kicked it off with freebsd-update -r 14.0-RELEASE upgrade
-
nimaje
ah, so you updated from -p5 to -p6 and then you got that error? that shouldn't happen normally, point releases should stay ABI compatible, no idea where that symbol should come from and why it doesn't anymore
-
Oreal
yes i get error only from inspircd version 4 but not version 3
-
daneurysm
update completed. Moment of truth...
-
thorre
The excitement is unbearable
-
» thorre has been doing unix and unixlike updates since the 90s. Still exciting and anxeity inducing for some reason.
-
thorre
Despite we always manage to fix misshaps and errors.
-
flatdog
the excitement of discovery
-
daneurysm
So far so good, but for some reason it didn't initalize the graphics driver automatically
-
thorre
glad to see you "on the other side" daneurysm
-
daneurysm
heh, if it went completely sideways, I would have just installed via ISO. Wouldn't be the first time
-
» thorre has been nursing the same server (at home) for the past ~5 years
-
thorre
Just killing it has never been an option. At work I only have cattle so I indulge myself with a server "pet" at home.
-
» thorre also has a cat but cats are more like enteties than pets.
-
vkarlsen
drwxr-xr-x 2 root wheel 2 Sep 29 2016 mnt // I thought this box was older than this. I must be misremembering.
-
thorre
:-)
-
thorre
zfs get creation zroot
-
thorre
NAME PROPERTY VALUE SOURCE
-
thorre
zroot creation Tue Mar 6 19:34 2018 -
-
vkarlsen
:)
-
thorre
The impressive thing is that I have screwed up so many upgrades. Missed bootloader (zfs) upgrades etc. The blody server is still running strong. Corrupted files? No problem, just scrub the file system once ow twice. Unexpected powercut no problem etc. If we would submit any of the "high end" stuff at work for similar "administratio" they would be fucked up beyon repair.
-
thorre
FreeBSD always delivers.
-
thorre
I find it a pity that so many admmins nowadays do not apreciate the no frills operations systems.
-
thorre
Yes, I know that NetApp etc. use a lot of FreeBSD under the hood but when arguing about FreeBSD at work I am often met with the "what about all the liabilities" argument that RedHat and the other commerical players have "solved" with service contracts.
-
thorre
Do we know if something similar (that covers IPR liabilities) exists in the FreeBSD space?
-
thorre
IPR = Interlectual Property Rights
-
thorre
For example, how does NetAapp handle it's involvement in FreeBSD?
-
echelon
how do i get the list of fib #'s for my existing routing table?
-
jupiter126
@scoobybejesus, ok thanks ^^ am not the only one ;)
-
Erhard
Lotta patches... Glad I waited
-
tsundoku
I'm still at a loss as to why jails connected to my bridges with an epair aren't reaching the network...
-
tsundoku
everything looks right, but it's just not happening
-
Remilia
tsundoku: which network? internal or do you mean NAT?
-
tsundoku
no NAT
-
Erhard
Testing with something other than ICMP, right? IIRC ICMP is disabled by default
-
tsundoku
yes
-
Erhard
k
-
tsundoku
I have a bridge with an interface as a member
-
tsundoku
I have an epair set up through bastille (external bridge vnet) with a on the bridge and b as the vnet inside the jail
-
tsundoku
but let me try again to make sure I wasn't just testing ICMP earlier
-
tsundoku
how would I enable ICMP for that?
-
Remilia
Erhard: ICMP is not disabled for VNET jails
-
tsundoku
okay, so it's definitely not working
-
Remilia
I have never tried bastille
-
Erhard
Don't you have to allow raw sockets?
-
tsundoku
the setup I have isn't bastille-specific. bastille is just doing the epair setup with ifconfig, but it's all bog standard
-
Remilia
Erhard: hmm you might be right
-
tsundoku
I get "ping: sendto: Host is down" when I try to ping the gateway
-
Remilia
tsundoku: allow.raw_sockets should be 1
-
Remilia
probably
-
Erhard
Would probably get a perm error if it were the sockets
-
Erhard
But I can't recall
-
Remilia
tsundoku: do you see traffic on your interface on the host side?
-
Remilia
Erhard: lemme test actually
-
tsundoku
is allow.raw_sockets a jail.conf value?
-
Erhard
allow.raw_sockets=1; in jail.conf
-
Erhard
ping: ssend socket: Operation not permitted
-
Erhard
Without it
-
Remilia
seems to work without raw_sockets
-
Erhard
13.2-RELEASE-p5
-
tsundoku
so I have two jails on two different bridges right now
-
Erhard
I think you can set it in sysctl as well
-
tsundoku
one is on a bridge I made myself, and another is on a bridge bastille made automatically
-
Remilia
shows as allow.noraw_sockets
-
tsundoku
the bastille-created bridge works. mine doesn't
-
tsundoku
and the one that works doesn't have allow.raw_sockets set in jail.conf
-
Erhard
in sysctl it is: security.jail.param.allow.raw_sockets: 0
-
Erhard
security.jail.allow_raw_sockets: 0
-
Remilia
allow.noraw_sockets is set
-
tsundoku
I think this may be a red herring
-
Remilia
ping works
-
Erhard
Doesn't work here in a jail without those settings
-
Remilia
Erhard: VNET or regular?
-
Remilia
security.jail.param.allow.raw_sockets: 0
-
Erhard
I think it works in the vnet jail, but not the others.
-
Erhard
Without those systctls set (set to 0)
-
tsundoku
okay, so the whole thread of discussion around allow.raw_sockets is irrelevant to vnet jails?
-
Remilia
I cannot say for sure but it does not seem to affect my VNET jails
-
tsundoku
for the record I'm not getting any "operation not permitted," just "host is down" when I try to ping other IP addresses on the network the bridge is supposed to be connected to
-
Erhard
I think that is a different issue.
-
Erhard
WOul ignore the raw sockets thing for now
-
Remilia
tsundoku: tcpdump your bridge interface
-
Remilia
or the epair
-
Remilia
run ping
-
tsundoku
sure, just a moment
-
Erhard
Or test with telnet google.com 80 and see if you get a connection.
-
Remilia
you'd need to have routing enabled
-
Remilia
and a working resolv.conf
-
tsundoku
it should, but right now I'm just trying to ping the gateway to keep it simple
-
Erhard
telnet to any local server you know is up by ip ;-)
-
tsundoku
okay I'm getting something
-
tsundoku
looks like just ARP requests
-
tsundoku
"14:53:45.820021 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 10.4.255.254 tell 10.4.0.13, length 28"
-
tsundoku
10.4.255.254 is the gateway, 10.4.0.13 is the jail
-
tsundoku
that's from tcpdump of the bridge end of the epair
-
tsundoku
so the ARP requests aren't getting answered?
-
Erhard
You have a route setup?
-
tsundoku
yes but that's not the issue right now
-
tsundoku
I'm just trying to ping the gateway. no routing involved.
-
Erhard
Through the epair
-
tsundoku
what do you mean
-
Erhard
On my vnet jail I use an exec.prestart to set a route.
-
Erhard
It's been a while since I set this all up, mind you.
-
Erhard
So I don't know what the hell I am tlaking about, but I recall needing that.
-
tsundoku
the default route is set in rc.conf inside the jail
-
tsundoku
but that shouldn't be relevant to this because I'm not trying to leave the network the jail is on?
-
Erhard
I have this in rc.conf: ifconfig_epair0a="192.168.20.2/24"
-
Erhard
defaultrouter="192.168.20.1"
-
tsundoku
sure but
-
tsundoku
defaultrouter only matters when the destination is outside the network
-
Erhard
But then in jail.conf route add 192.168.250.0/24 192.168.20.2
-
tsundoku
right now what I'm trying to do is ping the defaultrouter itself. not send anything through it.
-
Erhard
That may be to get to my other jail. nvm.
-
Erhard
Carry on. I'll shut up
-
tsundoku
yeah, that looks like a specific route to reach another network
-
tsundoku
so if I were in your jail I'd be pinging 192.168.20.1
-
tsundoku
and getting nothing
-
Erhard
iT'S SO MY WIREGUARD JAIL CAN REACH THE DNS JAIL.
-
Erhard
Oops. Sorry for caps
-
tsundoku
teehee I was about to say "you okay over there?"
-
Remilia
tsundoku: 10.4.255.254 is your gateway?
-
tsundoku
yes, for this network
-
Remilia
do you have that address up on the bridge for these jails' epairs?
-
tsundoku
it doesn't belong to the bridge, but it's connected
-
Remilia
oh, is it a member of the bridge?
-
Remilia
10.4.255.254 specifically
-
tsundoku
10.4.255.254 is not on the FreeBSD machine at all. it's elsewhere on the network.
-
Remilia
what are you expecting then
-
tsundoku
the bridge just has the interface and the jail epairs as members. there's no IP setting on that
-
Remilia
first ping the host from the jail
-
tsundoku
the physical interface is plugged into a port on a switch that is carrying this network
-
Remilia
try pinging the IP on the host running the jails from inside a jail or vice versa
-
tsundoku
the host isn't on this network
-
Remilia
oh
-
Remilia
do you have only one jail? if there are two, can they ping each other?
-
tsundoku
I only have one on this network right now
-
Remilia
and no firewall active?
-
tsundoku
correct
-
tsundoku
the bridge is supposed to just be a dumb link between the physical interface and the epairs
-
Remilia
so epair is bridged with the interface that is on the same network as the gateway?
-
tsundoku
correct
-
tsundoku
and this setup does work, if I let bastille create the bridge.
-
tsundoku
so I think something is wrong with the bridge I created myself.
-
Remilia
is the bridge UP?
-
Remilia
brj: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
-
Remilia
I know this is a stupid question
-
tsundoku
maybe it's no!
-
tsundoku
*not
-
tsundoku
let me try to confirm
-
Remilia
check ifconfig
-
tsundoku
so it doesn't specifically say LOWER_UP, but neither does the bastille-created one that works
-
Remilia
does it have UP though
-
tsundoku
no
-
Remilia
:|
-
Remilia
ifconfig <bridge> up
-
tsundoku
igb0bridge: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
-
Remilia
problem solved
-
tsundoku
that's the one bastille created. it works.
-
tsundoku
svcbridge: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
-
tsundoku
this is the one I created. it does not work.
-
tsundoku
see a difference? I don't
-
Remilia
please try `ifconfig svcbridge up`
-
tsundoku
sure, why not
-
tsundoku
svcbridge: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
-
tsundoku
but... no change in behavior
-
Remilia
I have never tried downing the bridge myself
-
Remilia
epairs are up too?
-
tsundoku
yes, epairs have been up
-
tsundoku
so there is *one* difference I can see
-
tsundoku
the epair on the bridge bastille created has both an ether and a hwaddr value
-
tsundoku
the epair on the bridge I created only has ether, no hwaddr.
-
Remilia
well I do not have hwaddrs either
-
tsundoku
yeah, I'm not sure whether that means anything.
-
tsundoku
it's just the only observable difference between the one that works and the one that doesn't
-
Remilia
my bridge is created with rc.conf
-
Remilia
hmm
-
Remilia
honestly it is very late here and I gotta go sleep :(
-
tsundoku
alright. thanks for exploring it with me
-
tsundoku
FYI mine is created in rc.conf too
-
Erhard
Still no go?
-
Erhard
YOu have vnet.interface = "epair0a"; or similar?
-
tsundoku
yes
-
Erhard
For the hell of it did you try a full reboot?
-
Erhard
(if able)
-
Erhard
I do seem to recall encountering some issue when setting up jails where that cleared itup (presumably I had set something I did not recall)
-
Erhard
But I always test them with a reboot anyway to make sure there will be no surprises later.
-
scoobybejesus
at least restarting networking could be a worthwhile thing
-
Erhard
Which wasd likely all that was required.
-
Daneurysm
just realized the pain of upgrading from 13.2 p6 ->14 is that it doesn't also upgrade the software you've installed via ports