Article 58HB3 help with iptables

help with iptables

by
bigpik
from LinuxQuestions.org on (#58HB3)
Hello,

I need help with modifiying an iptables record.

I need to open port 22000, and I have this two lines on iptables:

ACCEPT udp -- anywhere anywhere state NEW udp dpts:20100:21999 /* HW ports */
ACCEPT tcp -- anywhere anywhere state NEW tcp dpts:20100:21999 /* HW ports */

As you can see ports are open from 20100 to 21999, I need open ports from 20100 to 22000. How can I modify these two lines, or add a new one to open the port 22000 both udp and tcp?

I need the command for debian Debian 4.19.

Thanks!
Michaellatest?d=yIl2AUoC8zA latest?i=3_OQwn0m-Cc:kVXc2RFEI9w:F7zBnMy latest?i=3_OQwn0m-Cc:kVXc2RFEI9w:V_sGLiP latest?d=qj6IDK7rITs latest?i=3_OQwn0m-Cc:kVXc2RFEI9w:gIN9vFw3_OQwn0m-Cc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments