Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {setup, [{data_dir, "/var/lib/capwap"},
- {log_dir, "/var/log/capwap-node"} %% NOTE: lager is not using this
- ]},
- {capwap, [
- {dhcp_relay, [
- {external_ip, {192,168,86,10}},
- {servers, [{192,168,81,1}]},
- {remote_id, [<<"User">>, 'Username', <<"END">>]},
- {circuit_id, [<<"BSSID">>, 'BSSID', <<"END">>]},
- {agent_id, [<<"AgentID">>]}
- ]},
- {http_api, [
- {ip, {192, 168, 86, 10}},
- {port, 8000}
- ]},
- %% {'trace-file', "/var/log/scg-capwap-node/trace.pcap"},
- {server_ip, {192, 168, 86, 10}},
- {server_socket_opts, [%% {netns, "/var/run/netns/upstream"},
- {recbuf, 1048576},
- {sndbuf, 1048576}]},
- {control_ips, [{192, 168, 86, 10}]},
- {limit, 200},
- {max_wtp, 100},
- {security, ['x509']},
- {versions, [{hardware,<<"CAPWAP AC">>},
- {software,<<"CAPWAP AC">>}]},
- {ac_name, <<"capwap-test">>},
- {idle_timeout, 30},
- {certs, "/etc/ergw-capwap-node/unicode_test"},
- {config_providers, [
- {capwap_config_http, [{url, "http://127.0.0.1:9999"}]},
- capwap_config_env
- ]},
- %% enter SSIDs for WTPs
- %% format:
- %% [{{<<"MAC">>, 1}, <<"SSID">>}]
- {default_ssid, <<"CAPWAP AC">>},
- {wtps, [
- %% default for ALL WTP's
- {defaults,
- [
- {psm_idle_timeout, 30},
- {psm_busy_timeout, 300},
- {max_stations, 100},
- {echo_request_interval, 30},
- {discovery_interval, 20},
- {idle_timeout, 300},
- {data_channel_dead_interval, 70},
- {ac_join_timeout, 70},
- {admin_pw, undefined},
- {wlan_hold_time, 15},
- {radio_settings,
- [{defaults, [{beacon_interval, 100}, {wlans, [[{ssid, default}]]}]},
- {'802.11a', [{operation_mode, '802.11a'}, {channel, 155}]},
- {'802.11b', [{operation_mode, '802.11b'}, {channel, 11}]},
- {'802.11g', [{operation_mode, '802.11g'}, {channel, 11}]}
- ]
- }
- ]},
- {<<"wtp-lede">>, [
- {discovery_interval, 40},
- {radio, [
- {1, [{channel, 36},{wlans, [
- [{wlan_id, 1}, {ssid, <<"☣(╯°□°)╯☎"/utf8>>}, {suppress_ssid, 0}],
- [{wlan_id, 2}, {ssid, <<"test ate2 русский"/utf8>>}, {suppress_ssid, 0}]
- ]}]}
- ,{2, [{channel, 6},{wlans, [
- [{wlan_id, 1}, {ssid, <<"¯\\_(ツ)_/¯☀☂"/utf8>>}, {suppress_ssid, 0}]
- ]}]}
- ]}]},
- {<<"mgumz">>, [
- {discovery_interval, 40},
- {radio, [
- {1, [{channel, 36},{wlans, [
- [{wlan_id, 1}, {ssid, <<"☣(╯°□°)╯☎"/utf8>>}, {suppress_ssid, 0}],
- [{wlan_id, 2}, {ssid, <<"test ate2 русский"/utf8>>}, {suppress_ssid, 0}]
- ]}]}
- ,{2, [{channel, 6},{wlans, [
- [{wlan_id, 1}, {ssid, <<"¯\\_(ツ)_/¯☀☂"/utf8>>}, {suppress_ssid, 0}]
- ]}]}
- ]}]},
- {<<"travelping">>, [
- {discovery_interval, 40},
- {radio, [
- {1, [{channel, 36},{wlans, [
- [{wlan_id, 1}, {ssid, <<"☣(╯°□°)╯☎"/utf8>>}, {suppress_ssid, 0}],
- [{wlan_id, 2}, {ssid, <<"test ate2 русский"/utf8>>}, {suppress_ssid, 0}]
- ]}]}
- ,{2, [{channel, 6},{wlans, [
- [{wlan_id, 1}, {ssid, <<"¯\\_(ツ)_/¯☀☂"/utf8>>}, {suppress_ssid, 0}]
- ]}]}
- ]}]}
- ]}
- ]},
- {ergw_aaa, [
- {applications, [
- {default,
- {provider, ergw_aaa_mock,
- [{shared_secret, <<"MySecret">>}]
- },
- {attribute_map, [
- {'Calling-Station-Id', ['Idd1']},
- {'Location-Id', [<<"id22">>]}
- ]}
- },
- {capwap_wtp,
- {provider, ergw_aaa_mock,
- [{shared_secret, <<"MySecret">>}]
- },
- {attribute_map, [
- {'Calling-Station-Id', ['Idd2']},
- {'AuthType', [<<"Local">>]}
- ]}
- }
- ]}
- ]},
- {lager, [
- {colored, true},
- {log_root, "/var/log/capwap-node"},
- {error_logger_redirect, true},
- {crash_log, "crash.log"},
- {handlers, [
- {lager_console_backend, debug},
- {lager_file_backend, [{file, "error.log"}, {level, error}]},
- {lager_file_backend, [{file, "console.log"}, {level, debug}]}
- ]}
- ]}
- ].
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement