Introduce single trunk DAP config

This commit is contained in:
Petko Bordjukov 2016-11-03 04:59:13 +02:00
parent 949b12ef8e
commit 42ec315a49
5 changed files with 145 additions and 2 deletions

View File

@ -31,7 +31,7 @@ CONFIG_PACKAGE_horst=y
CONFIG_PACKAGE_hostapd-utils=y
CONFIG_PACKAGE_ip6tables=m
CONFIG_PACKAGE_iptables=m
CONFIG_PACKAGE_iwinfo=y
CONFIG_PACKAGE_kmod-ath10k=y
CONFIG_PACKAGE_kmod-br-netfilter=y
CONFIG_PACKAGE_kmod-bridge=y
CONFIG_PACKAGE_kmod-ebtables=y
@ -47,7 +47,6 @@ CONFIG_PACKAGE_kmod-nf-nat=m
CONFIG_PACKAGE_kmod-stp=y
CONFIG_PACKAGE_libgmp=y
CONFIG_PACKAGE_libip6tc=m
CONFIG_PACKAGE_libiwinfo=y
CONFIG_PACKAGE_libltdl=y
CONFIG_PACKAGE_liblua=y
CONFIG_PACKAGE_libmnl=y
@ -75,3 +74,4 @@ CONFIG_PACKAGE_wpad=y
# CONFIG_PACKAGE_wpad-mini is not set
CONFIG_PACKAGE_zlib=y
CONFIG_WPA_SUPPLICANT_INTERNAL=y
CONFIG_PACKAGE_ath10k-firmware-qca988x=m

View File

@ -0,0 +1,41 @@
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'management'
option ifname 'eth0'
option proto 'static'
option ipaddr '<ip>'
option netmask '255.255.255.0'
option gateway '10.20.0.1'
option dns '10.20.0.1'
option ipv6 'no'
config interface 'wireless'
option ifname 'eth1'
option proto 'none'
option ipv6 'no'
option force_link '1'
option type 'bridge'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '20'
option ports '0 2t'
config switch_vlan
option device 'switch0'
option vlan '22'
option ports '2t 6'

View File

@ -0,0 +1,35 @@
config system
option hostname '<hostname>'
option zonename 'Europe/Sofia'
option timezone 'EET-2EEST,M3.5.0/3,M10.5.0/4'
option log_ip '10.20.0.1'
option log_remote '1'
option ttylogin '0'
option log_size '64'
option urandom_seed '0'j
config timeserver 'ntp'
list server '0.openwrt.pool.ntp.org'
list server '1.openwrt.pool.ntp.org'
list server '2.openwrt.pool.ntp.org'
list server '3.openwrt.pool.ntp.org'
option enabled '1'
option enable_server '0'
config led 'led_power'
option name 'POWER'
option sysfs 'd-link:green:power'
option default '1'
option trigger 'heartbeat'
config led 'led_diag'
option name 'DIAG'
option sysfs 'd-link:red:power'
option default '0'
config led 'led_wlan2g'
option name 'WLAN 2.4 GHz'
option sysfs 'd-link:green:wlan2g'
option trigger 'phy1tpt'

View File

@ -0,0 +1,54 @@
config wifi-device radio0
option type mac80211
option hwmode 11a
option path 'pci0000:00/0000:00:00.0'
# option channel <radio0-channel>
# option txpower '30'
option htmode VHT80
option distance '20'
list basic_rate '54000'
option require_mode 'n'
option log_level '-1'
option country 'BG'
option country_ie '1'
option doth '1'
config wifi-iface
option device radio0
option network 'wireless'
option mode 'ap'
option ssid 'OpenFest'
option encryption 'none'
# option macaddr '<wlan0-macaddr>'
option isolate '1'
option iapp_interface 'management'
option wnm_sleep_mode 1
option proxy_arp 1
config wifi-device radio1
option type mac80211
option hwmode 11g
option path 'platform/qca955x_wmac'
# option channel <radio1-channel>
# option txpower '20'
option htmode 'HT20'
option distance '20'
list basic_rate '54000'
option require_mode 'g'
option beacon_int 250
option log_level '-1'
option country 'BG'
option country_ie '1'
config wifi-iface
option device radio1
option network 'wireless'
option mode 'ap'
option ssid 'OpenFest'
option encryption 'none'
# option macaddr '<wlan1-macaddr>'
option isolate '1'
option iapp_interface 'management'
option wnm_sleep_mode 1
option proxy_arp 1

View File

@ -0,0 +1,13 @@
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
# Never uncomment this unless YOU KNOW WHAT YOU'RE DOING
#for file in /sys/kernel/debug/ieee80211/*/ath10k/dfs_block_radar_events; do
# echo Y > $file
#done
/usr/sbin/ebtables -A FORWARD -i wlan+ -o wlan+ -j DROP
/usr/sbin/ebtables -A FORWARD -i wlan+ -s 00:1e:0b:d9:bb:6a -j DROP
/usr/sbin/ebtables -A FORWARD -i eth+ -o wlan+ -s ! 00:1e:0b:d9:bb:6a -j DROP
exit 0