aboutsummaryrefslogtreecommitdiffstats
path: root/test/4bridges_ip.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-04 22:01:33 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-04 22:01:33 -0400
commit54fc70b7bf4e3f74c63d068a873de5a9ddf78330 (patch)
tree98e15626d9271b14f8208e29debbb6685eb0d65a /test/4bridges_ip.exp
parentgrsecurity: --join, --shutdown (diff)
downloadfirejail-54fc70b7bf4e3f74c63d068a873de5a9ddf78330.tar.gz
firejail-54fc70b7bf4e3f74c63d068a873de5a9ddf78330.tar.zst
firejail-54fc70b7bf4e3f74c63d068a873de5a9ddf78330.zip
grsecurity: network testing
Diffstat (limited to 'test/4bridges_ip.exp')
-rwxr-xr-xtest/4bridges_ip.exp35
1 files changed, 17 insertions, 18 deletions
diff --git a/test/4bridges_ip.exp b/test/4bridges_ip.exp
index 9e37b4ff4..8068aeebb 100755
--- a/test/4bridges_ip.exp
+++ b/test/4bridges_ip.exp
@@ -115,7 +115,7 @@ sleep 2
115 115
116 116
117# check loopback 117# check loopback
118send -- "firejail --net=br0 --net=br1 --ip=10.10.30.50 --net=br2 --ip=10.10.40.100 --net=br3\r" 118send -- "firejail --net=br0 --net=br1 --ip=10.10.30.50 --net=br2 --ip=10.10.40.100 --net=br3 --protocol=unix,inet,netlink\r"
119expect { 119expect {
120 timeout {puts "TESTING ERROR 5\n";exit} 120 timeout {puts "TESTING ERROR 5\n";exit}
121 "lo" 121 "lo"
@@ -138,38 +138,37 @@ expect {
138} 138}
139 139
140# check default gateway 140# check default gateway
141send -- "bash\r" 141send -- "ip route show\r"
142sleep 1
143send -- "netstat -rn;pwd\r"
144expect { 142expect {
145 timeout {puts "TESTING ERROR 10.1\n";exit} 143 timeout {puts "TESTING ERROR 10.1\n";exit}
146 "0.0.0.0" 144 "default via 10.10.20.1 dev eth0"
147} 145}
146
147send -- "ip route show\r"
148expect { 148expect {
149 timeout {puts "TESTING ERROR 10.2\n";exit} 149 timeout {puts "TESTING ERROR 10.2\n";exit}
150 "10.10.20.1" 150 "10.10.20.0/29 dev eth0 proto kernel scope link"
151} 151}
152
153send -- "ip route show\r"
152expect { 154expect {
153 timeout {puts "TESTING ERROR 10.3\n";exit} 155 timeout {puts "TESTING ERROR 10.3\n";exit}
154 "eth0" 156 "10.10.30.0/24 dev eth1 proto kernel scope link src 10.10.30.50"
155} 157}
158
159send -- "ip route show\r"
156expect { 160expect {
157 timeout {puts "TESTING ERROR 10.4\n";exit} 161 timeout {puts "TESTING ERROR 10.4\n";exit}
158 "10.10.20.0" 162 "10.10.40.0/24 dev eth2 proto kernel scope link src 10.10.40.100"
159} 163}
164
165send -- "ip route show\r"
160expect { 166expect {
161 timeout {puts "TESTING ERROR 10.5\n";exit} 167 timeout {puts "TESTING ERROR 10.5\n";exit}
162 "0.0.0.0" 168 "10.10.50.0/24 dev eth3 proto kernel scope link"
163}
164expect {
165 timeout {puts "TESTING ERROR 10.6\n";exit}
166 "eth0"
167}
168expect {
169 timeout {puts "TESTING ERROR 10\n";exit}
170 "home"
171} 169}
170
172sleep 1 171sleep 1
173 172
174puts "\n" 173puts "\nall done\n"
175 174