Revert "[autotest]: Update tests to use new container IP"
BUG=chromium:692981
This reverts commit 754b7fb3bd30e87c41dc8bfc2bdf49575cc0a3e0.
Change-Id: I854c5c9c369d708c049c967abeb3d42edb38169e
Reviewed-on: https://chromium-review.googlesource.com/444704
Commit-Ready: Chung-yih Wang <cywang@google.com>
Tested-by: Chung-yih Wang <cywang@google.com>
Reviewed-by: Hsu-Cheng Tsai <hctsai@chromium.org>
diff --git a/client/common_lib/cros/arc.py b/client/common_lib/cros/arc.py
index 8554cf7..3f5c078 100644
--- a/client/common_lib/cros/arc.py
+++ b/client/common_lib/cros/arc.py
@@ -605,12 +605,12 @@
def block_outbound(self):
""" Blocks the connection from the container to outer network.
- The iptables settings accept only 100.115.92.2 port 5555 (adb) and
+ The iptables settings accept only 192.168.254.2 port 5555 (adb) and
localhost port 9008 (uiautomator)
"""
logging.info('Blocking outbound connection')
_android_shell('iptables -I OUTPUT -j REJECT')
- _android_shell('iptables -I OUTPUT -p tcp -s 100.115.92.2 --sport 5555 -j ACCEPT')
+ _android_shell('iptables -I OUTPUT -p tcp -s 192.168.254.2 --sport 5555 -j ACCEPT')
_android_shell('iptables -I OUTPUT -p tcp -d localhost --dport 9008 -j ACCEPT')
_android_shell('iptables -I OUTPUT -p tcp -s localhost --sport 9008 -j ACCEPT')
@@ -625,5 +625,5 @@
logging.info('Unblocking outbound connection')
_android_shell('iptables -D OUTPUT -p tcp -s localhost --sport 9008 -j ACCEPT')
_android_shell('iptables -D OUTPUT -p tcp -d localhost --dport 9008 -j ACCEPT')
- _android_shell('iptables -D OUTPUT -p tcp -s 100.115.92.2 --sport 5555 -j ACCEPT')
+ _android_shell('iptables -D OUTPUT -p tcp -s 192.168.254.2 --sport 5555 -j ACCEPT')
_android_shell('iptables -D OUTPUT -j REJECT')