Metasploit Framework should send the Interface argument when opening channels

Author: smcintyre-r7Created Mar 13, 2026Updated Sep 24, 2026
Labelssuggestion-feature

Summary

Once #21114 is implemented, Metasploit Framework should add an interface TLV and send it to Meterpreter when opening sockets and an interface is specified for API compatibility with the local comm.

The argument needs to make it to and be proceed by these three locations:

Until all of the necessary Meterpreter honor the argument, we should raise a BindFailed https://github.com/rapid7/rex-core/blob/master/lib/rex/exceptions.rb#L251 exception when the argument is used so we're not silently ignoring it. This is a brand new option, so working about raising exceptions for older code isn't a concern.

Motivation

See #21113

Source: rapid7/metasploit-framework