How do I enable iptables port?

Duyên Trương

New member
How do I enable iptables port?
Answer
Individual commands method
  1. Run the following command to allow traffic on port 80: sudo iptables -I INPUT -p tcp -m tcp –dport 80 -j ACCEPT.
  2. Run the following command to allow traffic on port 443: sudo iptables -I INPUT -p tcp -m tcp –dport 443 -j ACCEPT.
 

Tìm kiếm

Back
Top