From home I would like to browse my intranet at work where I have a Linux box, which I will call "W", i.e. W.workdomain.com.
My router at home closes port 22 but maps port 2222 to port 22 on my server "S" which resolves to mydomain.org.
My main machine at home, "M", is where I do my work from home. I thought this might work:
W: $ ssh -g -D 6666 -p 2222 firstname.lastname@example.org
On M I tell firefox that S:6666 is the proxy for all sites like *.workdomain.com.
So far my browser on M cannot find the intranet web sites with this scheme.
How do I make this work? What can I use to debug this?
Note: I asked this on serverfault where it was off-topic. Hopefully this is on-topic here.