ifconfig: BRDGADD lo1: invalid argument

Alan Somers asomers at freebsd.org
Sun Jun 26 00:13:19 UTC 2016


On Sat, Jun 25, 2016 at 4:05 PM,  <org.freebsd.security at io7m.com> wrote:
> Hello!
>
> On 2016-06-25T23:46:36 +0200
> Marko Zec <zec at fer.hr> wrote:
>>
>> if_bridge(4) works only with ethernet interfaces, and lo(4) isn't such a
>> thing.
>
> Has this always been the case? I'm almost certain that I set up jails
> with extra loopback devices that communicated over bridges back in the
> FreeBSD 6 days.
>
>> Assuming you are using vnet jails, take a look at if_epair(4): assign
>> one endpoint to the bridge, and the another one to the jail.
>
> I'm not using vnet jails. I'm actually just trying to get filtering of
> outbound traffic (see the other mail I sent to this list a few seconds
> before you responded).

Based on my experience, I highly recommend vnet jails if you want
outbound filtering.  It's much simpler than trying to filter outbound
traffic from shared-IP jails.

>
>> If you're not using vnet jails, you should simply add an alias address
>> to em0.
>
> Could you explain a little more here?
>
> M
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"


More information about the freebsd-net mailing list