Sometimes we are not able to access the website, or the server, for that, we need to whitelist their IP address manually with the following command: Pkts bytes target prot opt in out source destinationĬhain FORWARD (policy ACCEPT 0 packets, 0 bytes)Ĭhain OUTPUT (policy ACCEPT 0 packets, 0 bytes) You will receive the following output: :~# iptables -nvLĬhain INPUT (policy ACCEPT 0 packets, 0 bytes) Since, we installed the iptables service and did not add any rules, checking the iptables rules should give you empty output. Once, we have installed the iptable service and we have not added any rules, Read out the iptables rules should give you empty output. Since the iptables service is installed, we need to proceed with the basic iptables rules in the next paragraphs. Use the following command to install the iptables service: sudo apt-get install iptables -y Once the system has been updated, we will illustrate the fundamental iptables commands in Linux.
0 Comments
Leave a Reply. |