07-15-2020 01:12 AM
Hello,
I have a PBX Asterisk server, which is behind NAT, a Cisco 1921 router.
I want to forward multiple ports to it but I found that it is not as easy as in linux using iptables.
I thought this command would be appropriate:
ip nat inside source static udp 172.23.16.20 10000-20000 78.xx.xx.117 10000-20000 extendable no-payload
But the problem is the port range is not supported. Is there any other way to accomplish this?
07-15-2020 03:35 AM
Hello,
I think for UDP, your only option is to use a single line for each port, unfortunately...
ip nat inside source static udp 172.23.16.20 10000 78.xx.xx.117 10000 extendable no-payload
ip nat inside source static udp 172.23.16.20 10001 78.xx.xx.117 10001 extendable no-payload
ip nat inside source static udp 172.23.16.20 10002 78.xx.xx.117 10002 extendable no-payload
.
.
.
07-15-2020 03:56 AM
10000 lines, uhm maybe it's time to change router? Does any new device supports multiple ports forwarding in one line?
07-15-2020 04:23 AM
Hello,
check the post below for a Python script you can use to generate the entries...
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide