af-graft
af-graft copied to clipboard
AF_GRAFT: Grafting sockets from containers onto host newtork stacks
I had using kernel 4.20 lately, when I moved to 5.x I got this error when trying to build the af-graft kernel module: ``` $ make echo -I/../include/ -I/../include/ make...
This can be reproduced with haproxy (any load balancer or port forwarder will not work too): ``` ip netns add nsx ip netns exec nsx ip li set lo up...
I tried to graft a C program which is compatible with LD_PRELOAD trick and got some error when doing, it's 3proxy: https://github.com/z3APA3A/3proxy/blob/master/src/tcppm.c https://github.com/z3APA3A/3proxy/blob/master/src/proxymain.c https://github.com/z3APA3A/3proxy/blob/master/src/proxy.h I run a iperf3 instance listening...
ip netns add ns1 && ip netns exec ns1 ip link set lo up modprobe -r ipx insmod /opt/af-graft/kmod/af_graft.ko /opt/af-graft/iproute2-4.10.0/ip/ip graft add nx4 type ipv4 addr 127.0.0.1 port 53 netns...