Ok, I know I'm doing something weird, but bear with me.
Rig is a Flex 6300. I am using -m 236 for the argument for rigctl, but I'm posting from memory here, so it may not be right in this post. Rest assured it is correct in my configuration.
I can configure CQRLOG to use a flex virtual TCP port on my local windows machine, and it works. The rigctl argments in this case are:
/usr/bin/rigctld -m 236 -r windows1.mydomain.com:60001 -t 4532
The issue is that I frequently also operate my flex from a remote machine. When I run from that machine, I need CQRLOG to connect that machine for rig control instead of windows1.mydomain.com. Another caveat is that, since this is a laptop, I may also run it from any random place on the internet. So, I thought that reverse SSH tunnelling was my saviour.
I create a reverse ssh tunnel from my windows client machine to my cqrlog machine (let's call that cqrlog.mydomain.com). The windows side is set to the TCP port for the flex virtual serial port on the windows machine, and the cqrlog side is set to port 60001. The SSH arguments I end up using on my windows client are something like this:
ssh -R 60001:localhost:60001 firstname.lastname@example.org
This ends up being the rigctl params I use in CQRLOG:
/usr/sbin/rigctld -m 236 -r localhost:60001 -t 4532 (I've also tried with my FQDN here instead of localhost and gotten the same result)
This way, I could theoretically make CQRLOG connect via localhost:60001 via the SSH tunnel to the flex software running on pretty much any client I wanted from anywhere on the internet. Neat, huh?
Well, the problem is that CQRLOG doesn't seem to like this. Everything connects as I want it to, but CQRLOG doesn't get frequency or mode info from the radio.
What is REALLY confusing is that, after CQRLOG starts rigctld with those arguments, I CAN, from cqrlog.mydomain.com, open a telnet connection to localhost:4532 to the rigctld daemon, and type "fmv" and other commands into the telnet window, and actually get the expected responses from the radio! But for some reason, CQRLOG is not able to do the same thing!
As far as my telnet window to rigctld is concerned, everything is fine, and the SSH tunnel is working just like when I have rigctl connect to the windows1.mydomain.com:60001. I am completely stumped as to why CQRLOG can't get frequency info from the same rigctld instance and my telnet window can, and that it's only broken when the SSH tunnel is in use under the sheets.
I'd appreciate any suggestions.