how to permanently disable iptables in ubuntu
First you need to check if the iptables are running:
iptables -L -n -v
If they are running, you can disable them using the following commands:
iptables -F
iptables-save
chmod -x /etc/network/if-up.d/iptables