Hello, thanks for response.
If there is no “default location” and as I know Ubuntu has no iptables rules by default (just after installation), then rules in my iptables configuration (that block IPTV) are loaded by some script/application from some file. Is it right? I'm rather new to Linux and Ubuntu. How can I find that file and script?
There is no "default location".
I tried to do the following (https://help.ubuntu.com/community/IptablesHowTo):
1) Reset my iptables and saved it to a file:
sudo iptables -F
sudo iptables -X
sudo sh -c "iptables-save > /etc/iptables_default-no_rules.txt"
2) Added the following line at the end of file /etc/network/interfaces:
By the way, there were only two lines in that file:
pre-up iptables-restore < /etc/iptables_default-no_rules.txt
iface lo inet loopback
3) Rebooted the computer.
All unwanted rules (that block my IPTV), that I'm trying to get rid of were back.
After that I tried alternative solution (https://help.ubuntu.com/community/IptablesHowTo):
1) Created script iptables-restore-default:
iptables-restore < /etc/iptables_default-no_rules.txt
chmod +x iptables-restore-default
5) Restarted the computer.
sudo cp iptables-restore-default /etc/network/if-pre-up.d/
Unwanted iptables rules were loaded again.
Is it possible that when computer boots my iptables rules are loaded and then some script/application loads these unwanted rules and overwrites mine?
If so, how I can find it?