summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorsongyanchao <[email protected]>2022-07-01 03:04:11 -0400
committersongyanchao <[email protected]>2022-07-13 06:14:14 -0400
commit1f4da731f7a53c4580091e3a01531e0f23f758e1 (patch)
treede0f04b0894c67deda6e3877aabee01084b81990 /conf
parentac6e55a96f00bb61d4694425be46bb1c42271ea5 (diff)
✨ feat(TSG-11135): 实现IPv4Acl配置加载、初始化等功能
添加Acl 初始化框架,实现 IPv4 Acl 配置加载、初始化等功能
Diffstat (limited to 'conf')
-rw-r--r--conf/CMakeLists.txt1
-rw-r--r--conf/classifier_acl.conf29
2 files changed, 30 insertions, 0 deletions
diff --git a/conf/CMakeLists.txt b/conf/CMakeLists.txt
index e4d76c8..1b75d09 100644
--- a/conf/CMakeLists.txt
+++ b/conf/CMakeLists.txt
@@ -5,6 +5,7 @@ configure_file(mrzcpd.sysconfig.in mrzcpd)
configure_file(mrzcpd.sh.in mrzcpd.sh)
install(FILES mrglobal.conf DESTINATION etc COMPONENT Profile)
+install(FILES classifier_acl.conf DESTINATION etc COMPONENT Profile)
install(FILES mrtunnat.conf DESTINATION etc COMPONENT Profile)
install(FILES mrapm.conf DESTINATION etc COMPONENT Profile)
install(FILES ${CMAKE_BINARY_DIR}/conf/mrzcpd.conf DESTINATION ${MR_INSTALL_LDCONFDIR} COMPONENT Profile)
diff --git a/conf/classifier_acl.conf b/conf/classifier_acl.conf
new file mode 100644
index 0000000..7460e60
--- /dev/null
+++ b/conf/classifier_acl.conf
@@ -0,0 +1,29 @@
+#[acl_rule:ipv4]
+#rule_num=2
+#
+#[acl4_rule:1]
+#src_ip=192.168.0.100
+#src_mask=32
+#dst_ip=192.168.0.1
+#dst_mask=32
+#src_port_low=0
+#src_port_high=65535
+#dst_port_low=0
+#dst_port_high=65535
+#proto=tcp
+#action=drop
+#priority=1
+#
+#[acl4_rule:2]
+#src_ip=192.168.0.101
+#src_mask=32
+#dst_ip=192.168.0.1
+#dst_mask=32
+#src_port_low=0
+#src_port_high=65535
+#dst_port_low=0
+#dst_port_high=65535
+#proto=tcp
+#action=nf_fwd
+#nf_name=ens6f1np1
+#priority=1