Verified Commit c7204667 authored by Bill Glick's avatar Bill Glick
Browse files

Add internal-dev.ncsa.illinois.edu

parent 8d28c01e
......@@ -198,6 +198,11 @@ function FindProxyForURL(url, host) {
"start": "141.142.192.137",
"netmask": "255.255.255.255"
},
{
"name": "ncsa internal-dev",
"start": "141.142.193.200",
"netmask": "255.255.255.255"
},
{
"name": "ncsa avl-test",
"start": "141.142.192.134",
......
function FindProxyForURL(url, host) {
// SSH bastion forwards
// ssh -D 8080 cerberus{1-4}.ncsa.illinois.edu
// ssh -D 8081 ache-bastion-{1-2}.ncsa.illinois.edu
// ssh -D 8082 bastion{1-2}.security.ncsa.illinois.edu
// ssh -D 8083 lsst-login{1-3}.ncsa.illinois.edu
// ssh -D 8084 140.252.32.143 ## LSST TUCSON BASTION
// ssh -D 8085 lsst-adm01.ncsa.illinois.edu ## LSST NPCF xCAT
// ssh -D 8086 lsst-adm-ncsa.ncsa.illinois.edu ## LSST NCSA xCAT
// LSST-LOGIN
// var lsst_proxy = "SOCKS 127.0.0.1:8083";
// NOTHING DEFINED YET FOR LSST PROXY
// LSST TUCSON BASTION
var lsst_tucson_bastion_proxy = "SOCKS 127.0.0.1:8084";
var lsst_tucson_bastion_subnets = [
{
"name": "lsst tucson atarchiver idrac",
"start": "140.252.32.127",
"netmask": "255.255.255.255"
},
{
"name": "lsst tucson comcam idrac",
"start": "140.252.32.161",
"netmask": "255.255.255.248"
},
];
for (var i = 0; i < lsst_tucson_bastion_subnets.length; i++)
{
if ( isInNet(host, lsst_tucson_bastion_subnets[i].start, lsst_tucson_bastion_subnets[i].netmask) )
return lsst_tucson_bastion_proxy;
}
// LSST-ADM01 NPCF
var lsst_adm01_bastion_proxy = "SOCKS 127.0.0.1:8085";
var lsst_adm01_bastion_subnets = [
{
"name": "lsst npcf xCAT-SVC ipmi",
"start": "192.168.180.1",
"netmask": "255.255.252.0"
},
{
"name": "lsst npcf xCAT-SVC Test ipmi",
"start": "192.168.80.1",
"netmask": "255.255.255.128"
},
];
for (var i = 0; i < lsst_adm01_bastion_subnets.length; i++)
{
if ( isInNet(host, lsst_adm01_bastion_subnets[i].start, lsst_adm01_bastion_subnets[i].netmask) )
return lsst_adm01_bastion_proxy;
}
// LSST-ADM-NCSA
var lsst_adm_ncsa_bastion_proxy = "SOCKS 127.0.0.1:8086";
var lsst_adm_ncsa_bastion_subnets = [
{
"name": "lsst ncsa xCAT-SVC ipmi",
"start": "192.168.28.1",
"netmask": "255.255.254.0"
},
{
"name": "lsst ncsa xCAT-SVC Test ipmi",
"start": "192.168.80.129",
"netmask": "255.255.255.128"
},
];
for (var i = 0; i < lsst_adm_ncsa_bastion_subnets.length; i++)
{
if ( isInNet(host, lsst_adm_ncsa_bastion_subnets[i].start, lsst_adm_ncsa_bastion_subnets[i].netmask) )
return lsst_adm_ncsa_bastion_proxy;
}
// Cerberus
var cerberus_bastion_proxy = "SOCKS 127.0.0.1:8080";
if ( host == "vsphere.ncsa.illinois.edu" )
return cerberus_bastion_proxy;
var cerberus_bastion_subnets = [
{
"name": "vsphere mgmt net esxi storage ipmi",
"start": "10.142.192.1",
"netmask": "255.255.255.0"
},
{
"name": "lsst ncsa 3003 mgmt net esxi storage ipmi",
"start": "10.142.237.1",
"netmask": "255.255.255.0"
},
{
"name": "lsst npcf vsphere mgmt net",
"start": "172.24.16.1",
"netmask": "255.255.255.0"
},
{
"name": "lsst laserena aa net",
"start": "139.229.126.1",
"netmask": "255.255.255.0"
},
{
"name": "lsst cerro pachon aa ipmi net",
"start": "172.28.5.1",
"netmask": "255.255.255.224"
},
{
"name": "lsst cerro pachon aa esx net",
"start": "172.28.5.33",
"netmask": "255.255.255.224"
},
{
"name": "ncsa netdot",
"start": "141.142.141.136",
"netmask": "255.255.255.255"
},
{
"name": "ncsa internal",
"start": "141.142.192.200",
"netmask": "255.255.255.255"
},
{
"name": "ncsa its-foreman",
"start": "141.142.192.234",
"netmask": "255.255.255.255"
},
{
"name": "ncsa wiki-test",
"start": "141.142.192.248",
"netmask": "255.255.255.255"
},
{
"name": "ncsa its servers",
"start": "141.142.192.1",
"netmask": "255.255.248.0"
},
{
"name": "ncsa lsst 237 servers",
"start": "141.142.237.1",
"netmask": "255.255.255.0"
},
{
"name": "ncsa lsst 238 servers",
"start": "141.142.238.1",
"netmask": "255.255.255.0"
},
{
"name": "npcf lsst 180 servers",
"start": "141.142.180.1",
"netmask": "255.255.255.0"
},
{
"name": "npcf lsst 181 servers",
"start": "141.142.181.1",
"netmask": "255.255.255.0"
},
];
for (var i = 0; i < cerberus_bastion_subnets.length; i++)
{
if ( isInNet(host, cerberus_bastion_subnets[i].start, cerberus_bastion_subnets[i].netmask) )
return cerberus_bastion_proxy;
}
// ACHE
var ache_bastion_proxy = "SOCKS 127.0.0.1:8081";
// 141.142.168.62/26 - VLAN 1912 (ACHE Services Net)
// 192.168.30.102/16 - VLAN 1819 (ipmi)
// 10.156.0.3/29 - VLAN 1910 (mForge DTN RED)
// 10.156.1.19/24 - VLAN 1911 (mForge Interactive GREEN)
var ache_bastion_subnets = [
{
"name": "ache-ipmi",
"start": "172.28.2.0",
"netmask": "255.255.255.192"
},
{
"name": "ache-mforge-access",
"start": "172.28.2.128",
"netmask": "255.255.255.192"
},
{
"name": "ache-vmware-mgmt",
"start": "172.28.2.192",
"netmask": "255.255.255.192"
},
{
"name": "ache-neteng-safetynet",
"start": "172.28.3.0",
"netmask": "255.255.255.192"
},
{
"name": "ache-facilities-mgmt",
"start": "172.28.3.64",
"netmask": "255.255.255.192"
},
{
"name": "mforge-archive-data",
"start": "172.30.0.0",
"netmask": "255.255.255.192"
},
{
"name": "ache-vmware-vmotion",
"start": "172.30.0.64",
"netmask": "255.255.255.192"
},
];
for (var i = 0; i < ache_bastion_subnets.length; i++)
{
if ( isInNet(host, ache_bastion_subnets[i].start, ache_bastion_subnets[i].netmask) )
return ache_bastion_proxy;
}
// No match
return "DIRECT";
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment