Skip to content
Snippets Groups Projects
Commit deb9e879 authored by nimrod's avatar nimrod
Browse files

Corrected ExecStop for nspawn NAT service.

parent e7b4c32b
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ Type=oneshot
RemainAfterExit=yes
Environment=network="192.168.123.0/24"
ExecStart=/sbin/iptables -w -t nat -A POSTROUTING -s "$network" ! -d "$network" -j MASQUERADE
ExecStop=/sbin/iptables -w -t nat -D POSTROUTING -s 192.168.123.0/24 ! -d 192.168.123.0/24 -j MASQUERADE
ExecStop=/sbin/iptables -w -t nat -D POSTROUTING -s "$network" ! -d "$network" -j MASQUERADE
[Install]
WantedBy=network.target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment