Advertisement
Sheridan_ru

Untitled

Aug 5th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.38 KB | None | 0 0
  1.  
  2. type AutoGenerated struct {
  3. Nftables []struct {
  4. Table struct {
  5. Family string `json:"family"`
  6. Name string `json:"name"`
  7. Handle int `json:"handle"`
  8. } `json:"table,omitempty"`
  9. Chain struct {
  10. Family string `json:"family"`
  11. Table string `json:"table"`
  12. Name string `json:"name"`
  13. Handle int `json:"handle"`
  14. } `json:"chain,omitempty"`
  15. Rule struct {
  16. Family string `json:"family"`
  17. Table string `json:"table"`
  18. Chain string `json:"chain"`
  19. Handle int `json:"handle"`
  20. Comment string `json:"comment"`
  21. Expr []struct {
  22. Match struct {
  23. Left struct {
  24. NAMING_FAILED []struct {
  25. Payload struct {
  26. Name string `json:"name"`
  27. Field string `json:"field"`
  28. } `json:"payload,omitempty"`
  29. NAMING_FAILED []string `json:"|,omitempty"`
  30. } `json:"&"`
  31. } `json:"left"`
  32. Right struct {
  33. NAMING_FAILED []string `json:"|"`
  34. } `json:"right"`
  35. Op string `json:"op"`
  36. } `json:"match,omitempty"`
  37. Counter struct {
  38. Packets int `json:"packets"`
  39. Bytes int `json:"bytes"`
  40. } `json:"counter,omitempty"`
  41. Drop interface{} `json:"drop,omitempty"`
  42. } `json:"expr"`
  43. } `json:"rule,omitempty"`
  44. Rule struct {
  45. Family string `json:"family"`
  46. Table string `json:"table"`
  47. Chain string `json:"chain"`
  48. Handle int `json:"handle"`
  49. Expr []struct {
  50. Jump string `json:"jump"`
  51. } `json:"expr"`
  52. } `json:"rule,omitempty"`
  53. Chain struct {
  54. Family string `json:"family"`
  55. Table string `json:"table"`
  56. Name string `json:"name"`
  57. Handle int `json:"handle"`
  58. Type string `json:"type"`
  59. Hook string `json:"hook"`
  60. Prio int `json:"prio"`
  61. Policy string `json:"policy"`
  62. } `json:"chain,omitempty"`
  63. Rule struct {
  64. Family string `json:"family"`
  65. Table string `json:"table"`
  66. Chain string `json:"chain"`
  67. Handle int `json:"handle"`
  68. Expr []struct {
  69. Jump string `json:"jump"`
  70. } `json:"expr"`
  71. } `json:"rule,omitempty"`
  72. Rule struct {
  73. Family string `json:"family"`
  74. Table string `json:"table"`
  75. Chain string `json:"chain"`
  76. Handle int `json:"handle"`
  77. Expr []struct {
  78. Jump string `json:"jump"`
  79. } `json:"expr"`
  80. } `json:"rule,omitempty"`
  81. Chain struct {
  82. Family string `json:"family"`
  83. Table string `json:"table"`
  84. Name string `json:"name"`
  85. Handle int `json:"handle"`
  86. Type string `json:"type"`
  87. Hook string `json:"hook"`
  88. Prio int `json:"prio"`
  89. Policy string `json:"policy"`
  90. } `json:"chain,omitempty"`
  91. Rule struct {
  92. Family string `json:"family"`
  93. Table string `json:"table"`
  94. Chain string `json:"chain"`
  95. Handle int `json:"handle"`
  96. Expr []struct {
  97. Jump string `json:"jump"`
  98. } `json:"expr"`
  99. } `json:"rule,omitempty"`
  100. Chain struct {
  101. Family string `json:"family"`
  102. Table string `json:"table"`
  103. Name string `json:"name"`
  104. Handle int `json:"handle"`
  105. Type string `json:"type"`
  106. Hook string `json:"hook"`
  107. Prio int `json:"prio"`
  108. Policy string `json:"policy"`
  109. } `json:"chain,omitempty"`
  110. Rule struct {
  111. Family string `json:"family"`
  112. Table string `json:"table"`
  113. Chain string `json:"chain"`
  114. Handle int `json:"handle"`
  115. Expr []struct {
  116. Jump string `json:"jump"`
  117. } `json:"expr"`
  118. } `json:"rule,omitempty"`
  119. Rule struct {
  120. Family string `json:"family"`
  121. Table string `json:"table"`
  122. Chain string `json:"chain"`
  123. Handle int `json:"handle"`
  124. Expr []struct {
  125. Jump string `json:"jump"`
  126. } `json:"expr"`
  127. } `json:"rule,omitempty"`
  128. Chain struct {
  129. Family string `json:"family"`
  130. Table string `json:"table"`
  131. Name string `json:"name"`
  132. Handle int `json:"handle"`
  133. Type string `json:"type"`
  134. Hook string `json:"hook"`
  135. Prio int `json:"prio"`
  136. Policy string `json:"policy"`
  137. } `json:"chain,omitempty"`
  138. Chain struct {
  139. Family string `json:"family"`
  140. Table string `json:"table"`
  141. Name string `json:"name"`
  142. Handle int `json:"handle"`
  143. Type string `json:"type"`
  144. Hook string `json:"hook"`
  145. Prio int `json:"prio"`
  146. Policy string `json:"policy"`
  147. } `json:"chain,omitempty"`
  148. Chain struct {
  149. Family string `json:"family"`
  150. Table string `json:"table"`
  151. Name string `json:"name"`
  152. Handle int `json:"handle"`
  153. Type string `json:"type"`
  154. Hook string `json:"hook"`
  155. Prio int `json:"prio"`
  156. Policy string `json:"policy"`
  157. } `json:"chain,omitempty"`
  158. Chain struct {
  159. Family string `json:"family"`
  160. Table string `json:"table"`
  161. Name string `json:"name"`
  162. Handle int `json:"handle"`
  163. Type string `json:"type"`
  164. Hook string `json:"hook"`
  165. Prio int `json:"prio"`
  166. Policy string `json:"policy"`
  167. } `json:"chain,omitempty"`
  168. Rule struct {
  169. Family string `json:"family"`
  170. Table string `json:"table"`
  171. Chain string `json:"chain"`
  172. Handle int `json:"handle"`
  173. Expr []struct {
  174. Match struct {
  175. Left struct {
  176. Payload struct {
  177. Name string `json:"name"`
  178. Field string `json:"field"`
  179. } `json:"payload"`
  180. } `json:"left"`
  181. Right struct {
  182. Prefix struct {
  183. Addr string `json:"addr"`
  184. Len int `json:"len"`
  185. } `json:"prefix"`
  186. } `json:"right"`
  187. } `json:"match,omitempty"`
  188. Counter struct {
  189. Packets int `json:"packets"`
  190. Bytes int `json:"bytes"`
  191. } `json:"counter,omitempty"`
  192. Masquerade interface{} `json:"masquerade,omitempty"`
  193. } `json:"expr"`
  194. } `json:"rule,omitempty"`
  195. Rule struct {
  196. Family string `json:"family"`
  197. Table string `json:"table"`
  198. Chain string `json:"chain"`
  199. Handle int `json:"handle"`
  200. Expr []struct {
  201. Match struct {
  202. Left struct {
  203. Payload struct {
  204. Name string `json:"name"`
  205. Field string `json:"field"`
  206. } `json:"payload"`
  207. } `json:"left"`
  208. Right struct {
  209. Prefix struct {
  210. Addr string `json:"addr"`
  211. Len int `json:"len"`
  212. } `json:"prefix"`
  213. } `json:"right"`
  214. } `json:"match,omitempty"`
  215. Counter struct {
  216. Packets int `json:"packets"`
  217. Bytes int `json:"bytes"`
  218. } `json:"counter,omitempty"`
  219. Masquerade interface{} `json:"masquerade,omitempty"`
  220. } `json:"expr"`
  221. } `json:"rule,omitempty"`
  222. } `json:"nftables"`
  223. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement