[autotest]: Update tests to use new container IP
BUG=b:31285667
TEST=Running the test.
Change-Id: I43ae8f9b4373d2ebdf30cc051f617e04e9e5d320
Reviewed-on: https://chromium-review.googlesource.com/425681
Commit-Ready: Abhishek Bhardwaj <abhishekbh@google.com>
Tested-by: Abhishek Bhardwaj <abhishekbh@google.com>
Reviewed-by: Abhishek Bhardwaj <abhishekbh@google.com>
diff --git a/client/common_lib/cros/arc.py b/client/common_lib/cros/arc.py
index 8d74f00..8c4a656 100644
--- a/client/common_lib/cros/arc.py
+++ b/client/common_lib/cros/arc.py
@@ -599,12 +599,12 @@
def block_outbound(self):
""" Blocks the connection from the container to outer network.
- The iptables settings accept only 192.168.254.2 port 5555 (adb) and
+ The iptables settings accept only 100.115.92.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 192.168.254.2 --sport 5555 -j ACCEPT')
+ _android_shell('iptables -I OUTPUT -p tcp -s 100.115.92.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')
@@ -619,5 +619,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 192.168.254.2 --sport 5555 -j ACCEPT')
+ _android_shell('iptables -D OUTPUT -p tcp -s 100.115.92.2 --sport 5555 -j ACCEPT')
_android_shell('iptables -D OUTPUT -j REJECT')