Forum Discussion

HumanSky_193882's avatar
HumanSky_193882
Icon for Nimbostratus rankNimbostratus
Mar 24, 2015

Routing git traffic

Is this possible to route git traffic with F5 to GitHub or BitBucket? I currently have a self-hosted git server, git.example.com, and we want to move everything over to Bitbucket, but I don't want to break all the scripts and developers workflow. Is there a way to move my git.example.com to F5 and create a rule that handles all git level traffic (ports 22 or 443)?

 

6 Replies

  • You could try using an iRule that will re-write your git.example.com/uri URIs to their corresponding BitBucket URIs and forward the traffic onto pool members that are Bitbucket IPs. I would definitely test this before directing your developer traffic to it. i.e.

    when HTTP_REQUEST {
        if { [string tolower [HTTP::host]] equals "git.example.com"} {
            HTTP::host bitbucket.org
            HTTP::uri /newpath[HTTP::uri]
        }
    }
    
  • You could try using an iRule that will re-write your git.example.com/uri URIs to their corresponding BitBucket URIs and forward the traffic onto pool members that are Bitbucket IPs. I would definitely test this before directing your developer traffic to it. i.e.

    when HTTP_REQUEST {
        if { [string tolower [HTTP::host]] equals "git.example.com"} {
            HTTP::host bitbucket.org
            HTTP::uri /newpath[HTTP::uri]
        }
    }