Skip to content

Instantly share code, notes, and snippets.

View mattm0's full-sized avatar

Matt Moor mattm0

  • Sydney, Australia
View GitHub Profile
$ curl -4 http://agilebits.com/
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
$ curl -6 http://agilebits.com/
# example.org private hosts
Host example-jumphost
Hostname jumphost.example.org
Host *.private.example.org *.exmpl
StrictHostKeyChecking no
ProxyCommand nohup ssh -Ax example-jumphost nc $(echo %h | awk '/^*\.exmpl/ { split($0, a, "."); print a[1] ".private.example.org" } /^*.private.example.org/ { print $0 }') %p