aboutsummaryrefslogtreecommitdiffstats
path: root/test/ip6.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-01-13 11:08:04 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-01-13 11:08:04 -0500
commitbad6d369aeb682ba07d018927154cc833f0b9db6 (patch)
tree242e49b6349d23190d6ebc65677e71aaea4d215e /test/ip6.exp
parentadded kmail profile (diff)
downloadfirejail-bad6d369aeb682ba07d018927154cc833f0b9db6.tar.gz
firejail-bad6d369aeb682ba07d018927154cc833f0b9db6.tar.zst
firejail-bad6d369aeb682ba07d018927154cc833f0b9db6.zip
ipv6 support
Diffstat (limited to 'test/ip6.exp')
-rwxr-xr-xtest/ip6.exp46
1 files changed, 46 insertions, 0 deletions
diff --git a/test/ip6.exp b/test/ip6.exp
new file mode 100755
index 000000000..4dc11d3dc
--- /dev/null
+++ b/test/ip6.exp
@@ -0,0 +1,46 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --debug --noprofile --net=eth0 --ip6=2001:0db8:0:f101::1/64 --netfilter6=ipv6.net\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Installing network filter"
11}
12expect {
13 timeout {puts "TESTING ERROR 1\n";exit}
14 "DROP"
15}
16expect {
17 timeout {puts "TESTING ERROR 1\n";exit}
18 "DROP"
19}
20expect {
21 timeout {puts "TESTING ERROR 1\n";exit}
22 "2001:db8:1f0a:3ec::2/128"
23}
24expect {
25 timeout {puts "TESTING ERROR 1\n";exit}
26 "Child process initialized"
27}
28sleep 2
29
30send -- "/sbin/ifconfig\r"
31expect {
32 timeout {puts "TESTING ERROR 1\n";exit}
33 "inet6 addr"
34}
35expect {
36 timeout {puts "TESTING ERROR 1\n";exit}
37 "2001:db8:0:f101::1/64"
38}
39expect {
40 timeout {puts "TESTING ERROR 1\n";exit}
41 "Scope:Global"
42}
43
44
45puts "\nall done\n"
46