Kernel protocol and different namespaces
Maria Matejka
jan.matejka at nic.cz
Fri Jun 7 22:33:59 CEST 2019
> On 6/7/19 12:14 PM, Maria Jan Matějka wrote:
>> Thinking once more about it, with respect to the interfaces and so,
>> the BGP transported over Unix socket seems to be quite simple feature
>> to do.
>
> I thought, and my initial tests support, that Unix sockets are network
> namespace specific.
>
> # netstat -aFunix
> Kernel Interface table
> Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP
> TX-OVR Flg
> eno1 1500 77564888 0 614 0 66111123 0 0 0 BMRU
> lo 65536 68143909 0 0 0 68143909 0 0 0 LRU
> # ip netns add test
> # ip netns exec test /bin/netstat -aFunix
> Kernel Interface table
> Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP
> TX-OVR Flg
> lo 65536 0 0 0 0 0 0 0
> 0 L
> # ip netns del test
>
> So, I'm not sure if that's going to work the way that you want.
It will work the same way as the BIRD control socket works.
You can try it by the attached script (run by root) which uses socat for
demonstration.
Maria
-------------- next part --------------
A non-text attachment was scrubbed...
Name: socat-test.sh
Type: application/x-shellscript
Size: 493 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20190607/00835b95/attachment.bin>
More information about the Bird-users
mailing list