2023-01-11 08:55:03 +00:00
|
|
|
|
# daemon agent application configuration file
|
|
|
|
|
|
|
|
|
|
application:
|
|
|
|
|
{
|
|
|
|
|
# 系统配置项
|
|
|
|
|
system:
|
|
|
|
|
{
|
|
|
|
|
config_file_path = "."; # 配置文件默认存放目录
|
|
|
|
|
show_banner = true; # 是否打印 Banner 信息
|
|
|
|
|
ssl_ca_file_path = "/etc/ssl/certs/ca-certificates.crt"; # HTTPS 访问客户端证书存放路径
|
|
|
|
|
system_info_watch = true; # 是否启用硬件信息监控
|
|
|
|
|
system_info_refresh = 10; # 硬件信息监控刷新频率(秒)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
agent: {
|
2023-03-15 06:19:49 +00:00
|
|
|
|
iptv_report_url = "http://10.0.0.1:50012/vcpe/dhcp/info"; # IPTV 设备上报接口
|
2023-03-15 06:13:11 +00:00
|
|
|
|
moniter_rep_url = ""; # vCPE设备上下线接口
|
2023-01-11 08:55:03 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# 硬件监控相关配置内容
|
|
|
|
|
watch_params:
|
|
|
|
|
{
|
|
|
|
|
cpu = true; # 是否开启CPU监控
|
|
|
|
|
memory = true; # 是否开启内存监控
|
|
|
|
|
disk = true; # 是否开启磁盘空间占用监控
|
|
|
|
|
sensor = true; # 是否开启传感器状态监控
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# 数据库相关配置
|
|
|
|
|
database:
|
|
|
|
|
{
|
|
|
|
|
# Redis 服务器相关配置
|
|
|
|
|
redis_server = "10.88.76.100"; # redis 服务器IP
|
|
|
|
|
redis_port = 6379; # redis 服务器端口
|
|
|
|
|
redis_passwd = ""; # redis 数据库密码
|
|
|
|
|
|
|
|
|
|
mysql_server = "10.88.76.100"; # mysql 服务器IP
|
|
|
|
|
mysql_port = 3306; # mysql 服务器端口
|
|
|
|
|
mysql_user = "root"; # mysql 用户名
|
|
|
|
|
mysql_passwd = "AES@5/BQyUIfVxgV9BZAz/D3Rg=="; # mysql 数据库密码
|
|
|
|
|
mysql_database = "test"; # mysql 数据库名称
|
|
|
|
|
|
2023-04-25 01:17:08 +00:00
|
|
|
|
sqlite_dbname = "./vcpe.db"; # sqlite3 数据库文件名
|
2023-03-31 06:32:32 +00:00
|
|
|
|
sqlite_passwd = ""; # sqlite3 数据库密码
|
2023-01-11 08:55:03 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# MQ 相关配置
|
|
|
|
|
zero_mq:
|
|
|
|
|
{
|
|
|
|
|
svr_port = 6278; # ZeroMQ 服务器端口
|
|
|
|
|
agent_addr = "ipc:///tmp/msg_fifo0"; # 消息通道路径
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# vxlan 相关
|
|
|
|
|
vxlan_wan:
|
|
|
|
|
{
|
|
|
|
|
enable = true; # 是否启动vxLan隧道封装
|
|
|
|
|
nic = "ens160"; # vxlan 物理网卡名称
|
|
|
|
|
peer_ip = "192.168.20.112"; # vxlan 对端IP
|
|
|
|
|
peer_mac = "00:0C:29:49:CB:27"; # vxlan 对端 MAC 地址
|
|
|
|
|
# pkg_filter = "(udp port 4789) and (ether src not 00:0c:29:07:cb:55)"; # 包过滤器
|
|
|
|
|
pkg_filter = "(pppoed || pppoes || arp || icmp || port domain || (udp and (port 67 or port 68))) && inbound";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# vcpe 本地服务网络接口配置
|
|
|
|
|
local_eth:
|
|
|
|
|
{
|
|
|
|
|
ip = "192.168.100.1";
|
|
|
|
|
netmast = "255.255.0.0";
|
|
|
|
|
gw = "192.168.100.1";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# http server config
|
|
|
|
|
http_svr:
|
|
|
|
|
{
|
2023-02-21 07:17:49 +00:00
|
|
|
|
uri = "http://0.0.0.0:8000";
|
2023-01-11 08:55:03 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
protocol:
|
|
|
|
|
{
|
|
|
|
|
# 0:无编码格式,普通字符串
|
|
|
|
|
# 1:base64编码格式
|
|
|
|
|
# 2:采用AES128加密后的base64编码格式
|
|
|
|
|
# 3:采用3DES加密后的base64编码格式
|
|
|
|
|
# 4:采用AES256加密后的base64编码格式
|
|
|
|
|
crypto_type = 0;
|
|
|
|
|
crypto_key = "AES@rX2qZWVwGVlYTJLf/6X22w==";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# DHCP Server Config
|
|
|
|
|
dhcp_server: {
|
2023-03-29 09:02:21 +00:00
|
|
|
|
# DHCP服务物理网卡名称
|
2023-04-25 01:17:08 +00:00
|
|
|
|
nic = "eth0";
|
2023-01-11 08:55:03 +00:00
|
|
|
|
# 全局租约时间
|
|
|
|
|
lease_time = 86400;
|
|
|
|
|
# 监听网卡
|
2023-02-17 01:04:16 +00:00
|
|
|
|
listen_on = ["192.168.101.1", "10.10.0.1"];
|
2023-01-11 08:55:03 +00:00
|
|
|
|
# 主备服务器设置
|
|
|
|
|
# replication = ["10.10.0.1", "10.10.0.2"];
|
|
|
|
|
# MAC地址黑名单
|
|
|
|
|
# mac_filter = ["00:01:02:03:04:07", "00:01:02:03:04:01"];
|
2023-04-21 03:46:25 +00:00
|
|
|
|
# 数据包过滤器
|
2023-05-05 01:47:14 +00:00
|
|
|
|
net_filter = "vlan and udp and dst port 67";
|
2023-01-11 08:55:03 +00:00
|
|
|
|
# IP地址池配置
|
|
|
|
|
range_set: (
|
2023-04-21 08:05:01 +00:00
|
|
|
|
{ dhcp_range = "192.168.101.2-192.168.101.4";
|
2023-02-17 01:04:16 +00:00
|
|
|
|
subnet_mask = "255.255.255.0";
|
|
|
|
|
domain_server = "114.114.114.114,8.8.8.8";
|
|
|
|
|
gateway = "192.168.101.1";
|
|
|
|
|
lease_time = 36000;
|
2023-03-29 09:02:21 +00:00
|
|
|
|
vni = 123;
|
2023-02-17 01:04:16 +00:00
|
|
|
|
},
|
|
|
|
|
{ dhcp_range = "10.10.0.2-10.10.0.100";
|
2023-01-11 08:55:03 +00:00
|
|
|
|
subnet_mask = "255.255.0.0";
|
2023-04-21 08:05:01 +00:00
|
|
|
|
domain_server = "114.114.2.2,8.8.4.4";
|
2023-01-11 08:55:03 +00:00
|
|
|
|
gateway = "10.10.0.1";
|
|
|
|
|
lease_time = 36000;
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
}
|