2019-06-02 18:17:53 +08:00
|
|
|
|
[system]
|
2020-08-31 16:10:05 +08:00
|
|
|
|
nr_worker_threads=8
|
2019-06-18 09:50:33 +08:00
|
|
|
|
enable_kni_v1=0
|
2021-11-20 17:22:19 +03:00
|
|
|
|
enable_kni_v2=0
|
|
|
|
|
|
enable_kni_v3=1
|
2020-08-31 16:10:05 +08:00
|
|
|
|
|
|
|
|
|
|
# Only when (disable_coredump == 1 || (enable_breakpad == 1 && enable_breakpad_upload == 1)) is satisfied, the core will not be generated locally
|
2020-04-24 11:59:58 +08:00
|
|
|
|
disable_coredump=0
|
2020-08-31 16:10:05 +08:00
|
|
|
|
enable_breakpad=1
|
|
|
|
|
|
enable_breakpad_upload=1
|
|
|
|
|
|
breakpad_upload_url=http://sentry.mesalab.cn:9000/api/3/minidump/?sentry_key=e8e446bb3bd8435c97f4c01770ca7025
|
|
|
|
|
|
# must be /run/tfe/crashreport,due to tmpfile limit
|
|
|
|
|
|
breakpad_minidump_dir=/run/tfe/crashreport
|
|
|
|
|
|
|
2020-07-28 16:43:37 +08:00
|
|
|
|
# ask for at least (1 + nr_worker_threads) masks
|
|
|
|
|
|
# the first mask for acceptor thread
|
|
|
|
|
|
# the others mask for worker thread
|
2020-08-31 16:10:05 +08:00
|
|
|
|
enable_cpu_affinity=0
|
|
|
|
|
|
cpu_affinity_mask=1-9
|
|
|
|
|
|
# LEAST_CONN = 0; ROUND_ROBIN = 1
|
2020-07-28 17:41:54 +08:00
|
|
|
|
load_balance=1
|
2019-06-18 09:50:33 +08:00
|
|
|
|
|
2021-03-08 17:33:17 +08:00
|
|
|
|
# for enable kni v3
|
|
|
|
|
|
[nfq]
|
2022-12-06 15:01:42 +08:00
|
|
|
|
device=tap0
|
2021-03-08 17:33:17 +08:00
|
|
|
|
queue_id=1
|
|
|
|
|
|
queue_maxlen=655350
|
|
|
|
|
|
queue_rcvbufsiz=983025000
|
|
|
|
|
|
queue_no_enobufs=1
|
|
|
|
|
|
|
2018-10-18 15:02:23 +08:00
|
|
|
|
[kni]
|
2020-08-31 16:10:05 +08:00
|
|
|
|
# kni v1
|
|
|
|
|
|
#uxdomain=/var/run/.tfe_kni_acceptor_handler
|
|
|
|
|
|
# kni v2
|
|
|
|
|
|
#scm_socket_file=/var/run/.tfe_kmod_scm_socket
|
|
|
|
|
|
|
|
|
|
|
|
# send cmsg
|
|
|
|
|
|
send_switch=1
|
2019-12-02 16:56:51 +08:00
|
|
|
|
ip=192.168.100.1
|
|
|
|
|
|
cmsg_port=2475
|
2020-08-31 16:10:05 +08:00
|
|
|
|
|
|
|
|
|
|
# watch dog
|
2019-12-02 16:56:51 +08:00
|
|
|
|
watchdog_switch=1
|
|
|
|
|
|
watchdog_port=2476
|
2019-06-02 18:17:53 +08:00
|
|
|
|
|
2021-08-20 11:32:33 +08:00
|
|
|
|
[watchdog_tfe]
|
|
|
|
|
|
# The worker thread updates the timestamp every two seconds
|
|
|
|
|
|
# The watchdog thread checks the timestamp every second
|
|
|
|
|
|
enable=1
|
|
|
|
|
|
timeout_seconds=5
|
|
|
|
|
|
statistics_window=20
|
|
|
|
|
|
timeout_cnt_as_fail=3
|
|
|
|
|
|
timeout_debug=0
|
|
|
|
|
|
|
2018-10-18 15:02:23 +08:00
|
|
|
|
[ssl]
|
2021-11-02 22:27:56 +08:00
|
|
|
|
ssl_debug=0
|
2020-12-25 21:52:14 +06:00
|
|
|
|
ssl_ja3_table=PXY_SSL_FINGERPRINT
|
2020-10-12 17:01:17 +08:00
|
|
|
|
# ssl version Not available, configured via TSG website
|
|
|
|
|
|
# ssl_max_version=tls13
|
|
|
|
|
|
# ssl_min_version=ssl3
|
2020-08-31 16:10:05 +08:00
|
|
|
|
ssl_compression=1
|
|
|
|
|
|
no_ssl2=1
|
|
|
|
|
|
no_ssl3=0
|
|
|
|
|
|
no_tls10=0
|
|
|
|
|
|
no_tls11=0
|
|
|
|
|
|
no_tls12=0
|
|
|
|
|
|
default_ciphers=ALL:-aNULL
|
|
|
|
|
|
no_cert_verify=0
|
|
|
|
|
|
|
|
|
|
|
|
# session ticket
|
2018-10-18 15:02:23 +08:00
|
|
|
|
no_session_ticket=0
|
2020-10-12 17:01:17 +08:00
|
|
|
|
stek_group_num=4096
|
2020-08-31 16:10:05 +08:00
|
|
|
|
stek_rotation_time=3600
|
|
|
|
|
|
|
|
|
|
|
|
# session cache
|
|
|
|
|
|
no_session_cache=0
|
|
|
|
|
|
session_cache_slots=4194304
|
|
|
|
|
|
session_cache_expire_seconds=1800
|
|
|
|
|
|
|
|
|
|
|
|
# service cache
|
|
|
|
|
|
service_cache_slots=4194304
|
|
|
|
|
|
service_cache_expire_seconds=300
|
|
|
|
|
|
service_cache_fail_as_pinning_cnt=4
|
|
|
|
|
|
service_cache_fail_as_proto_err_cnt=5
|
|
|
|
|
|
service_cache_fail_time_window=30
|
|
|
|
|
|
|
|
|
|
|
|
# cert
|
|
|
|
|
|
check_cert_crl=0
|
|
|
|
|
|
trusted_cert_load_local=1
|
2020-10-12 17:01:17 +08:00
|
|
|
|
# trusted_cert_file=resource/tfe/tls-ca-bundle.pem
|
|
|
|
|
|
trusted_cert_file=resource/tfe/tsg_diagonse_ca.pem
|
2018-11-23 17:23:48 +08:00
|
|
|
|
trusted_cert_dir=resource/tfe/trusted_storage
|
2020-08-31 16:10:05 +08:00
|
|
|
|
|
|
|
|
|
|
# master key
|
|
|
|
|
|
log_master_key=0
|
2018-11-23 17:23:48 +08:00
|
|
|
|
key_log_file=log/sslkeylog.log
|
2019-06-18 09:50:33 +08:00
|
|
|
|
|
2020-08-31 16:10:05 +08:00
|
|
|
|
# mid cert cache
|
2019-12-06 17:40:03 +08:00
|
|
|
|
mc_cache_enable=1
|
2022-09-23 15:34:50 +08:00
|
|
|
|
mc_vsystem_id=1
|
2019-12-06 17:40:03 +08:00
|
|
|
|
mc_cache_eth=eth0
|
2019-12-24 13:46:46 +08:00
|
|
|
|
mc_cache_broker_list=192.168.40.224:9092
|
|
|
|
|
|
mc_cache_topic=PXY-EXCH-INTERMEDIA-CERT
|
2021-08-19 16:24:19 +08:00
|
|
|
|
sasl_username=admin
|
|
|
|
|
|
sasl_passwd=galaxy2019
|
2019-12-06 17:40:03 +08:00
|
|
|
|
|
2018-10-18 15:02:23 +08:00
|
|
|
|
[key_keeper]
|
2018-11-02 20:38:06 +08:00
|
|
|
|
#Mode: debug - generate cert with ca_path, normal - generate cert with cert store
|
2019-06-02 18:17:53 +08:00
|
|
|
|
#0 on cache 1 off cache
|
|
|
|
|
|
no_cache=0
|
|
|
|
|
|
mode=normal
|
|
|
|
|
|
cert_store_host=192.168.10.8
|
2018-10-18 15:02:23 +08:00
|
|
|
|
cert_store_port=9991
|
2019-06-02 18:17:53 +08:00
|
|
|
|
ca_path=resource/tfe/tango-ca-trust-ca.pem
|
|
|
|
|
|
untrusted_ca_path=resource/tfe/tango-ca-untrust-ca.pem
|
2020-08-31 16:10:05 +08:00
|
|
|
|
hash_slot_size=131072
|
|
|
|
|
|
hash_expire_seconds=300
|
|
|
|
|
|
cert_expire_time=24
|
|
|
|
|
|
|
|
|
|
|
|
# health_check only for "mode=normal" default 1
|
2020-05-19 13:29:59 +08:00
|
|
|
|
enable_health_check=1
|
2018-12-08 20:48:19 +06:00
|
|
|
|
|
2018-10-18 15:02:23 +08:00
|
|
|
|
[debug]
|
2020-07-21 20:00:14 +08:00
|
|
|
|
# 1 : enforce tcp passthrough
|
|
|
|
|
|
# 0 : Whether to passthrough depends on the tcp_options in cmsg
|
2018-10-18 15:02:23 +08:00
|
|
|
|
passthrough_all_tcp=0
|
|
|
|
|
|
|
2019-06-02 18:17:53 +08:00
|
|
|
|
[ratelimit]
|
2020-08-31 16:10:05 +08:00
|
|
|
|
read_rate=0
|
|
|
|
|
|
read_burst=0
|
|
|
|
|
|
write_rate=0
|
|
|
|
|
|
write_burst=0
|
2019-06-02 18:17:53 +08:00
|
|
|
|
|
2018-10-18 15:02:23 +08:00
|
|
|
|
[tcp]
|
2020-08-31 16:10:05 +08:00
|
|
|
|
# read rcv_buff/snd_buff options from tfe conf
|
|
|
|
|
|
sz_rcv_buffer=-1
|
|
|
|
|
|
sz_snd_buffer=-1
|
2020-07-21 20:00:14 +08:00
|
|
|
|
|
|
|
|
|
|
# 1 : use tcp_options in tfe.conf
|
|
|
|
|
|
# 0 : use tcp_options in cmsg
|
|
|
|
|
|
enable_overwrite=0
|
|
|
|
|
|
tcp_nodelay=1
|
2019-06-02 18:17:53 +08:00
|
|
|
|
so_keepalive=1
|
2018-10-18 15:02:23 +08:00
|
|
|
|
tcp_keepcnt=8
|
|
|
|
|
|
tcp_keepintvl=15
|
|
|
|
|
|
tcp_keepidle=30
|
2020-07-21 20:00:14 +08:00
|
|
|
|
tcp_user_timeout=600
|
2019-06-02 18:17:53 +08:00
|
|
|
|
tcp_ttl_upstream=75
|
|
|
|
|
|
tcp_ttl_downstream=70
|
2018-11-02 20:38:06 +08:00
|
|
|
|
|
2018-11-23 17:23:48 +08:00
|
|
|
|
[stat]
|
2020-10-12 17:01:17 +08:00
|
|
|
|
statsd_server=127.0.0.1
|
|
|
|
|
|
statsd_port=8100
|
2020-08-31 16:10:05 +08:00
|
|
|
|
statsd_cycle=5
|
|
|
|
|
|
# 1:FS_OUTPUT_STATSD; 2:FS_OUTPUT_INFLUX_LINE
|
|
|
|
|
|
statsd_format=2
|
|
|
|
|
|
histogram_bins=0.5,0.8,0.9,0.95
|
2020-11-13 20:16:22 +06:00
|
|
|
|
statsd_set_prometheus_port=9001
|
|
|
|
|
|
statsd_set_prometheus_url_path=/tfe_prometheus
|
2019-06-02 15:10:57 +08:00
|
|
|
|
|
2019-06-18 09:50:33 +08:00
|
|
|
|
[traffic_mirror]
|
2020-08-31 16:10:05 +08:00
|
|
|
|
enable=1
|
2019-06-18 09:50:33 +08:00
|
|
|
|
device=eth4
|
2020-08-31 16:10:05 +08:00
|
|
|
|
# 0:TRAFFIC_MIRROR_ETHDEV_AF_PACKET; 1:TRAFFIC_MIRROR_ETHDEV_MARSIO
|
2019-06-18 09:50:33 +08:00
|
|
|
|
type=1
|
2022-01-18 14:15:32 +08:00
|
|
|
|
default_vlan_id=2
|
2020-11-13 19:19:26 +06:00
|
|
|
|
table_info=resource/pangu/table_info_traffic_mirror.conf
|
|
|
|
|
|
stat_file=log/traffic_mirror.status
|
2020-06-24 16:40:53 +08:00
|
|
|
|
|
2022-12-06 15:01:42 +08:00
|
|
|
|
[traffic_steering]
|
2022-12-20 14:49:53 +08:00
|
|
|
|
enable_steering_http=1
|
|
|
|
|
|
enable_steering_ssl=1
|
2022-12-06 15:01:42 +08:00
|
|
|
|
# 17: 0x11
|
|
|
|
|
|
so_mask_client=17
|
|
|
|
|
|
# 34: 0x22
|
|
|
|
|
|
so_mask_server=34
|
|
|
|
|
|
device_client=eth_client
|
|
|
|
|
|
device_server=eth_server
|
|
|
|
|
|
|
2022-12-19 14:14:30 +08:00
|
|
|
|
http_keepalive_enable=1
|
|
|
|
|
|
http_keepalive_path="/metrics"
|
|
|
|
|
|
http_keepalive_addr=192.168.41.60
|
|
|
|
|
|
http_keepalive_port=9273
|
|
|
|
|
|
|
2020-06-24 16:40:53 +08:00
|
|
|
|
[kafka]
|
|
|
|
|
|
enable=1
|
2022-09-23 15:34:50 +08:00
|
|
|
|
vsystem_id=1
|
2020-06-24 16:40:53 +08:00
|
|
|
|
NIC_NAME=enp2s0
|
|
|
|
|
|
kafka_brokerlist=192.168.40.224:9092
|
2021-09-02 09:33:39 +08:00
|
|
|
|
kafka_topic=PROXY-EVENT
|
2021-08-19 16:24:19 +08:00
|
|
|
|
sasl_username=admin
|
|
|
|
|
|
sasl_passwd=galaxy2019
|
2020-06-28 11:25:36 +08:00
|
|
|
|
device_id_filepath=/opt/tsg/etc/tsg_sn.json
|
2020-06-24 16:40:53 +08:00
|
|
|
|
|
|
|
|
|
|
[maat]
|
|
|
|
|
|
# 0:json 1:redis 2:iris
|
|
|
|
|
|
maat_input_mode=1
|
|
|
|
|
|
stat_switch=1
|
|
|
|
|
|
perf_switch=1
|
|
|
|
|
|
table_info=resource/pangu/table_info.conf
|
2020-07-24 18:53:07 +08:00
|
|
|
|
accept_path=/opt/tsg/etc/tsg_device_tag.json
|
2020-10-23 19:03:08 +08:00
|
|
|
|
accept_tag_key=device_id
|
2020-06-24 16:40:53 +08:00
|
|
|
|
stat_file=log/pangu_scan.fs2
|
|
|
|
|
|
effect_interval_s=1
|
2020-08-31 16:10:05 +08:00
|
|
|
|
deferred_load_on=0
|
|
|
|
|
|
|
2020-06-24 16:40:53 +08:00
|
|
|
|
# json mode conf iterm
|
|
|
|
|
|
json_cfg_file=resource/pangu/pangu_http.json
|
|
|
|
|
|
|
|
|
|
|
|
# redis mode conf iterm
|
|
|
|
|
|
maat_redis_server=10.4.34.4
|
|
|
|
|
|
maat_redis_port_range=6380-6389
|
|
|
|
|
|
maat_redis_db_index=4
|
|
|
|
|
|
|
|
|
|
|
|
# iris mode conf iterm
|
|
|
|
|
|
full_cfg_dir=pangu_policy/full/index/
|
2023-04-25 16:17:35 +08:00
|
|
|
|
inc_cfg_dir=pangu_policy/inc/index/
|
|
|
|
|
|
|
|
|
|
|
|
[proxy_hits]
|
|
|
|
|
|
cycle=1000
|
|
|
|
|
|
telegraf_port=8400
|
|
|
|
|
|
telegraf_ip=127.0.0.1
|
|
|
|
|
|
app_name="proxy_rule_hits"
|