beng

Untitled

Jul 11th, 2015
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.72 KB | None | 0 0
  1. firewall {
  2. group {
  3. network-group BOGONS {
  4. network 10.0.0.0/8
  5. network 100.64.0.0/10
  6. network 127.0.0.0/8
  7. network 169.254.0.0/16
  8. network 172.16.0.0/12
  9. network 192.0.0.0/24
  10. network 192.0.2.0/24
  11. network 192.168.0.0/16
  12. network 198.18.0.0/15
  13. network 198.51.100.0/24
  14. network 203.0.113.0/24
  15. network 224.0.0.0/4
  16. network 240.0.0.0/4
  17. }
  18. }
  19. ipv6-name WANv6_IN {
  20. default-action drop
  21. description "WAN inbound traffic forwarded to LAN"
  22. enable-default-log
  23. rule 10 {
  24. action accept
  25. description "Allow established/related sessions"
  26. state {
  27. established enable
  28. related enable
  29. }
  30. }
  31. rule 20 {
  32. action drop
  33. description "Drop invalid state"
  34. state {
  35. invalid enable
  36. }
  37. }
  38. }
  39. ipv6-name WANv6_LOCAL {
  40. default-action drop
  41. description "WAN inbound traffic to the router"
  42. enable-default-log
  43. rule 10 {
  44. action accept
  45. description "Allow established/related sessions"
  46. state {
  47. established enable
  48. related enable
  49. }
  50. }
  51. rule 20 {
  52. action drop
  53. description "Drop invalid state"
  54. state {
  55. invalid enable
  56. }
  57. }
  58. rule 30 {
  59. action accept
  60. description "Allow IPv6 icmp"
  61. protocol ipv6-icmp
  62. }
  63. rule 40 {
  64. action accept
  65. description "allow dhcpv6"
  66. destination {
  67. port 546
  68. }
  69. protocol udp
  70. source {
  71. port 547
  72. }
  73. }
  74. }
  75. name LAN_IN {
  76. default-action accept
  77. rule 1 {
  78. action drop
  79. description "drop invalid state"
  80. state {
  81. invalid enable
  82. }
  83. }
  84. }
  85. name WAN_IN {
  86. default-action drop
  87. enable-default-log
  88. rule 10 {
  89. action accept
  90. description "allow established"
  91. state {
  92. established enable
  93. related enable
  94. }
  95. }
  96. rule 20 {
  97. action drop
  98. description "drop invalid"
  99. state {
  100. invalid enable
  101. }
  102. }
  103. }
  104. name WAN_LOCAL {
  105. default-action drop
  106. description "To router from WAN"
  107. enable-default-log
  108. rule 10 {
  109. action accept
  110. description "allow established"
  111. state {
  112. established enable
  113. related enable
  114. }
  115. }
  116. rule 20 {
  117. action drop
  118. description "drop invalid"
  119. state {
  120. invalid enable
  121. }
  122. }
  123. rule 30 {
  124. action accept
  125. description "allow icmp"
  126. protocol icmp
  127. }
  128. rule 80 {
  129. action drop
  130. description "drop bogon source"
  131. source {
  132. group {
  133. network-group BOGONS
  134. }
  135. }
  136. }
  137. }
  138. interfaces {
  139. ethernet eth0 {
  140. address dhcp
  141. description WAN
  142. dhcp-options {
  143. name-server no-update
  144. }
  145. dhcpv6-pd {
  146. pd 0 {
  147. interface eth1 {
  148. host-address ::1
  149. prefix-id :1
  150. service slaac
  151. }
  152. interface eth2 {
  153. host-address ::1
  154. prefix-id :2
  155. service slaac
  156. }
  157. interface eth3 {
  158. host-address ::1
  159. prefix-id colonthree emoticon
  160. service slaac
  161. }
  162. prefix-length /60
  163. }
  164. rapid-commit enable
  165. }
  166. firewall {
  167. in {
  168. ipv6-name WANv6_IN
  169. name WAN_IN
  170. }
  171. local {
  172. ipv6-name WANv6_LOCAL
  173. name WAN_LOCAL
  174. }
  175. }
  176. }
  177. ethernet eth1 {
  178. address 192.168.0.1/24
  179. description LAN
  180. firewall {
  181. in {
  182. name LAN_IN
  183. }
  184. }
  185. }
  186. ethernet eth2 {
  187. address 192.168.0.5/24
  188. description "PoE for UAP-Pro 1"
  189. firewall {
  190. in {
  191. name LAN_IN
  192. }
  193. }
  194. poe {
  195. output 48v
  196. }
  197. }
  198. ethernet eth3 {
  199. address 192.168.0.6/24
  200. description "PoE for UAP-Pro 2"
  201. firewall {
  202. in {
  203. name LAN_IN
  204. }
  205. }
  206. poe {
  207. output 48v
  208. }
  209. }
  210. ethernet eth4 {
  211. disable
  212. }
  213. switch switch0 {
  214. mtu 1500
  215. }
  216. }
  217. service {
  218. dhcp-server {
  219. disabled false
  220. hostfile-update disable
  221. shared-network-name LAN-net {
  222. authoritative enable
  223. subnet 192.168.0.1/24 {
  224. default-router 192.168.0.1
  225. dns-server 192.168.0.1
  226. lease 86400
  227. start 192.168.0.100 {
  228. stop 192.168.0.240
  229. }
  230. static-mapping calcifer {
  231. ip-address 192.168.0.3
  232. mac-address 00:0c:29:c4:84:37
  233. }
  234. static-mapping howl {
  235. ip-address 192.168.0.4
  236. mac-address 60:fb:42:f5:1f:c2
  237. }
  238. }
  239. }
  240. }
  241. dns {
  242. forwarding {
  243. cache-size 150
  244. listen-on eth1
  245. listen-on eth2
  246. listen-on eth3
  247. }
  248. }
  249. gui {
  250. https-port 443
  251. }
  252. nat {
  253. rule 5000 {
  254. description "masq to WAN"
  255. outbound-interface eth0
  256. type masquerade
  257. }
  258. }
  259. ssh {
  260. }
  261. ubnt-discover {
  262. interface eth0 {
  263. disable
  264. }
  265. }
  266. }
  267. system {
  268. config-management {
  269. commit-revisions 50
  270. }
  271. host-name kaonashi
  272. login {
  273. user redacted {
  274. authentication {
  275. encrypted-password redacted
  276. plaintext-password ""
  277. }
  278. full-name "redacted"
  279. level admin
  280. }
  281. }
  282.  
  283. name-server 8.8.8.8
  284. name-server 8.8.4.4
  285. ntp {
  286. server 0.vyatta.pool.ntp.org {
  287. }
  288. server 1.vyatta.pool.ntp.org {
  289. }
  290. server 2.vyatta.pool.ntp.org {
  291. }
  292. server 3.vyatta.pool.ntp.org {
  293. }
  294. }
  295. offload {
  296. ipsec enable
  297. ipv4 {
  298. forwarding enable
  299. }
  300. ipv6 {
  301. forwarding enable
  302. }
  303. }
  304. package {
  305. repository wheezy {
  306. components "main contrib non-free"
  307. description wheezy
  308. distribution wheezy
  309. url http://http.us.debian.org/debian
  310. }
  311. repository wheezy-security {
  312. components main
  313. distribution wheezy/updates
  314. url http://security.debian.org
  315. }
  316. }
  317. syslog {
  318. global {
  319. facility all {
  320. level notice
  321. }
  322. facility protocols {
  323. level debug
  324. }
  325. }
  326. }
  327. time-zone US/Pacific
  328. }
Advertisement
Add Comment
Please, Sign In to add comment