From bad6d369aeb682ba07d018927154cc833f0b9db6 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Wed, 13 Jan 2016 11:08:04 -0500 Subject: ipv6 support --- test/ip6.exp | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 test/ip6.exp (limited to 'test/ip6.exp') 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 @@ +#!/usr/bin/expect -f + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firejail --debug --noprofile --net=eth0 --ip6=2001:0db8:0:f101::1/64 --netfilter6=ipv6.net\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Installing network filter" +} +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "DROP" +} +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "DROP" +} +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "2001:db8:1f0a:3ec::2/128" +} +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "Child process initialized" +} +sleep 2 + +send -- "/sbin/ifconfig\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "inet6 addr" +} +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "2001:db8:0:f101::1/64" +} +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "Scope:Global" +} + + +puts "\nall done\n" + -- cgit v1.2.3-70-g09d2