Mptcpize OpenVPN from init script

I have compiled 23.05.0 with MPTCP support in the kernel.

mptcpize run openvpn --config /var/etc/openvpn-myvpn.conf works as expected and I am able to utilise both the WANs.

But in the init script when I change to PROG="mptcpize run /usr/sbin/openvpn" it doesn't start and there is nothing in the logs or on stdout.

Any pointers on what I need to do to mptcpize applications from their init scripts?

Replying to myself.

...
...
USE_PROCD=1
PROG=/usr/sbin/openvpn
LIB_MPTCPWRAP=/usr/lib/mptcpize/libmptcpwrap.so.0.0.1
...
...

and

...
...
procd_open_instance "$name"
        procd_set_param env LD_PRELOAD=${LIB_MPTCPWRAP}
        procd_set_param command "$PROG" \
...
...
1 Like

Hi, there!

Would you mind telling how could you get mptcpize binary in your openwrt? I've compiled with kernel support for MPTCPv1, but, unfortunately, it did not come with mptcpize.

Tks in advance

mptcpize is part of mptcpd package in openmptcprouter.

I added this to feeds.conf:

src-git openmptcprouter_feeds https://github.com/Ysurac/openmptcprouter-feeds.git;v0.59.1

And then,

./script feeds install -d y -p openmptcprouter_feeds mptcp mptcpd

1 Like

It worked like a charm! Thanks a lot!

Is there a x86_64 version of mptcpize? I attempted to use the instructions above but have been unsuccessful.