blob: 61364e33f21de4987c2a3f4c6c4226cdf4730a0d [file] [log] [blame]
# Copyright 2022-present Open Networking Foundation
# SPDX-License-Identifier: Apache-2.0
[Service]
Type=oneshot
ExecStart=/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"
[Install]
WantedBy=sys-subsystem-net-devices-core.device