0.9.7-0430 dont work with EMP ?

This can be fixed using this method. But instead setting of VPN interface you should set your primary interface name.
This implementation is scheduled in RC3 version in late June.

You made me a lot of additional work....
Yeap I found a way to refresh this IP automatically for ya.

It's not so easy to apply that changes into the whole program, but I can give you a easy mod for now.

1) edit: /usr/bin/rtorrent/etc/rtorrent.conf.tpl
Replace:
Kod:
[[server_bind_line]]
To this:
Kod:
# Lets bind correct IP address for the listening socket and outgoing connections.
# To do this we have to figure out an name of interface with IPv4 address to bind to: [qvs0|bond0|eth0|tun0]
method.insert = cfg.interface.bind, simple|private, \
    "execute.capture_nothrow=sh,-c,\"$cat=\\\"bindif=`getcfg rtorrent bind_interface_name -f /etc/config/qpkg.conf` \
                                              || bindif=`route | grep '^default' | grep -o '[^ ]*$'` ; \
                                              ifconfig 2>/dev/null | grep -q $bindif 2>/dev/null \
                                                  && echo -n $bindif \
                                                  || echo -n $(route | grep '^default' | grep -o '[^ ]*$')  \\\"\""
print = (cat, "Iface  : Default network interface : ", (cfg.interface.bind))
# Get IPv4 address of a given interface
method.insert = get_interface_ipv4_address, simple|private, \
    "execute.capture=sh,-c,\"$cat=\\\"echo -n \$(ip -o -4 addr show \\\",$argument.0=,\\\" | grep -Po 'inet \\\\\\\\\\K[\\\\\\\\\\d.]+')\\\"\""
# The IP address the listening socket and outgoing connections is bound to. (bind)
# (Refresh every 10 seconds)
schedule2 = set_bind_address, 0, 10, \
    "branch=((cfg.interface.bind)), \
            ((network.bind_address.set,(get_interface_ipv4_address,(cfg.interface.bind))))"
#print = (cat, "Bind IP: Get def interface IPv4addr: ", (get_interface_ipv4_address,(cfg.interface.bind)))
print = (cat, "Bind IP: Current interface IPv4addr: ", (network.bind_address))
schedule2 = print_bind_address, 0, 0, "print = (cat, \"Bind IP: Current interface IPv4addr: \", (network.bind_address))"


# The ip address reported to the tracker
# Get public IP address without the need of having dynamic DNS service, also works from behind NAT, through tunnel
method.insert = get_public_ip_address, simple|private, \
    "execute.capture_nothrow=sh,-c,\"$cat=\\\"echo -n \$(\
    curl -sL --connect-timeout 10 --interface \\\", (cfg.interface.bind), \\\" http://ipinfo.io/ip || \
    curl -sL --connect-timeout 15 --interface \\\", (cfg.interface.bind), \\\" http://icanhazip.com || \
    curl -sL --connect-timeout 20 --interface \\\", (cfg.interface.bind), \\\"  http://obj.qnapclub.pl/app/net/ip.php || \
    echo -n 127.0.0.1)\\\"\""
# The IP address reported to the tracker. (ip) This handles dynamic IP's as well. Fallback to localhost for safety reasons.
# (Refresh your outgoing IP every (10*3)+(10+15+20)+5 extra seconds)
schedule2 = ip_tick, 0, 80, "network.local_address.set=(get_public_ip_address);print = (cat, \"New Public IP address: \", (network.local_address))"
WOT - yeah I know :D

2. find your vpn tunel interface name in ifconfig list:
Bash:
ifconfig | grep tun
you said it was tun2002 previously
make sure. because...

3. set this interface name into the config:
Bash:
setcfg rtorrent bind_interface_name tun2002 -f /etc/config/qpkg.conf
PLS REMEMBER THIS NOTE:
from that moment no matter what IP interface you will select in rtorrent settings UI, from now tun2002 will be primary interface and will fallback to the system default only if it's not available anymore in the system
so when setting in the UI otther interface like network adapter 2, other tunnel... will not work
from that moment this command is your primary interface setting

4. final step, go to the rtorrent settings, dont care about selected bind IP interface (as said above) and just click "Save settings" - this is necessary to regenerate new config files from the templates you made

btw: i know replacing text to text sometimes its bit difficult so I'm attaching my .tpl files and you can replace them (these files are from upcoming rtorrent RC3.a release I cannot guarantee that will work, but try first) - repleace all files, and follow guide from step 2!

BTW: If you think its helpful, then please dont forget to support my work:
Pay using PayPal.Me
QNAP Apps Development
Buy Silas Mariusz a Coffee. ko-fi.com/silasmariusz
Patron Checkout | Patreon
after instaling 0.9.7-0430
I get Tracker: [Failure reason \"Invalid IP detected\"]
on torrents from empornium

after googling a litte it seams to be a nown bug ? rtorrent 0.9.7 reporting internal ip to the tracker · Issue #731 · rakshasa/rtorrent



Firmware version: 4.4.1.0949
Model name: QNAP TS-873
Or you can revert to 0.9.6.