Quantcast
Channel: zeroturnaround.com » All Posts
Viewing all articles
Browse latest Browse all 2540

How to limit jrebel remote port to just the localhost?

$
0
0

How to limit jrebel remote port to just the localhost?

Right now I use the system property rebel.remoting_port=2222. This port can be hit from any machine that has network access to my machine.

What if I want to restrict the port to only users who have ssh access to my machine?
I want to do something like rebel.remoting_port=localhost:2222

Now I can connect to jrebel remote only by using an ssh tunnel

ssh -N 2222:localhost:2222 myhost.com

This way, if there is a security vulnerability, users without ssh access to my machine won’t be able to exploit it.

  • This topic was modified 1 hour, 9 minutes ago by  Sankar Shanmugam. Reason: Formatting

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>