I am probably not thinking about this correctly but what I am trying to do is forward connections to our Atlassian apps which are hosted on an internal site through a machine on a VPN that can access them.
In the hosts I put in references so my book marks will work like
127.0.0.1. jira.internal.mycomp
127.0.0.1. bitbucket.internal.mycomp
127.0.0.1. confluence.internal.mycomp
Then I do a port forward like
ssh -A -g -L 443:192.168.32.20:443 [email protected]
where 109 is my local machine connected to the VPN and in this case .20 is the remote machine for jira.
So yeah now all my bookmarks I have for Jira with jira.internal.mycomp work fine and I can get to Jira.
However, if I want to do bitbucket or confluence I have to bring the tunnel down and open it again to the new ip endpoint for 443.
So this really can only work with one at the same time. I totally get I could use different local ports and have all 3 go to different endpoints BUT then all my bookmarks would break as they assume 443 and I use them more at work so I don't want to change them.
I thought about a reverse tunnel but obviously I can't have all my local port 443 traffic go over the tunnel.
Is there a way to make a tunnel and only send traffic over it for specific IPs etc for the 3 service endpoints I have?
Again I am probably over complicating this but I would love a way to have my bookmarks work normally at home and at work and have them get tunneled over the VPN on my other machine.