aboutsummaryrefslogtreecommitdiffstats
path: root/test/4bridges_arp.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_arp.exp
parentgrsecurity: --join, --shutdown (diff)
downloadfirejail-54fc70b7bf4e3f74c63d068a873de5a9ddf78330.tar.gz
firejail-54fc70b7bf4e3f74c63d068a873de5a9ddf78330.tar.zst
firejail-54fc70b7bf4e3f74c63d068a873de5a9ddf78330.zip
grsecurity: network testing
Diffstat (limited to 'test/4bridges_arp.exp')
-rwxr-xr-xtest/4bridges_arp.exp37
1 files changed, 16 insertions, 21 deletions
diff --git a/test/4bridges_arp.exp b/test/4bridges_arp.exp
index 3004082e6..6a3e6db2a 100755
--- a/test/4bridges_arp.exp
+++ b/test/4bridges_arp.exp
@@ -115,7 +115,7 @@ sleep 2
115 115
116 116
117# check loopback 117# check loopback
118send -- "firejail --net=br0 --net=br1 --net=br2 --net=br3\r" 118send -- "firejail --net=br0 --net=br1 --net=br2 --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"
@@ -136,40 +136,35 @@ expect {
136 timeout {puts "TESTING ERROR 9\n";exit} 136 timeout {puts "TESTING ERROR 9\n";exit}
137 "Child process initialized" 137 "Child process initialized"
138} 138}
139sleep 1
139 140
140# check default gateway 141# check default gateway
141send -- "bash\r" 142send -- "ip route show\r"
142sleep 1
143send -- "netstat -rn;pwd\r"
144expect { 143expect {
145 timeout {puts "TESTING ERROR 10.1\n";exit} 144 timeout {puts "TESTING ERROR 10.1\n";exit}
146 "0.0.0.0" 145 "default via 10.10.20.1 dev eth0"
147} 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}
152expect {
153 timeout {puts "TESTING ERROR 10.3\n";exit}
154 "eth0"
155} 151}
152send -- "ip route show\r"
156expect { 153expect {
157 timeout {puts "TESTING ERROR 10.4\n";exit} 154 timeout {puts "TESTING ERROR 10.2\n";exit}
158 "10.10.20.0" 155 "10.10.30.0/24 dev eth1 proto kernel scope link"
159}
160expect {
161 timeout {puts "TESTING ERROR 10.5\n";exit}
162 "0.0.0.0"
163} 156}
157send -- "ip route show\r"
164expect { 158expect {
165 timeout {puts "TESTING ERROR 10.6\n";exit} 159 timeout {puts "TESTING ERROR 10.2\n";exit}
166 "eth0" 160 "10.10.40.0/24 dev eth2 proto kernel scope link"
167} 161}
162send -- "ip route show\r"
168expect { 163expect {
169 timeout {puts "TESTING ERROR 10\n";exit} 164 timeout {puts "TESTING ERROR 10.2\n";exit}
170 "home" 165 "10.10.50.0/24 dev eth3 proto kernel scope link"
171} 166}
172sleep 1 167sleep 1
173 168
174puts "\n" 169puts "\nall done\n"
175 170