20 February 2015

Background

I run a Git server behind a reverse proxy for HTTP/S traffic. This is all fine and dandy, but causes headaches when you want to use git: or ssh: remote commands. Because the public IP of the git server is the reverse proxy, and the actual repositories don't live on this box, you have to be creative to get it to work correctly.

The simplest approach to this problem is to setup some port forwarding. In turn, this becomes an SSH reverse proxy as well, without offloading any traffic.

The Hack

Tagged under iptables, port-forward, git, ssh, and others
Mike Mackintosh

This post was written by Mike Mackintosh, a decorated security professional.




Related Posts