Advertisement
Guest User

Untitled

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