2022-05-10 06:43:27 +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; # 硬件信息监控刷新频率(秒)
|
|
|
|
};
|
|
|
|
|
|
|
|
# 硬件监控相关配置内容
|
|
|
|
watch_params:
|
|
|
|
{
|
|
|
|
cpu = true; # 是否开启CPU监控
|
|
|
|
memory = true; # 是否开启内存监控
|
|
|
|
disk = true; # 是否开启磁盘空间占用监控
|
|
|
|
sensor = true; # 是否开启传感器状态监控
|
|
|
|
|
|
|
|
cpu_refresh = 1; # CPU 状态刷新频率(秒)
|
|
|
|
mem_refresh = 10; # 内存状态刷新频率(秒)
|
|
|
|
disk_refresh = 10; # 磁盘状态刷新频率(秒)
|
|
|
|
sensor_refresh = 10; # 传感器状态刷新频率(秒)
|
|
|
|
};
|
|
|
|
|
|
|
|
# 数据库相关配置
|
|
|
|
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 数据库名称
|
2022-11-28 09:57:57 +00:00
|
|
|
|
|
|
|
sqlite_dbname = "vcpe.db"; # sqlite3 数据库文件名
|
|
|
|
sqlite_passwd = "test123"; # sqlite3 数据库密码
|
2022-05-10 06:43:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# MQ 相关配置
|
|
|
|
zero_mq:
|
|
|
|
{
|
2022-06-13 03:09:36 +00:00
|
|
|
svr_port = 6278; # ZeroMQ 服务器端口
|
2022-06-22 06:59:52 +00:00
|
|
|
agent_addr = "ipc:///tmp/msg_fifo0"; # 消息通道路径
|
2022-05-10 06:43:27 +00:00
|
|
|
};
|
2022-06-02 08:18:43 +00:00
|
|
|
|
2022-06-10 09:03:27 +00:00
|
|
|
# vxlan 相关
|
2022-06-13 03:09:36 +00:00
|
|
|
vxlan_wan:
|
2022-06-02 08:18:43 +00:00
|
|
|
{
|
2022-06-13 03:09:36 +00:00
|
|
|
enable = true; # 是否启动vxLan隧道封装
|
2022-11-15 08:32:53 +00:00
|
|
|
nic = "ens160"; # vxlan 物理网卡名称
|
2022-06-13 03:09:36 +00:00
|
|
|
peer_ip = "192.168.20.112"; # vxlan 对端IP
|
|
|
|
peer_mac = "00:0C:29:49:CB:27"; # vxlan 对端 MAC 地址
|
2022-09-19 01:53:11 +00:00
|
|
|
# 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";
|
2022-06-10 09:03:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# vcpe 本地服务网络接口配置
|
|
|
|
local_eth:
|
|
|
|
{
|
2022-06-13 03:09:36 +00:00
|
|
|
ip = "192.168.100.1";
|
|
|
|
netmast = "255.255.0.0";
|
|
|
|
gw = "192.168.100.1";
|
2022-11-07 06:21:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# http server config
|
|
|
|
http_svr:
|
|
|
|
{
|
|
|
|
listen_addr = "0.0.0.0";
|
|
|
|
listen_port = 8000;
|
|
|
|
tcp_nodelay = true;
|
2022-11-15 08:32:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# DHCP Server Config
|
2022-11-17 07:27:32 +00:00
|
|
|
dhcp_server: {
|
|
|
|
listen_on = ["192.168.30.1", "192.168.100.1"];
|
2022-11-23 01:20:38 +00:00
|
|
|
# 主备服务器设置
|
|
|
|
# replication = ["192.168.100.211", "192.168.100.215"];
|
2022-11-17 07:27:32 +00:00
|
|
|
|
|
|
|
range_set: (
|
|
|
|
{ dhcp_range = "192.168.30.110-192.168.30.120";
|
|
|
|
subnet_mask = "255.255.255.0";
|
|
|
|
domain_server = "114.114.114.114,8.8.8.8";
|
|
|
|
gateway = "192.168.30.1";
|
|
|
|
lease_time = 360;
|
|
|
|
},
|
|
|
|
{ dhcp_range = "192.168.100.110-192.168.100.200";
|
|
|
|
subnet_mask = "255.255.255.0";
|
|
|
|
domain_server = "114.114.114.114,8.8.8.8";
|
|
|
|
gateway = "192.168.100.1";
|
|
|
|
lease_time = 360;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
};
|
2022-05-10 06:43:27 +00:00
|
|
|
}
|