Use native file.write
Merge pull request #18275 from cachedout/iptables_native

Use native file.write