blob: cb2fc727f406be8fe540444fe1836c69a9ae5ab0 [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "Configure network for endpoints in the cell testbed."
author ""
# This file is from the chromeos-base/celltest-perf-endpoint ebuild,
# which is hand-installed on the relevant testbed machines. The
# testbed is documented at
# Needs to run after iptables starts up so that our changes aren't
# overwritten. But, running directly after that will potentially
# interfere with openssh-server because mutliple simultaneous iptables
# invocations can fail. So run after openssh-server has started.
start on stopped iptables and stopped ip6tables and started openssh-server
# Bring up the air-side virtual interface
ifconfig eth0:1
# Open iperf port
iptables -A INPUT -p tcp -m tcp --dport 5001 -j ACCEPT
iptables -A INPUT -p udp -m udp --dport 5001 -j ACCEPT
# Open web server port
iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
end script