Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.61 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 WAN_IN {
  9. default-action drop
  10. description "WAN to internal"
  11. rule 10 {
  12. action accept
  13. description "Allow established/related"
  14. state {
  15. established enable
  16. related enable
  17. }
  18. }
  19. rule 20 {
  20. action drop
  21. description "Drop invalid state"
  22. state {
  23. invalid enable
  24. }
  25. }
  26. }
  27. name WAN_LOCAL {
  28. default-action drop
  29. description "WAN to router"
  30. rule 10 {
  31. action accept
  32. description "Allow established/related"
  33. state {
  34. established enable
  35. related enable
  36. }
  37. }
  38. rule 20 {
  39. action drop
  40. description "Drop invalid state"
  41. state {
  42. invalid enable
  43. }
  44. }
  45. }
  46. receive-redirects disable
  47. send-redirects enable
  48. source-validation disable
  49. syn-cookies enable
  50. }
  51. interfaces {
  52. ethernet eth0 {
  53. duplex auto
  54. speed auto
  55. }
  56. ethernet eth1 {
  57. duplex auto
  58. speed auto
  59. }
  60. ethernet eth2 {
  61. duplex auto
  62. speed auto
  63. }
  64. ethernet eth3 {
  65. duplex auto
  66. speed auto
  67. }
  68. ethernet eth4 {
  69. duplex auto
  70. speed auto
  71. }
  72. loopback lo {
  73. }
  74. switch switch0 {
  75. switch-port {
  76. interface eth0 {
  77. vlan {
  78. pvid 98
  79. vid 4
  80. vid 34
  81. }
  82. }
  83. interface eth1 {
  84. vlan {
  85. pvid 4
  86. }
  87. }
  88. interface eth2 {
  89. vlan {
  90. pvid 4
  91. }
  92. }
  93. interface eth3 {
  94. vlan {
  95. pvid 1
  96. }
  97. }
  98. interface eth4 {
  99. vlan {
  100. pvid 1
  101. }
  102. }
  103. vlan-aware enable
  104. }
  105. vif 1 {
  106. description LAN
  107. address 192.168.30.1/24
  108. mtu 1500
  109. }
  110. vif 4 {
  111. description IP_TV
  112. mtu 1500
  113. mac fc:f5:f2:34:56:77
  114. }
  115. vif 34 {
  116. address dhcp
  117. description WAN
  118. mac fc:f5:f2:34:56:78
  119. mtu 1500
  120. }
  121. }
  122. }
  123. service {
  124. dhcp-server {
  125. disabled false
  126. hostfile-update disable
  127. shared-network-name lan_dhcp {
  128. authoritative disable
  129. subnet 192.168.30.0/24 {
  130. default-router 192.168.30.1
  131. dns-server 192.168.30.1
  132. lease 86400
  133. start 192.168.30.100 {
  134. stop 192.168.30.200
  135. }
  136. }
  137. }
  138. use-dnsmasq disable
  139. }
  140. dns {
  141. forwarding {
  142. cache-size 150
  143. listen-on switch0.1
  144. }
  145. }
  146. gui {
  147. http-port 80
  148. https-port 443
  149. listen-address 192.168.30.1
  150. older-ciphers enable
  151. }
  152. nat {
  153. rule 5000 {
  154. description "MASQ WAN"
  155. log disable
  156. outbound-interface switch0.34
  157. protocol all
  158. type masquerade
  159. }
  160. }
  161. ssh {
  162. port 22
  163. protocol-version v2
  164. }
  165. }
  166.  
  167. service {
  168. dhcp-server {
  169. disabled false
  170. hostfile-update disable
  171. shared-network-name lan_dhcp {
  172. authoritative disable
  173. subnet 192.168.30.0/24 {
  174. default-router 192.168.30.1
  175. dns-server 192.168.30.1
  176. lease 86400
  177. start 192.168.30.100 {
  178. stop 192.168.30.200
  179. }
  180. }
  181. }
  182. use-dnsmasq disable
  183. }
  184. dns {
  185. forwarding {
  186. cache-size 150
  187. listen-on switch0
  188. }
  189. }
  190. gui {
  191. http-port 80
  192. https-port 443
  193. listen-address 192.168.30.1
  194. older-ciphers enable
  195. }
  196. nat {
  197. rule 5000 {
  198. description "MASQ WAN"
  199. log disable
  200. outbound-interface switch0.34
  201. protocol all
  202. type masquerade
  203. }
  204. }
  205. ssh {
  206. port 22
  207. protocol-version v2
  208. }
  209. }
  210. system {
  211. host-name ubnt
  212. login {
  213. user ubnt {
  214. authentication {
  215. encrypted-password $6$dHFSAKqGh6/x1$kjnSdPXupbhVvLgNSoPf1/Tw3X4AkgRNG3xTqqjdefULcZg9lLTHLEFgm8LnEFZwHY7McPXyReE31elY0p6if/
  216. }
  217. level admin
  218. }
  219. }
  220. ntp {
  221. server 0.ubnt.pool.ntp.org {
  222. }
  223. server 1.ubnt.pool.ntp.org {
  224. }
  225. server 2.ubnt.pool.ntp.org {
  226. }
  227. server 3.ubnt.pool.ntp.org {
  228. }
  229. }
  230. syslog {
  231. global {
  232. facility all {
  233. level notice
  234. }
  235. facility protocols {
  236. level debug
  237. }
  238. }
  239. }
  240. time-zone UTC
  241. domain-name local
  242. host-name router
  243. }
  244.  
  245.  
  246. /* Warning: Do not remove the following line. */
  247. /* === 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:suspend@1:system@4:ubnt-pptp@1:ubnt-udapi-server@1:ubnt-unms@1:ubnt-util@1:vrrp@1:webgui@1:webproxy@1:zone-policy@1" === */
  248. /* Release version: v1.10.7.5127989.181001.1227 */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement