Log on to the Linux machine using putty or some other application that allows access to the linux machine with the root user.
Type the following two commands:
# /etc/init.d/iptables save
# /etc/init.d/iptables stop
If you are doing this only temporarily then you can turn the firewall back on by typing:
# /etc/init.d/iptables start
To be turn off the firewall type in this command instead:
# chkconfig iptables off
Then reboot the machine.
To be turn on the firewall at boot type in this command:
# chkconfig iptables on
Then reboot the machine.