vcpe/config/vcpe.cfg

98 lines
3.6 KiB
INI
Raw Normal View History

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 数据库名称
};
# MQ 相关配置
zero_mq:
{
svr_port = 6278; # ZeroMQ 服务器端口
agent_addr = "ipc:///tmp/msg_fifo0"; # 消息通道路径
2022-05-10 06:43:27 +00:00
};
# vxlan 相关
vxlan_wan:
{
enable = true; # 是否启动vxLan隧道封装
2022-11-15 08:32:53 +00:00
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:
{
listen_addr = "0.0.0.0";
listen_port = 8000;
tcp_nodelay = true;
2022-11-15 08:32:53 +00:00
};
# DHCP Server Config
dhcp_server: {
listen_on = ["192.168.30.1", "192.168.100.1"];
http_client = ["192.168.30.1", "192.168.30.110", "192.168.100.1", "192.168.100.110"];
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
}