open port 10000 by iptables
hello
i want to open the port 10000 by using iptables.please help me to provide the iptables rule thank u |
Iptables is actually a collection of 3 or more filters or tables - INPUT, FORWARD and OUTPUT. For this, I'll assume it's an input to port 10000 you are looking for.
When you wish to specify a port number or range of ports, you must also specify a protocol - TCP, UDP, ICMP, ALL. so the command line might look something like this: iptables --append INPUT --protocol ALL --source-port 10000 --jump ACCEPT Which reads "append the INPUT filter to ACCEPT ALL protocols with packets with which are destined for port 10000" Hope this helps some :) jacks4u |
Oops! I'm sorry I must have been falf asleep! It seems that you must specify a protocol - TCP or UDP. so that the rule might look like this:
# iptables --append INPUT --protocol TCP --source-port 10000 --jump ACCEPT And if you need UDP it would be: # iptables --append INPUT --protocol UDP --source-port 10000 --jump ACCEPT But if you need both, then you would use both commands: # iptables --append INPUT --protocol TCP --source-port 10000 --jump ACCEPT # iptables --append INPUT --protocol UDP --source-port 10000 --jump ACCEPT |
All times are GMT -5. The time now is 01:45 PM. |