You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
3.1 KiB

  1. ######################################################
  2. # Copyright 2018 EWSI
  3. #
  4. # Licensed to the public under the Apache License 2.0.
  5. ######################################################
  6. # Dual Channel Wi-Fi AP Daemon configuration
  7. ###################
  8. # General Options #
  9. ###################
  10. # The "enabled" option controls the run state of the Dual Channel Wi-Fi AP Daemon
  11. # 0 - disabled, 1 - enabled
  12. # The "tmpdir" option MUST be specified
  13. # option tmpdir '<path_of_temp_dir>'
  14. config general 'general'
  15. option enabled 0
  16. option tmpdir '/tmp/dcwapd'
  17. ################
  18. # Channel Sets #
  19. ################
  20. # Sections of type "channel-set" define a Dual Channel Wi-Fi primary channel,
  21. # along with it's associated data channels
  22. #
  23. # The "data_channels" option is a space-delimited list of "datachannel"-typed instance names
  24. config channel-set 'channelset0'
  25. option enabled 0
  26. # option enabled 1
  27. option ssid 'OpenWrt'
  28. option bridge 'br-lan'
  29. option data_channels 'datachannel0'
  30. #config channel-set 'channelset1'
  31. # option enabled 0
  32. # option ssid 'OpenWrt2'
  33. # option bridge 'br-lan'
  34. # option data_channels 'datachannel1'
  35. #################
  36. # Data Channels #
  37. #################
  38. # Sections of type "datachannel" define a Dual Channel Wi-Fi data channel,
  39. # along with it's associated bridge and wireless interfaces
  40. #
  41. # The "interfaces" option is a space-delimited list of wireless interface names
  42. config datachannel 'datachannel0'
  43. option ssid 'DCW0'
  44. option bridge 'br-dc0'
  45. option interfaces 'wlan2 wlan5'
  46. #config datachannel 'datachannel1'
  47. # option ssid 'DCW1'
  48. # option bridge 'br-dc1'
  49. # option interfaces 'wlan4'
  50. ####################
  51. # Init Net Options #
  52. ####################
  53. # The "init_net" section MUST be specified
  54. # This section will be used to save and restore the state of the data interfaces
  55. config init_net 'init_net'
  56. ###############
  57. # Filter Sets #
  58. ###############
  59. # Sections of type "filter-set" define a Dual Channel Wi-Fi group of filters,
  60. # along with it's associated MAC address and filter rules
  61. #
  62. # The "TFP_Default" filter set MUST be defined, although it is not required
  63. # to have any associated filter rules
  64. # The "TFP_Default" filter mac option can have the value of '*', meaning match
  65. # all MAC addresses
  66. #
  67. # The "filters" option is a space-delimited list of "filter"-typed instance names
  68. config filter-set 'TFP_Default'
  69. option mac '*'
  70. option filters 'filter0 filter1'
  71. #config filter-set 'filterset0'
  72. # option mac '00:00:BE:EF:F0:0D'
  73. # option filters 'filter2'
  74. ################
  75. # Filter Rules #
  76. ################
  77. # Sections of type "filter" define a Dual Channel Wi-Fi filter,
  78. # along with it's associated filter parameters
  79. #
  80. # Any or all of the filter options may be set to '*' to match
  81. # all values
  82. config filter 'filter0'
  83. option packet_size '*'
  84. option source_ip '*'
  85. option source_port '80'
  86. option protocol 'tcp'
  87. option dest_port '*'
  88. config filter 'filter1'
  89. option packet_size '*'
  90. option source_ip '*'
  91. option source_port '443'
  92. option protocol 'tcp'
  93. option dest_port '*'
  94. #config filter 'filter2'
  95. # option packet_size '*'
  96. # option source_ip '*'
  97. # option source_port '22'
  98. # option protocol 'tcp'
  99. # option dest_port '*'