Once I tried command..
sudo iptables-save > /etc/iptables/rules.v4
..to save iptables to some file. Its interesting that I failed to run this command: it said I have insufficient permissions. The file itself was not available for writing for my user. But was available for sudo, of course. Looks like sudo is not passed to next pipelines in a row of commands. How can we fix it?