Is it possible to split a config command over multiple lines instead of one long string?
E.g.
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
When using more commands the line gets very long and unreadable. I would like to split it so that I can use one line per command. Something like:
PostUp = iptables -A FORWARD -i %i -j ACCEPT; \
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
The man page says it's based on the ini format but has no help on this topic.
Asked by laktak
(6313 rep)
May 30, 2021, 09:09 PM
Last activity: Aug 2, 2025, 07:47 AM
Last activity: Aug 2, 2025, 07:47 AM