Andy Bavier | 99f31c8 | 2022-04-14 16:16:26 -0700 | [diff] [blame^] | 1 | # Copyright 2022-present Open Networking Foundation |
2 | # SPDX-License-Identifier: Apache-2.0 | ||||
3 | |||||
4 | [Service] | ||||
5 | Type=oneshot | ||||
6 | 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" | ||||
7 | |||||
8 | [Install] | ||||
9 | WantedBy=sys-subsystem-net-devices-core.device |