Advertisement
Guest User

firewall

a guest
Jun 9th, 2020
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1.  
  2. config defaults
  3. option syn_flood '1'
  4. option input 'ACCEPT'
  5. option output 'ACCEPT'
  6. option forward 'REJECT'
  7.  
  8. config zone
  9. option name 'lan'
  10. list network 'lan'
  11. option input 'ACCEPT'
  12. option output 'ACCEPT'
  13. option forward 'ACCEPT'
  14.  
  15. config zone
  16. option name 'wan'
  17. list network 'wan'
  18. list network 'wan6'
  19. option input 'REJECT'
  20. option output 'ACCEPT'
  21. option forward 'REJECT'
  22. option masq '1'
  23. option mtu_fix '1'
  24.  
  25. config forwarding
  26. option src 'lan'
  27. option dest 'wan'
  28.  
  29. config rule
  30. option name 'Allow-DHCP-Renew'
  31. option src 'wan'
  32. option proto 'udp'
  33. option dest_port '68'
  34. option target 'ACCEPT'
  35. option family 'ipv4'
  36.  
  37. config rule
  38. option name 'Allow-Ping'
  39. option src 'wan'
  40. option proto 'icmp'
  41. option icmp_type 'echo-request'
  42. option family 'ipv4'
  43. option target 'ACCEPT'
  44. option enabled '0'
  45.  
  46. config rule
  47. option name 'Allow-IGMP'
  48. option src 'wan'
  49. option proto 'igmp'
  50. option family 'ipv4'
  51. option target 'ACCEPT'
  52. option enabled '0'
  53.  
  54. config rule
  55. option name 'Allow-DHCPv6'
  56. option src 'wan'
  57. option proto 'udp'
  58. option src_ip 'fc00::/6'
  59. option dest_ip 'fc00::/6'
  60. option dest_port '546'
  61. option family 'ipv6'
  62. option target 'ACCEPT'
  63.  
  64. config rule
  65. option name 'Allow-MLD'
  66. option src 'wan'
  67. option proto 'icmp'
  68. option src_ip 'fe80::/10'
  69. list icmp_type '130/0'
  70. list icmp_type '131/0'
  71. list icmp_type '132/0'
  72. list icmp_type '143/0'
  73. option family 'ipv6'
  74. option target 'ACCEPT'
  75.  
  76. config rule
  77. option name 'Allow-ICMPv6-Input'
  78. option src 'wan'
  79. option proto 'icmp'
  80. list icmp_type 'echo-request'
  81. list icmp_type 'echo-reply'
  82. list icmp_type 'destination-unreachable'
  83. list icmp_type 'packet-too-big'
  84. list icmp_type 'time-exceeded'
  85. list icmp_type 'bad-header'
  86. list icmp_type 'unknown-header-type'
  87. list icmp_type 'router-solicitation'
  88. list icmp_type 'neighbour-solicitation'
  89. list icmp_type 'router-advertisement'
  90. list icmp_type 'neighbour-advertisement'
  91. option limit '1000/sec'
  92. option family 'ipv6'
  93. option target 'ACCEPT'
  94.  
  95. config rule
  96. option name 'Allow-ICMPv6-Forward'
  97. option src 'wan'
  98. option dest '*'
  99. option proto 'icmp'
  100. list icmp_type 'echo-request'
  101. list icmp_type 'echo-reply'
  102. list icmp_type 'destination-unreachable'
  103. list icmp_type 'packet-too-big'
  104. list icmp_type 'time-exceeded'
  105. list icmp_type 'bad-header'
  106. list icmp_type 'unknown-header-type'
  107. option limit '1000/sec'
  108. option family 'ipv6'
  109. option target 'ACCEPT'
  110.  
  111. config rule
  112. option name 'Allow-IPSec-ESP'
  113. option src 'wan'
  114. option dest 'lan'
  115. option proto 'esp'
  116. option target 'ACCEPT'
  117.  
  118. config rule
  119. option name 'Allow-ISAKMP'
  120. option src 'wan'
  121. option dest 'lan'
  122. option dest_port '500'
  123. option proto 'udp'
  124. option target 'ACCEPT'
  125.  
  126. config include
  127. option path '/etc/firewall.user'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement