beng

Untitled

Jul 12th, 2015
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.71 KB | None | 0 0
  1. firewall {
  2. all-ping enable
  3. broadcast-ping disable
  4. ipv6-name WAN_IN6 {
  5. default-action drop
  6. description "Internet to internal networks"
  7. enable-default-log
  8. rule 10 {
  9. action accept
  10. description "allow icmpv6"
  11. log disable
  12. protocol icmpv6
  13. }
  14. rule 20 {
  15. action accept
  16. description "allow established/related"
  17. log disable
  18. state {
  19. established enable
  20. related enable
  21. }
  22. }
  23. }
  24. ipv6-name WAN_LOCAL6 {
  25. default-action drop
  26. description "Internet to router"
  27. enable-default-log
  28. rule 10 {
  29. action accept
  30. description "allow icmpv6"
  31. log disable
  32. protocol icmpv6
  33. }
  34. rule 20 {
  35. action accept
  36. description "allow established/related"
  37. log disable
  38. state {
  39. established enable
  40. related enable
  41. }
  42. }
  43. rule 30 {
  44. action drop
  45. description "drop invalid"
  46. log enable
  47. state {
  48. invalid enable
  49. }
  50. }
  51. rule 40 {
  52. action accept
  53. description DHCPv6
  54. destination {
  55. port 546
  56. }
  57. log disable
  58. protocol udp
  59. source {
  60. port 547
  61. }
  62. }
  63. }
  64. ipv6-receive-redirects disable
  65. ipv6-src-route disable
  66. ip-src-route disable
  67. log-martians enable
  68. name WAN_IN {
  69. default-action drop
  70. description "WAN to internal"
  71. enable-default-log
  72. rule 2 {
  73. action accept
  74. description "allow established"
  75. log disable
  76. protocol all
  77. state {
  78. established enable
  79. invalid disable
  80. new disable
  81. related enable
  82. }
  83. }
  84. rule 3 {
  85. action drop
  86. description "drop invalid"
  87. log enable
  88. protocol all
  89. state {
  90. established disable
  91. invalid enable
  92. new disable
  93. related disable
  94. }
  95. }
  96. }
  97. name WAN_LOCAL {
  98. default-action drop
  99. description "WAN to router"
  100. enable-default-log
  101. rule 10 {
  102. action accept
  103. description accept-established
  104. log disable
  105. state {
  106. established enable
  107. related enable
  108. }
  109. }
  110. rule 20 {
  111. action drop
  112. description drop-invalid
  113. log disable
  114. state {
  115. invalid enable
  116. }
  117. }
  118. rule 30 {
  119. action accept
  120. destination {
  121. port 67-68
  122. }
  123. log disable
  124. protocol udp
  125. }
  126. }
  127. receive-redirects disable
  128. send-redirects enable
  129. source-validation disable
  130. syn-cookies enable
  131. }
  132. interfaces {
  133. ethernet eth0 {
  134. address dhcp
  135. dhcpv6-pd {
  136. pd 1 {
  137. interface eth1 {
  138. host-address ::1
  139. prefix-id :2
  140. service slaac
  141. }
  142. interface switch0 {
  143. host-address ::1
  144. prefix-id :1
  145. service slaac
  146. }
  147. prefix-length 56
  148. }
  149. rapid-commit enable
  150. }
  151. duplex auto
  152. firewall {
  153. in {
  154. ipv6-name WAN_IN6
  155. name WAN_IN
  156. }
  157. local {
  158. ipv6-name WAN_LOCAL6
  159. name WAN_LOCAL
  160. }
  161. }
  162. ipv6 {
  163. dup-addr-detect-transmits 1
  164. }
  165. poe {
  166. output off
  167. }
  168. speed auto
  169. }
  170. ethernet eth1 {
  171. address 192.168.1.1/24
  172. duplex auto
  173. poe {
  174. output off
  175. }
  176. speed auto
  177. }
  178. ethernet eth2 {
  179. duplex auto
  180. poe {
  181. output 48v
  182. }
  183. speed auto
  184. }
  185. ethernet eth3 {
  186. duplex auto
  187. poe {
  188. output 48v
  189. }
  190. speed auto
  191. }
  192. ethernet eth4 {
  193. duplex auto
  194. poe {
  195. output off
  196. }
  197. speed auto
  198. }
  199. loopback lo {
  200. }
  201. switch switch0 {
  202. address 192.168.0.1/24
  203. mtu 1500
  204. switch-port {
  205. interface eth2
  206. interface eth3
  207. interface eth4
  208. }
  209. }
  210. }
  211. port-forward {
  212. auto-firewall enable
  213. hairpin-nat enable
  214. lan-interface switch0
  215. rule 1 {
  216. description "SSH to Howl"
  217. forward-to {
  218. address 192.168.0.3
  219. port 22
  220. }
  221. original-port 22
  222. protocol tcp
  223. }
  224. wan-interface eth0
  225. }
  226. service {
  227. dhcp-server {
  228. disabled false
  229. hostfile-update disable
  230. shared-network-name eth1 {
  231. authoritative enable
  232. subnet 192.168.1.0/24 {
  233. default-router 192.168.1.1
  234. dns-server 192.168.1.1
  235. lease 86400
  236. start 192.168.1.100 {
  237. stop 192.168.1.200
  238. }
  239. }
  240. }
  241. shared-network-name switch0 {
  242. authoritative enable
  243. subnet 192.168.0.0/24 {
  244. default-router 192.168.0.1
  245. dns-server 192.168.0.1
  246. lease 86400
  247. start 192.168.0.10 {
  248. stop 192.168.0.254
  249. }
  250. static-mapping calcifer {
  251. ip-address 192.168.0.3
  252. mac-address 00:0c:29:c4:84:37
  253. }
  254. static-mapping howl {
  255. ip-address 192.168.0.4
  256. mac-address 60:fb:42:f5:1f:c2
  257. }
  258. }
  259. }
  260. }
  261. dns {
  262. dynamic {
  263. interface eth0 {
  264. service dyndns {
  265. host-name foxden.org
  266. login [redacted]
  267. password [redacted]
  268. }
  269. }
  270. }
  271. forwarding {
  272. cache-size 150
  273. listen-on switch0
  274. listen-on eth1
  275. }
  276. }
  277. gui {
  278. https-port 443
  279. }
  280. nat {
  281. rule 5011 {
  282. description Comcast
  283. log disable
  284. outbound-interface eth0
  285. protocol all
  286. type masquerade
  287. }
  288. }
  289. ssh {
  290. port 22
  291. protocol-version v2
  292. }
  293. }
  294. system {
  295. host-name kaonashi
  296. login {
  297. user [redacted] {
  298. authentication {
  299. encrypted-password [redacted]
  300. plaintext-password ""
  301. }
  302. full-name "[redacted]"
  303. level admin
  304. }
  305. }
  306. ntp {
  307. server 0.ubnt.pool.ntp.org {
  308. }
  309. server 1.ubnt.pool.ntp.org {
  310. }
  311. server 2.ubnt.pool.ntp.org {
  312. }
  313. server 3.ubnt.pool.ntp.org {
  314. }
  315. }
  316. offload {
  317. ipv4 {
  318. forwarding enable
  319. }
  320. ipv6 {
  321. forwarding enable
  322. }
  323. }
  324. syslog {
  325. global {
  326. facility all {
  327. level notice
  328. }
  329. facility protocols {
  330. level debug
  331. }
  332. }
  333. }
  334. time-zone America/Los_Angeles
  335. }
Advertisement
Add Comment
Please, Sign In to add comment