How To Check Iptables In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. To view the current iptables rules, run the following command:
sudo iptables -L
2. To view the current iptables rules in numeric format, run the following command:
sudo iptables -n -L
3. To view the current iptables rules in verbose format, run the following command:
sudo iptables -v -L
4. To view the current iptables rules in a more detailed format, run the following command:
sudo iptables -v -x -n -L