jeroo23

Vyos Config

Dec 17th, 2020 (edited)
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.69 KB | None | 0 0
  1. firewall {
  2. all-ping enable
  3. broadcast-ping disable
  4. config-trap disable
  5. ipv6-name WANv6_IN {
  6. default-action drop
  7. description "WAN IPv6 naar LAN"
  8. rule 10 {
  9. action accept
  10. description "Allow established/related"
  11. state {
  12. established enable
  13. related enable
  14. }
  15. }
  16. rule 20 {
  17. action drop
  18. description "Drop invalid state"
  19. state {
  20. invalid enable
  21. }
  22. }
  23. rule 30 {
  24. action accept
  25. description "Allow IPv6 icmp"
  26. icmpv6 {
  27. type echo-request
  28. }
  29. protocol ipv6-icmp
  30. }
  31. }
  32. ipv6-name WANv6_LOCAL {
  33. default-action drop
  34. description "WAN IPv6 naar Router"
  35. rule 10 {
  36. action accept
  37. description "Allow established/related"
  38. state {
  39. established enable
  40. related enable
  41. }
  42. }
  43. rule 20 {
  44. action drop
  45. description "Drop invalid state"
  46. state {
  47. invalid enable
  48. }
  49. }
  50. rule 30 {
  51. action accept
  52. description "Allow IPv6 icmp"
  53. protocol ipv6-icmp
  54. }
  55. rule 40 {
  56. action accept
  57. description "Allow dhcpv6"
  58. destination {
  59. port 546
  60. }
  61. protocol udp
  62. source {
  63. port 547
  64. }
  65. }
  66. }
  67. ipv6-receive-redirects disable
  68. ipv6-src-route disable
  69. ip-src-route disable
  70. log-martians enable
  71. name wan_in {
  72. default-action drop
  73. description "WAN naar LAN"
  74. rule 10 {
  75. action accept
  76. description "Allow Established/Related"
  77. log disable
  78. state {
  79. established enable
  80. related enable
  81. }
  82. }
  83. rule 20 {
  84. action drop
  85. description "Drop Invalid State"
  86. state {
  87. invalid enable
  88. }
  89. }
  90. }
  91. name wan_local {
  92. default-action drop
  93. description "WAN naar Router"
  94. rule 10 {
  95. action accept
  96. description "Allow Established/related"
  97. log disable
  98. state {
  99. established enable
  100. invalid disable
  101. new disable
  102. related enable
  103. }
  104. }
  105. rule 20 {
  106. action drop
  107. description "Drop Invalid State"
  108. state {
  109. established disable
  110. invalid enable
  111. new disable
  112. related disable
  113. }
  114. }
  115. }
  116. options {
  117. interface pppoe0 {
  118. adjust-mss 1452
  119. }
  120. }
  121. receive-redirects disable
  122. send-redirects enable
  123. source-validation disable
  124. syn-cookies enable
  125. twa-hazards-protection disable
  126. }
  127. interfaces {
  128. ethernet eth0 {
  129. description FTTH
  130. duplex auto
  131. hw-id 90:e2:ba:39:d6:cb
  132. mtu 1512
  133. speed auto
  134. vif 4 {
  135. address dhcp
  136. description "KPN IPTV"
  137. dhcp-options {
  138. client-id "request subnet-mask, routers, rfc3442-classless-static-routes;"
  139. no-default-route
  140. vendor-class-id IPTV_RG
  141. }
  142. ip {
  143. source-validation loose
  144. }
  145. mtu 1500
  146. }
  147. vif 6 {
  148. firewall {
  149. in {
  150. name wan_in
  151. }
  152. local {
  153. name wan_in
  154. }
  155. }
  156. mtu 1508
  157. }
  158. }
  159. ethernet eth1 {
  160. address 192.168.178.1/24
  161. description Thuis
  162. duplex auto
  163. hw-id 90:e2:ba:39:d6:ca
  164. speed auto
  165. }
  166. loopback lo {
  167. }
  168. pppoe pppoe0 {
  169. authentication {
  170. password ppp
  171. }
  172. default-route auto
  173. dhcpv6-options {
  174. pd 0 {
  175. }
  176. }
  177. firewall {
  178. in {
  179. ipv6-name WANv6_IN
  180. name wan_in
  181. }
  182. local {
  183. ipv6-name WANv6_LOCAL
  184. name wan_local
  185. }
  186. }
  187. idle-timeout 180
  188. ipv6 {
  189. address {
  190. autoconf
  191. }
  192. }
  193. mtu 1492
  194. source-interface eth0.6
  195. }
  196. }
  197. nat {
  198. source {
  199. rule 5000 {
  200. description IPTV
  201. destination {
  202. address 213.75.112.0/21
  203. }
  204. outbound-interface eth0.4
  205. protocol all
  206. source {
  207. address 192.168.178.0/24
  208. }
  209. translation {
  210. address masquerade
  211. }
  212. }
  213. rule 5010 {
  214. description Internet
  215. outbound-interface pppoe0
  216. protocol all
  217. translation {
  218. address masquerade
  219. }
  220. }
  221. }
  222. }
  223. protocols {
  224. igmp-proxy {
  225. interface eth0.4 {
  226. alt-subnet 224.0.0.0/8
  227. alt-subnet 0.0.0.0/0
  228. role upstream
  229. threshold 1
  230. }
  231. interface eth1 {
  232. alt-subnet 192.168.178.0/24
  233. role downstream
  234. threshold 1
  235. }
  236. }
  237. static {
  238. interface-route 0.0.0.0/0 {
  239. next-hop-interface pppoe0 {
  240. distance 1
  241. }
  242. }
  243. route 213.75.112.0/21 {
  244. next-hop 10.213.96.1 {
  245. }
  246. }
  247. }
  248. }
  249. service {
  250. dhcp-server {
  251. global-parameters "option vendor-class-identifier code 60 = string;"
  252. global-parameters "option broadcast-address code 28 = ip-address;"
  253. hostfile-update
  254. shared-network-name Thuis {
  255. subnet 192.168.178.0/24 {
  256. default-router 192.168.178.1
  257. dns-server 195.121.1.34
  258. lease 86400
  259. range Home {
  260. start 192.168.178.2
  261. stop 192.168.178.250
  262. }
  263. }
  264. }
  265. }
  266. ssh {
  267. }
  268. }
  269. system {
  270. config-management {
  271. commit-revisions 100
  272. }
  273. console {
  274. device ttyS0 {
  275. speed 115200
  276. }
  277. }
  278. host-name vyos
  279. login {
  280. user vyos {
  281. authentication {
  282. encrypted-password $6$AF85oMBV0a$Mtdnk768P29VIUUAZjwHDJW0kA8S/gywbtLGrGtmVErHxZ/wxbld0YmgT87oNhoTiCz4/hJ1TDILJHIhnX/Md0
  283. plaintext-password ""
  284. }
  285. }
  286. }
  287. ntp {
  288. server 0.pool.ntp.org {
  289. }
  290. server 1.pool.ntp.org {
  291. }
  292. server 2.pool.ntp.org {
  293. }
  294. }
  295. syslog {
  296. global {
  297. facility all {
  298. level info
  299. }
  300. facility protocols {
  301. level debug
  302. }
  303. }
  304. }
  305. }
  306.  
  307.  
  308. // Warning: Do not remove the following line.
  309. // vyos-config-version: "broadcast-relay@1:cluster@1:config-management@1:conntrack@1:conntrack-sync@1:dhcp-relay@2:dhcp-server@5:dhcpv6-server@1:dns-forwarding@3:firewall@5:https@2:interfaces@17:ipoe-server@1:ipsec@5:l2tp@3:lldp@1:mdns@1:nat@5:ntp@1:pppoe-server@5:pptp@2:qos@1:quagga@6:salt@1:snmp@2:ssh@2:sstp@3:system@20:vrrp@2:vyos-accel-ppp@2:wanloadbalance@3:webgui@1:webproxy@2:zone-policy@1"
  310. // Release version: 1.3-rolling-202012160217
  311.  
Advertisement
Add Comment
Please, Sign In to add comment