br0| |-- tun10 -pipe-tun0(18.104.22.168) |-- tun11 -pipe-tun1(22.214.171.124) |-- tun12 -pipe-tun2(126.96.36.199)
The pipe program is a custom program that forwards data back2back between two tun interfaces.
The idea is puting 2 programs in .2 and .3 while keeping .1 as the local interface in the current machine. The main problem is that I want to route packets to .2 and to .3 through .1 and br0, but as they are local interfaces, the kernel ignores any routing instruction, it just delivers the packet to the proper interface.
Tried iptables, but the nat table doesn't even see ping packets to those ifaces. A "ping 188.8.131.52" delivers a icmp packet with source and dest .2 to tun1, ideally it should deliver a source .1 dest .2 at tun1 through tun0-br0-tun1
Here the output of some commands: