Advertisement
skybetik

Untitled

Nov 15th, 2023
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.37 KB | None | 0 0
  1. #NAT-POOL
  2. ${FwCMD} nat 1 config log ip *.*.*.67 deny_in reset same_ports
  3. ${FwCMD} nat 2 config log ip *.*.*.68 deny_in reset same_ports
  4. ${FwCMD} nat 3 config log ip *.*.*.69 deny_in reset same_ports
  5. ${FwCMD} nat 4 config log ip *.*.*.70 deny_in reset same_ports
  6. ${FwCMD} nat 5 config log ip *.*.*.71 deny_in reset same_ports
  7. ${FwCMD} nat 6 config log ip *.*.*.72 deny_in reset same_ports
  8. ${FwCMD} nat 7 config log ip *.*.*.73 deny_in reset same_ports
  9. ${FwCMD} nat 8 config log ip *.*.*.74 deny_in reset same_ports
  10. ${FwCMD} nat 9 config log ip *.*.*.75 deny_in reset same_ports
  11. ${FwCMD} nat 10 config log ip *.*.*.76 deny_in reset same_ports
  12. ${FwCMD} nat 11 config log ip *.*.*.77 deny_in reset same_ports
  13. ${FwCMD} nat 12 config log ip *.*.*.78 deny_in reset same_ports
  14. ${FwCMD} nat 13 config log ip *.*.*.79 deny_in reset same_ports
  15. ${FwCMD} nat 14 config log ip *.*.*.80 deny_in reset same_ports
  16. ${FwCMD} nat 15 config log ip *.*.*.81 deny_in reset same_ports
  17. ${FwCMD} nat 16 config log ip *.*.*.82 deny_in reset same_ports
  18. ${FwCMD} nat 17 config log ip *.*.*.83 deny_in reset same_ports
  19. ${FwCMD} nat 18 config log ip *.*.*.84 deny_in reset same_ports
  20. ${FwCMD} nat 19 config log ip *.*.*.85 deny_in reset same_ports
  21. ${FwCMD} nat 20 config log ip *.*.*.86 deny_in reset same_ports
  22. ${FwCMD} nat 21 config log ip *.*.*.87 deny_in reset same_ports
  23. ${FwCMD} nat 22 config log ip *.*.*.88 deny_in reset same_ports
  24. ${FwCMD} nat 23 config log ip *.*.*.89 deny_in reset same_ports
  25. ${FwCMD} nat 24 config log ip *.*.*.90 deny_in reset same_ports
  26. ${FwCMD} nat 25 config log ip *.*.*.91 deny_in reset same_ports
  27. ${FwCMD} nat 26 config log ip *.*.*.92 deny_in reset same_ports
  28. ${FwCMD} nat 27 config log ip *.*.*.93 deny_in reset same_ports
  29. ${FwCMD} nat 28 config log ip *.*.*.94 deny_in reset same_ports
  30. ${FwCMD} nat 29 config log ip *.*.*.95 deny_in reset same_ports
  31. ${FwCMD} nat 30 config log ip *.*.*.96 deny_in reset same_ports
  32. ${FwCMD} nat 31 config log ip *.*.*.97 deny_in reset same_ports
  33. ${FwCMD} nat 32 config log ip *.*.*.98 deny_in reset same_ports
  34.  
  35.  
  36. ${FwCMD} add 6000 nat tablearg ip from table\(66\) to any via ${WAN_IF}
  37. ${FwCMD} add 6001 nat tablearg ip from any to table\(67\) via ${WAN_IF}
  38.  
  39. #######Abons address############# Which number nat
  40. ${FwCMD} table 66 add 10.0.1.0/27 1
  41. ${FwCMD} table 66 add 10.0.1.32/27 2
  42. ${FwCMD} table 66 add 10.0.1.64/27 3
  43. ${FwCMD} table 66 add 10.0.1.96/27 4
  44. ${FwCMD} table 66 add 10.0.1.128/27 5
  45. ${FwCMD} table 66 add 10.0.1.160/27 6
  46. ${FwCMD} table 66 add 10.0.1.192/27 7
  47. ${FwCMD} table 66 add 10.0.1.224/27 8
  48. ${FwCMD} table 66 add 10.0.2.0/27 9
  49. ${FwCMD} table 66 add 10.0.2.32/27 10
  50. ${FwCMD} table 66 add 10.0.2.64/27 11
  51. ${FwCMD} table 66 add 10.0.2.96/27 12
  52. ${FwCMD} table 66 add 10.0.2.128/27 13
  53. ${FwCMD} table 66 add 10.0.2.160/27 14
  54. ${FwCMD} table 66 add 10.0.2.192/27 15
  55. ${FwCMD} table 66 add 10.0.2.224/27 16
  56. ${FwCMD} table 66 add 10.0.3.0/27 17
  57. ${FwCMD} table 66 add 10.0.3.32/27 18
  58. ${FwCMD} table 66 add 10.0.3.64/27 19
  59. ${FwCMD} table 66 add 10.0.3.96/27 20
  60. ${FwCMD} table 66 add 10.0.3.128/27 21
  61. ${FwCMD} table 66 add 10.0.3.160/27 22
  62. ${FwCMD} table 66 add 10.0.3.192/27 23
  63. ${FwCMD} table 66 add 10.0.3.224/27 24
  64. ${FwCMD} table 66 add 10.0.4.0/27 25
  65. ${FwCMD} table 66 add 10.0.4.32/27 26
  66. ${FwCMD} table 66 add 10.0.4.64/27 27
  67. ${FwCMD} table 66 add 10.0.4.96/27 28
  68. ${FwCMD} table 66 add 10.0.4.128/27 29
  69. ${FwCMD} table 66 add 10.0.4.160/27 30
  70. ${FwCMD} table 66 add 10.0.4.192/27 31
  71. ${FwCMD} table 66 add 10.0.4.224/27 32
  72.  
  73.  
  74.  
  75. #################### EXTERNAL IP# NAT NUMBER
  76. ${FwCMD} table 67 add *.*.*.67 1
  77. ${FwCMD} table 67 add *.*.*.68 2
  78. ${FwCMD} table 67 add *.*.*.69 3
  79. ${FwCMD} table 67 add *.*.*.70 4
  80. ${FwCMD} table 67 add *.*.*.71 5
  81. ${FwCMD} table 67 add *.*.*.72 6
  82. ${FwCMD} table 67 add *.*.*.73 7
  83. ${FwCMD} table 67 add *.*.*.74 8
  84. ${FwCMD} table 67 add *.*.*.75 9
  85. ${FwCMD} table 67 add *.*.*.76 10
  86. ${FwCMD} table 67 add *.*.*.77 11
  87. ${FwCMD} table 67 add *.*.*.78 12
  88. ${FwCMD} table 67 add *.*.*.79 13
  89. ${FwCMD} table 67 add *.*.*.80 14
  90. ${FwCMD} table 67 add *.*.*.81 15
  91. ${FwCMD} table 67 add *.*.*.82 16
  92. ${FwCMD} table 67 add *.*.*.83 17
  93. ${FwCMD} table 67 add *.*.*.84 18
  94. ${FwCMD} table 67 add *.*.*.85 19
  95. ${FwCMD} table 67 add *.*.*.86 20
  96. ${FwCMD} table 67 add *.*.*.87 21
  97. ${FwCMD} table 67 add *.*.*.88 22
  98. ${FwCMD} table 67 add *.*.*.89 23
  99. ${FwCMD} table 67 add *.*.*.90 24
  100. ${FwCMD} table 67 add *.*.*.91 25
  101. ${FwCMD} table 67 add *.*.*.92 26
  102. ${FwCMD} table 67 add *.*.*.93 27
  103. ${FwCMD} table 67 add *.*.*.94 28
  104. ${FwCMD} table 67 add *.*.*.95 29
  105. ${FwCMD} table 67 add *.*.*.96 30
  106. ${FwCMD} table 67 add *.*.*.97 31
  107. ${FwCMD} table 67 add *.*.*.98 32
  108.  
  109.  
  110.  
  111. #Shaper - table 4 download speed, table 3 - upload speed
  112. ${FwCMD} add 12001 pipe tablearg ip from any to table\(4\) via ${USER_INTERFACE} out
  113. ${FwCMD} add 12000 pipe tablearg ip from table\(3\) to any via ${USER_INTERFACE} in
  114.  
  115. #
  116. #${FwCMD} add 21000 pipe 7 ip from table\(3\) to table\(6\) via ${USER_INTERFACE } in
  117. #${FwCMD} add 21001 pipe 6 ip from table\(6\) to table\(4\) via ${USER_INTERFACE } out
  118. CE}
  119.  
  120. # default block policy
  121. ${FwCMD} add 65533 deny all from table\(2\) to any via ${USER_INTERFACE}
  122. ${FwCMD} add 65534 deny all from any to table\(2\) via ${USER_INTERFACE}
  123. ${FwCMD} add 65535 allow all from any to any
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement