Jump to content

Look up your router at https://portforward.com/router.htm or google “port forward (insert router type here)”. Also google “port forward asterisk” to find out what ports are needed.

Looking to buy GTX690, other multi-GPU cards, or single-slot graphics cards: 

 

Link to comment
https://linustechtips.com/topic/1056559-forwarding-asterisk/#findComment-12499005
Share on other sites

Link to post
Share on other sites

Just now, brwainer said:

Look up your router at https://portforward.com/router.htm

Also google “port forward asterisk to find out what ports are needed.

I've already set up a lot of other ports on my router so that part if fine.

As far as googling it It was the first thing I've done but didn't find an option that worked 

Link to comment
https://linustechtips.com/topic/1056559-forwarding-asterisk/#findComment-12499007
Share on other sites

Link to post
Share on other sites

So you have a static IP? You aren't on a CG-Nat connection right? 

Have you set nat=yes and your external IP and localnet subnet in the sip.conf? 

 

A quick check shows you should have these ports forwarded in your router:

4569 UDP - IAX/2

5060 UDP - SIP 

10000 - 20000 UDP - SIP RTP Media

 

What is actually failing? Can you not setup calls? You cant connect to the server remotely? 

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | Asus RTX 4060 Dual OC | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO + 4 Additional Venturi 120mm Fans | 8 x 20TB Seagate Exos X22 | 4 x 16TB Seagate Exos X18 | 3 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Spoiler

NAS: Innovision 4U 24-bay chassis (12GB MiniHD SGIO Backplane) | Intel Core i9-10980xe | EVGA X299 FTW-K | EVGA RTX 2080Ti Super FTW3 | 128GB (8x16GB) Corsair Vengeance LPX 3200Mhz | DEEPCOOL PN1000M PSU| Noctua NH-D12L Chromax Black | 16 x 16TB Seagate Exos X18 | 2 x 2TB Samsung 990 Pro | 2 x 2TB Intel U.2 P4510 | LSI 9305-24i HBA

 

Link to comment
https://linustechtips.com/topic/1056559-forwarding-asterisk/#findComment-12499057
Share on other sites

Link to post
Share on other sites

In addition to what @Jarsky said, if you are having issues with calls dropping almost immediately, your router may have a "SIP Helper" or "SIP ALG". These are meant to help in situations where the SIP server and client aren't NAT aware. However with Asterisk, this type of help is actually detrimental and messes up the SIP headers. Whether your router has this feature and where to turn it off depends on the model and sometimes the firmware version.

Looking to buy GTX690, other multi-GPU cards, or single-slot graphics cards: 

 

Link to comment
https://linustechtips.com/topic/1056559-forwarding-asterisk/#findComment-12499064
Share on other sites

Link to post
Share on other sites

8 hours ago, Jarsky said:

So you have a static IP? You aren't on a CG-Nat connection right? 

Have you set nat=yes and your external IP and localnet subnet in the sip.conf? 

 

A quick check shows you should have these ports forwarded in your router:

4569 UDP - IAX/2

5060 UDP - SIP 

10000 - 20000 UDP - SIP RTP Media

 

What is actually failing? Can you not setup calls? You cant connect to the server remotely? 

I have a dynamic Ip and a ddns domain. I'm using the ISP provided modem/router with some other ports forwarded already. What has worked sometimes only outside my network was to forward ports 5060 to 5080 and 10000 to 60000. But only sometimes and it doesn't work inside my network.

Link to comment
https://linustechtips.com/topic/1056559-forwarding-asterisk/#findComment-12500009
Share on other sites

Link to post
Share on other sites

8 hours ago, brwainer said:

In addition to what @Jarsky said, if you are having issues with calls dropping almost immediately, your router may have a "SIP Helper" or "SIP ALG". These are meant to help in situations where the SIP server and client aren't NAT aware. However with Asterisk, this type of help is actually detrimental and messes up the SIP headers. Whether your router has this feature and where to turn it off depends on the model and sometimes the firmware version.

It's a normal ISP modem/router so I believe it doesn't have this feature

