- Joined
- Feb 19, 2013
- Messages
- 358
- Points
- 28
How can I start and stop iptables on Linux server? Also I want to auto start it on every reboot as well. Can any one guide me?
I don't understand this. I think it needs to check with tools out there, not on my VPS.to check if an IP address is listed or not, use 'iptables -L -n -v |grep IP'
Can you elaborate in details?In order to make sure you don't get locked outside, verify that the iptables policy on these chains is set to ACCEPT. If not, set it:
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
Sample outputs:sudo ufw status
Ubuntu start iptables service commandsudo ufw disable
Ubuntu reload / restart iptables service commandsudo ufw enable
sudo ufw reload
For autostart, I think most linux distros do this automatically for iptables but in CentOS 7 I know its sudo systemctl enable iptablesHow can I start and stop iptables on Linux server? Also I want to auto start it on every reboot as well. Can any one guide me?