Forrest logo
back to the iptables tool

iptables:ai:b93ed

Add a rule to allow incoming TCP traffic on port 4 for interface eth0
$ /sbin/iptables -A INPUT -p tcp -i eth0 --dport 4 -j ACCEPT
try on your machine

Add a rule to allow incoming TCP traffic on port 4 for interface eth0

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • /sbin/iptables -A INPUT -p tcp -i eth0 --dport 4 -j ACCEPT?
back to the iptables tool