summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorfumingwei <[email protected]>2021-03-18 10:52:35 +0800
committerfumingwei <[email protected]>2021-03-18 10:52:35 +0800
commit67c83e29127f4b85035055fa9fb791cab43a4348 (patch)
tree0c81a3ed353c9da7fbecaef2bca06d5c899bc7d6 /config
parentfb0b4c321c6620d4befeb9928a73bd63cc2915a8 (diff)
修改firewall配置文件,达到kni发出数据包的目的
Diffstat (limited to 'config')
-rw-r--r--config/mrzcpd/etc/mrglobal.conf4
-rw-r--r--config/sapp_run/etc/sapp.toml29
-rw-r--r--config/sapp_run/tsgconf/maat.conf4
3 files changed, 31 insertions, 6 deletions
diff --git a/config/mrzcpd/etc/mrglobal.conf b/config/mrzcpd/etc/mrglobal.conf
index 8feb83d..8341ea1 100644
--- a/config/mrzcpd/etc/mrglobal.conf
+++ b/config/mrzcpd/etc/mrglobal.conf
@@ -10,6 +10,8 @@ in_mask=255.255.255.0
promisc=1
[device:virtio_user1]
+in_addr=172.16.1.2
+in_mask=255.255.0.0
promisc=1
[service]
@@ -21,7 +23,7 @@ hashmode=0
[eal]
virtaddr=0x7f40c4a00000
loglevel=8
-no-pci=1
+nopci=1
mem=4096
single-file-segments=0
diff --git a/config/sapp_run/etc/sapp.toml b/config/sapp_run/etc/sapp.toml
index b278d86..c3aa403 100644
--- a/config/sapp_run/etc/sapp.toml
+++ b/config/sapp_run/etc/sapp.toml
@@ -10,8 +10,9 @@ instance_name = "sapp_v4.0"
[CPU]
worker_threads=4
+send_only_threads_max=1
### note, bind_mask, if you do not want to bind thread to special CPU core, keep it empty as []
-bind_mask=[5,6,7,8]
+bind_mask=[5,6,7,8,9]
[MEM]
dictator_enable=1
@@ -27,6 +28,14 @@ dictator_enable=1
[packet_io.feature]
inbound_route_dir=1
+ BSD_packet_filter=""
+ pcap_capture_direction="in"
+ inject_pkt_mode=raw_ethernet_single_gateway
+ inject_mode_inline_device_sport=54789
+ inject_mode_single_gateway_device=tap0
+ inject_mode_single_gateway_src_mac=00:11:22:33:44:55
+ inject_mode_single_gateway_dst_mac=00:11:22:33:44:66
+
#inject_mode_inline_device_sport=54789
### note, depolyment.mode options: [mirror, inline, transparent, dumpfile]
[packet_io.depolyment]
@@ -35,11 +44,25 @@ dictator_enable=1
### note, interface.type options: [pag,pcap,marsio]
[packet_io.internal.interface]
type=marsio
- name=virtio_user0
+ name="virtio_user0"
[packet_io.external.interface]
type=pcap
- name=eth0
+ name="tap_sapp"
+
+
+[packet_io.polling]
+ enabled=1
+ polling_priority=1
+
+[PROTOCOL_FEATURE]
+ ipv6_decapsulation_enabled=1
+ ipv6_send_packet_enabled=1
+ tcp_drop_pure_ack_pkt=0
+ tcp_syn_option_parse_enabled=1
+ skip_not_ip_layer_over_eth=0
+ treat_vlan_as_mac_in_mac=0
+ reverse_ethernet_addr=1
[STREAM]
### note, stream_id_base_time format is "%Y-%m-%d %H:%M:%S"
diff --git a/config/sapp_run/tsgconf/maat.conf b/config/sapp_run/tsgconf/maat.conf
index d09157e..fe2ea62 100644
--- a/config/sapp_run/tsgconf/maat.conf
+++ b/config/sapp_run/tsgconf/maat.conf
@@ -1,5 +1,5 @@
[STATIC]
-MAAT_MODE=2
+MAAT_MODE=1
STAT_SWITCH=1
PERF_SWITCH=1
TABLE_INFO=tsgconf/tsg_static_tableinfo.conf
@@ -15,7 +15,7 @@ FULL_CFG_DIR=tsgrule/full/index/
EFFECTIVE_RANGE_FILE=/opt/tsg/etc/tsg_device_tag.json
[DYNAMIC]
-MAAT_MODE=2
+MAAT_MODE=1
STAT_SWITCH=1
PERF_SWITCH=1
TABLE_INFO=tsgconf/tsg_dynamic_tableinfo.conf