blechinger

Edgerouter Lite Config

Apr 24th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.25 KB | None | 0 0
  1. adminuser@ubnt:~$ show configuration
  2. firewall {
  3. all-ping enable
  4. broadcast-ping disable
  5. ipv6-receive-redirects disable
  6. ipv6-src-route disable
  7. ip-src-route disable
  8. log-martians enable
  9. name WAN_IN {
  10. default-action drop
  11. description "WAN to internal"
  12. rule 10 {
  13. action accept
  14. description "Allow established/related"
  15. state {
  16. established enable
  17. related enable
  18. }
  19. }
  20. rule 20 {
  21. action drop
  22. description "Drop invalid state"
  23. state {
  24. invalid enable
  25. }
  26. }
  27. }
  28. name WAN_LOCAL {
  29. default-action drop
  30. description "WAN to router"
  31. rule 10 {
  32. action accept
  33. description "Allow established/related"
  34. state {
  35. established enable
  36. related enable
  37. }
  38. }
  39. rule 20 {
  40. action drop
  41. description "Drop invalid state"
  42. state {
  43. invalid enable
  44. }
  45. }
  46. }
  47. receive-redirects disable
  48. send-redirects enable
  49. source-validation disable
  50. syn-cookies enable
  51. }
  52. interfaces {
  53. ethernet eth0 {
  54. address 71.236.6.116/21
  55. description Internet
  56. duplex auto
  57. firewall {
  58. in {
  59. name WAN_IN
  60. }
  61. local {
  62. name WAN_LOCAL
  63. }
  64. }
  65. mac F0:1F:AF:06:FA:6D
  66. speed auto
  67. }
  68. ethernet eth1 {
  69. address 10.250.250.1/24
  70. description Local
  71. duplex auto
  72. speed auto
  73. }
  74. ethernet eth2 {
  75. address 192.168.2.1/24
  76. description "Local 2"
  77. duplex auto
  78. speed auto
  79. }
  80. loopback lo {
  81. }
  82. }
  83. port-forward {
  84. auto-firewall enable
  85. hairpin-nat enable
  86. lan-interface eth1
  87. rule 1 {
  88. description HTTPS
  89. forward-to {
  90. address 10.250.250.200
  91. }
  92. original-port 443
  93. protocol tcp_udp
  94. }
  95. rule 2 {
  96. description HTTP
  97. forward-to {
  98. address 10.250.250.200
  99. }
  100. original-port 80
  101. protocol tcp_udp
  102. }
  103. rule 3 {
  104. description RDP
  105. forward-to {
  106. address 10.250.250.10
  107. }
  108. original-port RANDOM_PORT <-- Not a real value! :)
  109. protocol tcp_udp
  110. }
  111. wan-interface eth0
  112. }
  113. protocols {
  114. static {
  115. route 10.0.10.0/24 {
  116. next-hop 10.250.250.100 {
  117. description "Vlan 10"
  118. }
  119. }
  120. route 10.0.90.0/24 {
  121. next-hop 10.250.250.100 {
  122. description "Vlan 90"
  123. }
  124. }
  125. route 10.0.200.0/24 {
  126. next-hop 10.250.250.100 {
  127. description "Vlan 200"
  128. }
  129. }
  130. }
  131. }
  132. service {
  133. dns {
  134. forwarding {
  135. cache-size 150
  136. listen-on eth1
  137. listen-on eth2
  138. }
  139. }
  140. gui {
  141. http-port 80
  142. https-port 443
  143. older-ciphers enable
  144. }
  145. nat {
  146. rule 5010 {
  147. description "masquerade for WAN"
  148. outbound-interface eth0
  149. type masquerade
  150. }
  151. }
  152. ssh {
  153. port 22
  154. protocol-version v2
  155. }
  156. }
  157. system {
  158. gateway-address 71.236.0.1
  159. host-name ubnt
  160. login {
  161. user adminuser {
  162. authentication {
  163. encrypted-password ****************
  164. }
  165. level admin
  166. }
  167. }
  168. name-server 8.8.8.8
  169. ntp {
  170. server 0.ubnt.pool.ntp.org {
  171. }
  172. server 1.ubnt.pool.ntp.org {
  173. }
  174. server 2.ubnt.pool.ntp.org {
  175. }
  176. server 3.ubnt.pool.ntp.org {
  177. }
  178. }
  179. offload {
  180. ipv4 {
  181. forwarding enable
  182. gre enable
  183. pppoe enable
  184. vlan enable
  185. }
  186. }
  187. syslog {
  188. global {
  189. facility all {
  190. level notice
  191. }
  192. facility protocols {
  193. level debug
  194. }
  195. }
  196. }
  197. time-zone America/New_York
  198. }
Add Comment
Please, Sign In to add comment