0c1f2c4a0b
Each command are merged into one: cmd_firewall_parsed. ADD command format is changed: p <pipeline ID> firewall add priority <priority> ipv4 <sipaddr> <sipdepth> <dipaddr> <dipdepth> <sport0> <sport1> <dport0> <dport1> <proto> <protomask> port <port ID> and bulk command was modified: 1. firewall add bulk File line format: priority <priority> ipv4 <sipaddr> <sipdepth> <dipaddr> <dipdepth> <sport0> <sport1> <dport0> <dport1> <proto> <protomask> port <port ID> (protomask is a hex value) File line example: priority 0 ipv4 1.2.3.0 24 10.20.30.40 32 0 63 64 127 6 0xF port 3 2. firewall del bulk File line format: ipv4 <sipaddr> <sipdepth> <dipaddr> <dipdepth> <sport0> <sport1> <dport0> <dport1> <proto> <protomask> File line example: ipv4 1.2.3.0 24 10.20.30.40 32 0 63 64 127 6 0xF Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
14 lines
474 B
Bash
14 lines
474 B
Bash
#
|
|
# run ./config/firewall.sh
|
|
#
|
|
|
|
p 1 firewall add default 4 #SINK0
|
|
p 1 firewall add priority 1 ipv4 0.0.0.0 0 100.0.0.0 10 0 65535 0 65535 6 0xF port 0
|
|
p 1 firewall add priority 1 ipv4 0.0.0.0 0 100.64.0.0 10 0 65535 0 65535 6 0xF port 1
|
|
p 1 firewall add priority 1 ipv4 0.0.0.0 0 100.128.0.0 10 0 65535 0 65535 6 0xF port 2
|
|
p 1 firewall add priority 1 ipv4 0.0.0.0 0 100.192.0.0 10 0 65535 0 65535 6 0xF port 3
|
|
|
|
#p 1 firewall add bulk ./config/firewall.txt
|
|
|
|
p 1 firewall ls
|