blob: 61364e33f21de4987c2a3f4c6c4226cdf4730a0d [file] [log] [blame]
Andy Bavier99f31c82022-04-14 16:16:26 -07001# Copyright 2022-present Open Networking Foundation
2# SPDX-License-Identifier: Apache-2.0
3
4[Service]
5Type=oneshot
6ExecStart=/bin/bash -c "sudo iptables -t nat -C POSTROUTING -s 172.250.0.0/16 -o DATA_IFACE -j MASQUERADE || sudo iptables -t nat -A POSTROUTING -s 172.250.0.0/16 -o DATA_IFACE -j MASQUERADE"
7
8[Install]
9WantedBy=sys-subsystem-net-devices-core.device