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!
Michael


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!
Michael