Advertisement
Guest User

iptv edgerouter USG-4p

a guest
Apr 17th, 2017
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.92 KB | None | 0 0
  1. {
  2. "firewall": {
  3. "all-ping": "enable",
  4. "broadcast-ping": "disable",
  5. "ip-src-route": "disable",
  6. "ipv6-name": {
  7. "WANv6_IN": {
  8. "default-action": "drop",
  9. "description": "WAN inbound traffic forwarded to LAN",
  10. "enable-default-log": "''",
  11. "rule": {
  12. "10": {
  13. "action": "accept",
  14. "description": "Allow established/related sessions",
  15. "state": {
  16. "established": "enable",
  17. "related": "enable"
  18. }
  19. },
  20. "20": {
  21. "action": "drop",
  22. "description": "Drop invalid state",
  23. "state": {
  24. "invalid": "enable"
  25. }
  26. }
  27. }
  28. },
  29. "WANv6_LOCAL": {
  30. "default-action": "drop",
  31. "description": "WAN inbound traffic to the router",
  32. "enable-default-log": "''",
  33. "rule": {
  34. "10": {
  35. "action": "accept",
  36. "description": "Allow established/related sessions",
  37. "state": {
  38. "established": "enable",
  39. "related": "enable"
  40. }
  41. },
  42. "20": {
  43. "action": "drop",
  44. "description": "Drop invalid state",
  45. "state": {
  46. "invalid": "enable"
  47. }
  48. },
  49. "30": {
  50. "action": "accept",
  51. "description": "Allow IPv6 icmp",
  52. "protocol": "ipv6-icmp"
  53. },
  54. "40": {
  55. "action": "accept",
  56. "description": "allow dhcpv6",
  57. "destination": {
  58. "port": "546"
  59. },
  60. "protocol": "udp",
  61. "source": {
  62. "port": "547"
  63. }
  64. }
  65. }
  66. }
  67. },
  68. "ipv6-receive-redirects": "disable",
  69. "ipv6-src-route": "disable",
  70. "log-martians": "enable",
  71. "options": "''",
  72. "receive-redirects": "disable",
  73. "send-redirects": "enable",
  74. "source-validation": "disable",
  75. "syn-cookies": "enable"
  76. },
  77. "interfaces": {
  78. "bridge": {
  79. "br0": {
  80. "aging": "300",
  81. "bridged-conntrack": "disable",
  82. "description": "br0 - Telefonie",
  83. "hello-time": "2",
  84. "max-age": "20",
  85. "priority": "32768",
  86. "promiscuous": "disable",
  87. "stp": "false"
  88. }
  89. },
  90. "ethernet": {
  91. "eth0": {
  92. "address": [
  93. "192.168.2.254/24"
  94. ],
  95. "description": "eth0 - LAN",
  96. "duplex": "auto",
  97. "firewall": {
  98. "in": {
  99. "name": "LAN_IN"
  100. },
  101. "local": {
  102. "name": "LAN_LOCAL"
  103. },
  104. "out": {
  105. "name": "LAN_OUT"
  106. }
  107. },
  108. "ipv6": {
  109. "dup-addr-detect-transmits": "1",
  110. "router-advert": {
  111. "cur-hop-limit": "64",
  112. "link-mtu": "0",
  113. "managed-flag": "false",
  114. "max-interval": "600",
  115. "name-server": [
  116. "2001:4860:4860::8888",
  117. "2001:4860:4860::8844"
  118. ],
  119. "other-config-flag": "false",
  120. "prefix": {
  121. "::/64": {
  122. "autonomous-flag": "true",
  123. "on-link-flag": "true",
  124. "valid-lifetime": "2592000"
  125. }
  126. },
  127. "radvd-options": [
  128. "RDNSS 2001:4860:4860::8888 2001:4860:4860::8844 {};"
  129. ],
  130. "reachable-time": "0",
  131. "retrans-timer": "0",
  132. "send-advert": "true"
  133. }
  134. },
  135. "speed": "auto"
  136. },
  137. "eth2": {
  138. "description": "eth2 - ExperiaBox",
  139. "duplex": "auto",
  140. "mtu": "1512",
  141. "speed": "auto",
  142. "vif": {
  143. "4": {
  144. "address": [
  145. "dhcp"
  146. ],
  147. "description": "eth2.4 - IPTV",
  148. "dhcp-options": {
  149. "client-option": [
  150. "send vendor-class-identifier "IPTV_RG";",
  151. "request subnet-mask, routers, rfc3442-classless-static-routes;"
  152. ],
  153. "default-route": "no-update",
  154. "default-route-distance": "210",
  155. "name-server": "update"
  156. }
  157. },
  158. "6": {
  159. "description": "eth2.6 - Internet",
  160. "mtu": "1508",
  161. "pppoe": {
  162. "0": {
  163. "default-route": "auto",
  164. "dhcpv6-pd": {
  165. "no-dns": "''",
  166. "pd": {
  167. "0": {
  168. "interface": {
  169. "eth0": {
  170. "prefix-id": ":1",
  171. "service": "slaac"
  172. }
  173. },
  174. "prefix-length": "/48"
  175. }
  176. },
  177. "rapid-commit": "disable"
  178. },
  179. "firewall": {
  180. "in": {
  181. "ipv6-name": "WANv6_IN",
  182. "name": "WAN_IN"
  183. },
  184. "local": {
  185. "ipv6-name": "WANv6_LOCAL",
  186. "name": "WAN_LOCAL"
  187. }
  188. },
  189. "idle-timeout": "180",
  190. "ipv6": {
  191. "address": {
  192. "autoconf": "''"
  193. },
  194. "dup-addr-detect-transmits": "1",
  195. "enable": "''"
  196. },
  197. "mtu": "1500",
  198. "name-server": "auto",
  199. "password": "kpn",
  200. "user-id": "F0-9F-C2-10-56-DA@internet"
  201. }
  202. }
  203. },
  204. "7": {
  205. "bridge-group": {
  206. "bridge": "br0"
  207. },
  208. "description": "eth2.7 - ExperiaBox VOIP",
  209. "mtu": "1500"
  210. }
  211. }
  212. }
  213. }
  214. },
  215. "protocols": {
  216. "igmp-proxy": {
  217. "interface": {
  218. "eth0": {
  219. "role": "downstream",
  220. "threshold": "2"
  221. },
  222. "eth2.4": {
  223. "alt-subnet": [
  224. "0.0.0.0/0"
  225. ],
  226. "role": "upstream",
  227. "threshold": "1"
  228. }
  229. }
  230. },
  231. "static": {
  232. "interface-route6": {
  233. "::/0": {
  234. "next-hop-interface": {
  235. "pppoe0": "''"
  236. }
  237. }
  238. },
  239. "route": {
  240. "213.75.112.0/21": {
  241. "next-hop": {
  242. "10.246.84.1": "''"
  243. }
  244. }
  245. }
  246. }
  247. },
  248. "service": {
  249. "dhcp-server": {
  250. "disabled": "false",
  251. "global-parameters": [
  252. "option vendor-class-identifier code 60 = string;",
  253. "option broadcast-address code 28 = ip-address;"
  254. ],
  255. "hostfile-update": "disable",
  256. "shared-network-name": {
  257. "LAN": {
  258. "authoritative": "disable",
  259. "subnet": {
  260. "192.168.2.0/24": {
  261. "default-router": "192.168.2.254",
  262. "dns-server": [
  263. "192.168.2.254"
  264. ],
  265. "lease": "86400",
  266. "start": {
  267. "192.168.2.50": {
  268. "stop": "192.168.2.200"
  269. }
  270. }
  271. }
  272. }
  273. }
  274. },
  275. "use-dnsmasq": "disable"
  276. },
  277. "dns": {
  278. "forwarding": {
  279. "cache-size": "150",
  280. "listen-on": [
  281. "eth0"
  282. ],
  283. "name-server": [
  284. "8.8.8.8",
  285. "8.8.4.4"
  286. ],
  287. "options": [
  288. "listen-address=192.168.2.254"
  289. ]
  290. }
  291. },
  292. "nat": {
  293. "rule": {
  294. "5000": {
  295. "description": "IPTV",
  296. "destination": {
  297. "address": "213.75.112.0/21"
  298. },
  299. "log": "disable",
  300. "outbound-interface": "eth2.4",
  301. "protocol": "all",
  302. "source": "''",
  303. "type": "masquerade"
  304. }
  305. }
  306. }
  307. },
  308. "system": {
  309. "name-server": [
  310. "2001:4860:4860::8888",
  311. "2001:4860:4860::8844",
  312. "8.8.8.8",
  313. "8.8.4.4"
  314. ]
  315. },
  316. "offload": {
  317. "ipsec": "enable",
  318. "ipv4": {
  319. "forwarding": "enable",
  320. "pppoe": "enable",
  321. "vlan": "enable"
  322. },
  323. "ipv6": {
  324. "forwarding": "enable",
  325. "vlan": "enable"
  326. }
  327. },
  328. "task-scheduler": {
  329. "task": {
  330. "updateIPTVroute": {
  331. "executable": {
  332. "path": "/config/scripts/tvroute.sh"
  333. },
  334. "interval": "5m"
  335. }
  336. }
  337. }
  338. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement