Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.76 KB | None | 0 0
  1. firewall {
  2. all-ping enable
  3. broadcast-ping disable
  4. ipv6-receive-redirects disable
  5. ipv6-src-route disable
  6. ip-src-route disable
  7. log-martians enable
  8. name Inside-to-Outside {
  9. default-action drop
  10. description "LAN to WAN"
  11. rule 1 {
  12. action accept
  13. description All
  14. destination {
  15. address 0.0.0.0/0
  16. group {
  17. }
  18. }
  19. log disable
  20. protocol all
  21. source {
  22. address 172.16.1.1/24
  23. group {
  24. }
  25. }
  26. }
  27. }
  28. name Outside-to-Inside {
  29. default-action drop
  30. description out-in
  31. rule 1 {
  32. action accept
  33. description Established
  34. destination {
  35. address 172.16.1.0/24
  36. }
  37. log disable
  38. protocol all
  39. source {
  40. address 0.0.0.0/24
  41. }
  42. state {
  43. established enable
  44. invalid disable
  45. new disable
  46. related enable
  47. }
  48. }
  49. }
  50. receive-redirects disable
  51. send-redirects enable
  52. source-validation disable
  53. syn-cookies enable
  54. }
  55. interfaces {
  56. ethernet eth0 {
  57. address dhcp
  58. duplex auto
  59. firewall {
  60. out {
  61. name Inside-to-Outside
  62. }
  63. }
  64. speed auto
  65. }
  66. ethernet eth1 {
  67. duplex auto
  68. speed auto
  69. }
  70. ethernet eth2 {
  71. duplex auto
  72. speed auto
  73. }
  74. ethernet eth3 {
  75. duplex auto
  76. speed auto
  77. }
  78. ethernet eth4 {
  79. duplex auto
  80. speed auto
  81. }
  82. loopback lo {
  83. }
  84. switch switch0 {
  85. address 172.16.1.1/24
  86. mtu 1500
  87. switch-port {
  88. interface eth1 {
  89. }
  90. interface eth2 {
  91. }
  92. interface eth3 {
  93. }
  94. interface eth4 {
  95. }
  96. vlan-aware disable
  97. }
  98. }
  99. }
  100. port-forward {
  101. auto-firewall enable
  102. hairpin-nat enable
  103. lan-interface switch0
  104. rule 1 {
  105. description Optivault_80
  106. forward-to {
  107. address 172.16.1.101
  108. port 80
  109. }
  110. original-port 80
  111. protocol tcp_udp
  112. }
  113. rule 2 {
  114. description Optivault_443
  115. forward-to {
  116. address 172.16.1.101
  117. port 443
  118. }
  119. original-port 443
  120. protocol tcp_udp
  121. }
  122. rule 3 {
  123. description Optivault_32400
  124. forward-to {
  125. address 172.16.1.101
  126. port 32400
  127. }
  128. original-port 32400
  129. protocol tcp_udp
  130. }
  131. wan-interface eth0
  132. }
  133. service {
  134. dhcp-server {
  135. disabled false
  136. hostfile-update disable
  137. shared-network-name LAN-DHCP {
  138. authoritative disable
  139. subnet 172.16.1.0/24 {
  140. default-router 172.16.1.1
  141. dns-server 8.8.8.8
  142. dns-server 8.8.4.4
  143. lease 86400
  144. start 172.16.1.100 {
  145. stop 172.16.1.200
  146. }
  147. static-mapping BD-S7e {
  148. ip-address 172.16.1.111
  149. mac-address a4:08:ea:15:7e:e0
  150. }
  151. static-mapping BD-ShieldTV {
  152. ip-address 172.16.1.102
  153. mac-address 00:04:4b:53:a6:11
  154. }
  155. static-mapping BD-Surface {
  156. ip-address 172.16.1.110
  157. mac-address c0:33:5e:17:2c:bf
  158. }
  159. static-mapping OptiVault {
  160. ip-address 172.16.1.101
  161. mac-address 00:11:32:50:83:5d
  162. }
  163. static-mapping UAP-AC-Pro {
  164. ip-address 172.16.1.100
  165. mac-address 44:d9:e7:f9:7b:b2
  166. }
  167. unifi-controller 172.16.1.101
  168. }
  169. }
  170. use-dnsmasq disable
  171. }
  172. gui {
  173. http-port 80
  174. https-port 443
  175. listen-address 172.16.1.1
  176. older-ciphers enable
  177. }
  178. nat {
  179. rule 5000 {
  180. description "LAN~WAN masquerade"
  181. destination {
  182. }
  183. log disable
  184. outbound-interface eth0
  185. protocol all
  186. source {
  187. address 172.16.1.0/24
  188. }
  189. type masquerade
  190. }
  191. }
  192. ssh {
  193. listen-address 172.16.1.1
  194. port 22
  195. protocol-version v2
  196. }
  197. }
  198. system {
  199. host-name ubnt
  200. login {
  201. user ubnt {
  202. authentication {
  203. encrypted-password $1$zKNoUbAo$gomzUbYvgyUMcD436Wo66.
  204. }
  205. level admin
  206. }
  207. }
  208. name-server 8.8.8.8
  209. name-server 8.8.4.4
  210. ntp {
  211. server 0.ubnt.pool.ntp.org {
  212. }
  213. server 1.ubnt.pool.ntp.org {
  214. }
  215. server 2.ubnt.pool.ntp.org {
  216. }
  217. server 3.ubnt.pool.ntp.org {
  218. }
  219. }
  220. syslog {
  221. global {
  222. facility all {
  223. level notice
  224. }
  225. facility protocols {
  226. level debug
  227. }
  228. }
  229. }
  230. time-zone UTC
  231. traffic-analysis {
  232. dpi enable
  233. export enable
  234. }
  235. }
  236.  
  237.  
  238. /* Warning: Do not remove the following line. */
  239. /* === vyatta-config-version: "config-management@1:conntrack@1:cron@1:dhcp-relay@1:dhcp-server@4:firewall@5:ipsec@5:nat@3:qos@1:quagga@2:system@4:ubnt-pptp@1:ubnt-util@1:vrrp@1:webgui@1:webproxy@1:zone-policy@1" === */
  240. /* Release version: v1.9.0.4901118.160804.1131 */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement