Guest User

Partial config

a guest
Sep 16th, 2015
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. interfaces {
  2. bridge br0 {
  3. aging 300
  4. bridged-conntrack disable
  5. description "br0 - Phone"
  6. hello-time 2
  7. max-age 20
  8. priority 32768
  9. promiscuous disable
  10. stp false
  11. }
  12. ethernet eth0 {
  13. address 192.168.1.1/24
  14. description "LAN - eth0"
  15. duplex auto
  16. speed auto
  17. }
  18. ethernet eth1 {
  19. description "NTU - eth1"
  20. duplex auto
  21. speed auto
  22. vif 4 {
  23. address dhcp
  24. description "IPTV - eth1.4"
  25. dhcp-options {
  26. client-option "send vendor-class-identifier "IPTV_RG";"
  27. client-option "request subnet-mask, routers, rfc3442-classless-static-routes;"
  28. default-route no-update
  29. default-route-distance 254
  30. name-server update
  31. }
  32. firewall {
  33. in {
  34. }
  35. }
  36. }
  37. vif 6 {
  38. description "Internet - eth1.6"
  39. mtu 1500
  40. pppoe 0 {
  41. default-route auto
  42. mtu 1492
  43. name-server auto
  44. password ppp
  45. user-id 11-11-11-11-11-11@internet
  46. }
  47. }
  48. vif 7 {
  49. bridge-group {
  50. bridge br0
  51. }
  52. description "Phone - eth1.7"
  53. mtu 1500
  54. }
  55. }
  56. ethernet eth2 {
  57. description "Phone - eth2"
  58. duplex auto
  59. speed auto
  60. vif 7 {
  61. bridge-group {
  62. bridge br0
  63. }
  64. description "Phone - eth2.7"
  65. mtu 1500
  66. }
  67. }
  68. }
  69. protocols {
  70. igmp-proxy {
  71. interface eth0 {
  72. role downstream
  73. threshold 1
  74. }
  75. interface eth1.4 {
  76. alt-subnet 0.0.0.0/0
  77. role upstream
  78. threshold 1
  79. }
  80. }
  81. static {
  82. route 213.75.112.0/21 {
  83. next-hop 10.164.0.1 {
  84. }
  85. }
  86. }
  87. }
  88. service {
  89. dhcp-server {
  90. disabled false
  91. global-parameters "option vendor-class-identifier code 60 = string;"
  92. global-parameters "option broadcast-address code 28 = ip-address;"
  93. hostfile-update disable
  94. shared-network-name LAN1 {
  95. authoritative enable
  96. subnet 192.168.1.0/24 {
  97. default-router 192.168.1.1
  98. dns-server 8.8.8.8
  99. lease 86400
  100. start 192.168.1.10 {
  101. stop 192.168.1.100
  102. }
  103. subnet-parameters "option vendor-class-identifier "IPTV_RG";"
  104. subnet-parameters "option broadcast-address 192.168.1.255;"
  105. }
  106. }
  107. }
  108. nat {
  109. rule 5001 {
  110. description IPTV1
  111. destination {
  112. address 10.164.0.0/18
  113. }
  114. log disable
  115. outbound-interface eth1.4
  116. protocol all
  117. type masquerade
  118. }
  119. rule 5002 {
  120. description IPTV2
  121. destination {
  122. address 213.75.112.0/21
  123. }
  124. log disable
  125. outbound-interface eth1.4
  126. protocol all
  127. type masquerade
  128. }
  129. rule 5003 {
  130. outbound-interface pppoe0
  131. type masquerade
  132. }
  133. }
  134. }
  135. system {
  136. offload {
  137. ipv4 {
  138. forwarding enable
  139. gre enable
  140. pppoe enable
  141. vlan enable
  142. }
  143. }
  144. }
Advertisement
Add Comment
Please, Sign In to add comment