Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.69 KB | None | 0 0
  1. {
  2.   "interfaces": {
  3.     "ethernet": {
  4.       "eth0": {
  5.         "address": [
  6.           "Primary WAN IP/29",
  7.           "Second WAN IP/29",
  8.           "Third WAN IP/29",
  9.           "Forth WAN IP/29",
  10.           "Fifth WAN IP/29"
  11.         ]
  12.       }
  13.     }
  14.   },
  15.   "service": {
  16.     "nat": {
  17.       "rule": {
  18.         "1000": {
  19.           "description": "DNAT for Web Server For Pterdaytcl",
  20.           "destination": {
  21.             "address": "Second WAN IP",
  22.             "port": "80"
  23.           },
  24.           "inbound-interface": "eth0",
  25.           "inside-address": {
  26.             "address": "Internal IP",
  27.             "port": "80"
  28.           },
  29.           "protocol": "tcp",
  30.           "type": "destination"
  31.         },
  32.         "1500": {
  33.           "description": "Hairpin for Web Server For Pterdaytcl",
  34.           "destination": {
  35.             "address": "Second WAN IP",
  36.             "port": "80"
  37.           },
  38.           "inbound-interface": "eth1",
  39.           "inside-address": {
  40.             "address": "Internal IP",
  41.             "port": "80"
  42.           },
  43.           "protocol": "tcp",
  44.           "type": "destination"
  45.         },
  46.         "5000": {
  47.           "description": "SNAT for Web Server For Pterdaytcl",
  48.           "outbound-interface": "eth0",
  49.           "outside-address": {
  50.             "address": "Second WAN IP"
  51.           },
  52.           "protocol": "tcp",
  53.           "source": {
  54.             "address": "Internal IP"
  55.           },
  56.           "type": "source"
  57.         }
  58.       }
  59.     }
  60.   },
  61.   "firewall": {
  62.     "name": {
  63.       "WAN_IN": {
  64.         "rule": {
  65.           "2000": {
  66.             "action": "accept",
  67.             "description": "Firewall for Web Server For Pterdaytcl",
  68.             "destination": {
  69.               "address": "Internal IP",
  70.               "port": "80"
  71.             },
  72.             "protocol": "tcp",
  73.             "log": "enable"
  74.           },
  75.           "2010": {
  76.             "action": "accept",
  77.             "description": "Hairpin FW for Web Server For Pterdaytcl",
  78.             "destination": {
  79.               "address": "Internal IP",
  80.               "port": "80"
  81.             },
  82.             "protocol": "tcp",
  83.             "source": {
  84.               "address": "Second WAN IP"
  85.             },
  86.             "log": "enable"
  87.           }
  88.         }
  89.       }
  90.     }
  91.   },
  92.   "port-forward": {
  93.     "hairpin-nat": "enable",
  94.     "lan-interface": [
  95.       "eth1"
  96.     ],
  97.     "wan-interface": "eth0",
  98.     "rule": {
  99.       "2000": {
  100.         "description": "Hairpin Portfoward for Web Server For Pterdaytcl",
  101.         "forward-to": {
  102.           "address": "Internal IP",
  103.           "port": "80"
  104.         },
  105.         "protocol": "tcp",
  106.         "original-port": "80"
  107.       }
  108.     }
  109.   }
  110. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement