Add in linux input tcp state new tcp 443 accept
Here is the updated Linux iptables rule:
iptables -A INPUT -p tcp --dport 443 -m state --state NEW -j ACCEPT
Let me break it down:
iptables
: The command to manipulate the Linux firewall.-A INPUT
: Append a new rule to the INPUT chain (which handles incoming traffic).-p tcp
: Specify that we're only interested in TCP traffic.--dport 443
: Specify that we're only interested in traffic destined for port 443 (HTTPS).-m state
: Use thestate
module to examine the state of the connection.--state NEW
: Only allow new connections (i.e., not established or related connections).-j ACCEPT
: Jump to the ACCEPT target, which allows the traffic to pass through.
This rule allows new incoming TCP connections on port 443 (HTTPS) to be accepted.