Forrest logo
back to the iptables tool

iptables:ai:4c5e7

Allow incoming TCP and UDP traffic on port 22 (SSH) for interface eth0
$ /sbin/iptables -A INPUT -p tcp -i eth0 --dport 22 -j ACCEPT && /sbin/iptables -A INPUT -p udp -i eth0 --dport 22 -j ACCEPT
try on your machine

Allow incoming TCP and UDP traffic on port 22 (SSH) 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 22 -j ACCEPT /sbin/iptables -A INPUT -p udp -i eth0 --dport 22 -j ACCEPT?
back to the iptables tool