11-01-2020 02:38 AM
Dear Sir,
My IP-PBX ip is 192.168.10.85, I am using DDNS to reach my isp modem router. I forwarded all my traffic from isp router to cisco router isr 4331. Now I want to forward port 5060 to 192.168.10.85 from wan interface ge/0/0/1
also ports 6023 from wan interface to pbx 192.168.10.85 udp port 5060. And for RTP port ranging from udp port 10000 to 12000 to pbx 192.168.10.85. how to port forward 10000 to 12000 to 192.168.10.85. We cannot type 2000 command for between 10000 to 120000. My WAN interface getting ip from isp router through dhcp.
Solved! Go to Solution.
11-01-2020 10:49 AM - edited 11-01-2020 11:06 AM
Hello
@mdehsan230564 wrote:
Now I want to forward port 5060 to 192.168.10.85 from wan interface ge/0/0/1
also ports 6023 from wan interface to pbx 192.168.10.85 udp port 5060.
And for RTP port ranging from udp port 10000 to 12000 to pbx 192.168.10.85. how to port forward 10000 to 12000
Possibly try and test the following:
ip access-list standard 1
deny 192.168.10.85
permit 192.168.10.0
ip access-list extended 100
permit udp host 192.168.10.85 any range 10000 12000
route-map UDP-NAT permit 10
match ip address 100
ip nat inside source list 1 interface ge0/0/1
ip nat inside source static 192.168.10.85 5060 interface ge0/0/1 6023
ip nat inside source static 192.168.10.85 <isprtr> route-map UDP-NAT
or
ip nat inside source route-map UDP-NAT interface ge0/0/1
11-01-2020 07:46 AM
Hello,
are you talking about a UDP or TCP range ? For a TCP range, you can use a route map:
access-list 101 permit tcp any any range 10000 12000
!
route-map TCP_RANGE permit 10
match ip address 101
!
ip nat inside source static route-map TCP_RANGE interface GigabitEThernet0/0/1
If you try to NAT a UDP range, it used to be that there was no other way than to use one static entry per port, e.g.:
ip nat inside source static udp 192.168.10.85 5060 interface GigabitEthernet0/0/1 6023
However, somewhere in XE Gibraltar, the command described below was introduced:
11-01-2020 10:49 AM - edited 11-01-2020 11:06 AM
Hello
@mdehsan230564 wrote:
Now I want to forward port 5060 to 192.168.10.85 from wan interface ge/0/0/1
also ports 6023 from wan interface to pbx 192.168.10.85 udp port 5060.
And for RTP port ranging from udp port 10000 to 12000 to pbx 192.168.10.85. how to port forward 10000 to 12000
Possibly try and test the following:
ip access-list standard 1
deny 192.168.10.85
permit 192.168.10.0
ip access-list extended 100
permit udp host 192.168.10.85 any range 10000 12000
route-map UDP-NAT permit 10
match ip address 100
ip nat inside source list 1 interface ge0/0/1
ip nat inside source static 192.168.10.85 5060 interface ge0/0/1 6023
ip nat inside source static 192.168.10.85 <isprtr> route-map UDP-NAT
or
ip nat inside source route-map UDP-NAT interface ge0/0/1
11-02-2020 10:13 PM
Thank you sir it is working.
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