Hi all,
I’am currently struggling detecting the public ip address of interfaces, which are hidden behind another router (one per interface). My WAN interfaces just see some private addresses and the NAT is done on the cable provider router.
It would be very easy if /tool fetch would have the interface switch, but I need another way to call my script at the external web-server per interface.
I thought I could handle this with a mangle rule for the output chain, but my L7 filter never matches, I even tried the easiest regex but with no luck.
Can someone enlighten me how the regex should look like if I need to call
http://www.myserver.de/ip.php?interface=ether6
For the other interface I would have similar filters, e.g. ether7, ether8, …
With a working filter I hope I can track the connection per interface, which is then routed via the proper interface.
Thanks in advance.
–Michael