Samuel Guntrum asked 1 year ago
Title : How to enable an incoming port in Linux Firewall?

Question :

How to enable an incoming port in Linux Firewall?

1 Answers
Ruchin SinhaRuchin Sinha Staff answered 12 months ago

Hi,
Linux firewall rules can be altered to block/allow incoming/outgoing connections to any linux machine. For eg. In order to all incoming connection to port 26204 below rule can be added to the linux firewall:

iptables -A INPUT -i eth0 -p tcp –dport 26204 -j ACCEPT

  • iptables -A INPUT: Append the new rule to the INPUT chain. For incoming connection request, this always has to be INPUT.
  • -i eth0: This refers to the input interface. For incoming connections, this always has to be ‘-i’.
  • -p tcp: Indicates that this is for TCP protocol.
  • –dport 26204: This refers to the destination port for the incoming connection.

Thanks,
Ruchin

Cubastion is among a very small number of specialized Siebel CRM Oracle Gold Partners in SME.