Article 58HEY help with iptables

help with iptables

by
bigpik
from LinuxQuestions.org on (#58HEY)
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=JR97b8TIta8:F6VdMKca-Js:F7zBnMy latest?i=JR97b8TIta8:F6VdMKca-Js:V_sGLiP latest?d=qj6IDK7rITs latest?i=JR97b8TIta8:F6VdMKca-Js:gIN9vFwJR97b8TIta8
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