Skip to content

Instantly share code, notes, and snippets.

@DuffleOne
Created January 25, 2018 16:50
Show Gist options
  • Save DuffleOne/ee770a4c47b806795903693dfc906b4f to your computer and use it in GitHub Desktop.
Save DuffleOne/ee770a4c47b806795903693dfc906b4f to your computer and use it in GitHub Desktop.
{
"service": {
"nat": {
"rule": {
"1000": {
"description": "DNAT for IIS Webserver",
"destination": {
"address": "195.99.88.112",
"port": "80,443"
},
"inbound-interface": "eth2",
"inside-address": {
"address": "192.168.1.10"
},
"protocol": "tcp",
"type": "destination"
},
"1001": {
"description": "Hairpin for IIS Webserver",
"destination": {
"address": "195.99.88.112",
"port": "80,443"
},
"inbound-interface": "eth0+",
"inside-address": {
"address": "192.168.1.10"
},
"protocol": "tcp",
"type": "destination"
},
"5001": {
"description": "SNAT for IIS Webserver",
"outbound-interface": "eth2",
"outside-address": {
"address": "195.99.88.112"
},
"protocol": "all",
"source": {
"address": "192.168.1.10"
},
"type": "source"
}
}
}
},
"firewall": {
"name": {
"WAN_IN": {
"rule": {
"1000": {
"action": "accept",
"description": "IIS Webserver",
"destination": {
"address": "192.168.1.10",
"port": "80,443"
},
"protocol": "tcp",
"log": "disable"
},
"1001": {
"action": "accept",
"description": "Hairpin FW for IIS Webserver",
"destination": {
"address": "192.168.1.10",
"port": "80,443"
},
"protocol": "tcp",
"source": {
"address": "195.99.88.112"
},
"log": "disable"
}
}
}
}
},
"port-forward": {
"rule": {
"3001": {
"description": "Port-forward for IIS Webserver",
"forward-to": {
"address": "192.168.1.10"
},
"original-port": "80,443",
"protocol": "tcp"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment