Directing port traffic from interface to localhost
I have a mongodb process which I'm unable to change the config on and it's bound to localhost only. I'd like to connect to it from another system.
I may have exhausted my options for trying to change the config file - is there any way to route tcp a single port's traffic from eth1 over to localhost? Thanks in advance - Joe |
Quote:
Code:
ssh -R remoteip:remoteport:localip:localport hostname Quote:
Just saying ;) |
My systems. Background is this is a unifi controller and it launches mongodb without any way to change the bind address. I want it on an IP so I can connect to it via an ODBC driver on a windows box.
I'd rather avoid using SSH on the remote side.. and forgive linux ignorance, but perhaps iptables?? |
You could likely port forward using iptables so that external devices can connect
But if the process is localhost bound, then a connection by a external ip will not work. Since you can't seem to change that behavior, the only way I know would be to "trick" it, using ssh. If windows is involved though, I can't say whether it would work or not. However, someone else may have an idea. |
All times are GMT -5. The time now is 08:05 AM. |