remove DNS lookup for --netfilter.print and --netfilter6.print commands

This commit is contained in:
netblue30 2023-03-07 09:50:22 -05:00
parent a12601f02a
commit 51f25677e6
4 changed files with 46 additions and 26 deletions

View file

@ -20,7 +20,27 @@ spawn $env(SHELL)
send -- "firejail --netfilter.print=test\r"
expect {
timeout {puts "TESTING ERROR 1\n";exit}
"ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED"
"ACCEPT"
}
expect {
timeout {puts "TESTING ERROR 1\n";exit}
"lo"
}
expect {
timeout {puts "TESTING ERROR 1\n";exit}
"ACCEPT"
}
expect {
timeout {puts "TESTING ERROR 1\n";exit}
"state RELATED,ESTABLISHED"
}
expect {
timeout {puts "TESTING ERROR 1\n";exit}
"ACCEPT"
}
expect {
timeout {puts "TESTING ERROR 1\n";exit}
"icmptype 8"
}
after 500

View file

@ -39,8 +39,8 @@ echo "TESTING: bandwidth (net_bandwidth.exp)"
echo "TESTING: ipv6 (ip6.exp)"
./ip6.exp
#echo "TESTING: ipv6 netfilter(ip6_netfilter.exp)"
#./ip6_netfilter.exp
echo "TESTING: ipv6 netfilter(ip6_netfilter.exp)"
./ip6_netfilter.exp
sudo ip link set br0 down
sudo brctl delbr br0