Link to comment
https://linustechtips.com/topic/1056559-forwarding-asterisk/#findComment-12500013
Share on other sites

Link to post
Share on other sites

22 minutes ago, IgorM said:

I have a dynamic Ip and a ddns domain. I'm using the ISP provided modem/router with some other ports forwarded already. What has worked sometimes only outside my network was to forward ports 5060 to 5080 and 10000 to 60000. But only sometimes and it doesn't work inside my network.

Sounds like asterisk configuration if it doesn't work inside your network? 

Router port forwarding has nothing to do with internal, its for firewall and nat translation from your external IP address to internal. 

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | Asus RTX 4060 Dual OC | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO + 4 Additional Venturi 120mm Fans | 8 x 20TB Seagate Exos X22 | 4 x 16TB Seagate Exos X18 | 3 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Spoiler

NAS: Innovision 4U 24-bay chassis (12GB MiniHD SGIO Backplane) | Intel Core i9-10980xe | EVGA X299 FTW-K | EVGA RTX 2080Ti Super FTW3 | 128GB (8x16GB) Corsair Vengeance LPX 3200Mhz | DEEPCOOL PN1000M PSU| Noctua NH-D12L Chromax Black | 16 x 16TB Seagate Exos X18 | 2 x 2TB Samsung 990 Pro | 2 x 2TB Intel U.2 P4510 | LSI 9305-24i HBA

 

Link to comment
https://linustechtips.com/topic/1056559-forwarding-asterisk/#findComment-12500040
Share on other sites

Link to post
Share on other sites

4 minutes ago, Jarsky said:

Sounds like asterisk configuration if it doesn't work inside your network? 

Router port forwarding has nothing to do with internal, its for firewall and nat translation from your external IP address to internal. 

No, it works inside my network when I use the asterisk server IP as a host on my sip client. The problem is when I use my ddns as a host, sometimes is works, and only via 4G. When I connect to my local network and use the ddns as a host on my sip client it doesn't work

Link to comment
https://linustechtips.com/topic/1056559-forwarding-asterisk/#findComment-12500047
Share on other sites

Link to post
Share on other sites

Does it work if you use the external IP? Is it just when you try to use the ddns that it fails? 

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | Asus RTX 4060 Dual OC | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO + 4 Additional Venturi 120mm Fans | 8 x 20TB Seagate Exos X22 | 4 x 16TB Seagate Exos X18 | 3 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Spoiler

NAS: Innovision 4U 24-bay chassis (12GB MiniHD SGIO Backplane) | Intel Core i9-10980xe | EVGA X299 FTW-K | EVGA RTX 2080Ti Super FTW3 | 128GB (8x16GB) Corsair Vengeance LPX 3200Mhz | DEEPCOOL PN1000M PSU| Noctua NH-D12L Chromax Black | 16 x 16TB Seagate Exos X18 | 2 x 2TB Samsung 990 Pro | 2 x 2TB Intel U.2 P4510 | LSI 9305-24i HBA

 

Link to comment
https://linustechtips.com/topic/1056559-forwarding-asterisk/#findComment-12500071
Share on other sites

Link to post
Share on other sites

Failing to connect from inside the network when using the external IP of your router (either directly or via a hostname e.g. DDNS) means that your router doesn't have hairpin NAT enabled, or doesn't have that feature at all. Try some of your other (non-Asterisk/SIP) port forwards to see whether they work when using the external IP/hostname from inside the network.

Looking to buy GTX690, other multi-GPU cards, or single-slot graphics cards: 

 

Link to comment
https://linustechtips.com/topic/1056559-forwarding-asterisk/#findComment-12500091
Share on other sites

Link to post
Share on other sites

4 minutes ago, brwainer said:

Failing to connect from inside the network when using the external IP of your router (either directly or via a hostname e.g. DDNS) means that your router doesn't have hairpin NAT enabled, or doesn't have that feature at all. Try some of your other (non-Asterisk/SIP) port forwards to see whether they work when using the external IP/hostname from inside the network.

Yes they have been working fine for months

Link to comment
https://linustechtips.com/topic/1056559-forwarding-asterisk/#findComment-12500096
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×