I got a problem. My ISP has given me access to connect my Asterisk server to their trunk.
The network setting I got are nothing I’ve ever seen from them.
Basically they gave me a static IP a netmask and gateway to set in my asterisk server. All is fine it works as it should.
But that gateway has no internet acess and I’m having trouble connecting my Asterisk to the internet. I cant run updates and I can’t connect with my SIP client over the internet, only locally to my local Asterisk IP (lets call it 192.168.0.154).
I have made a rule in my firewall to forward UDP port 5060 to 192.168.0.55 but I still can’t connect from the outside.
eth1 (no access to internet only to private network from my ISP):
Now I’ve tried changing default gateway on my asterisk, but then VOIP doesn’t work, but I can update the system. So whenever I wanna run an update I have to change the main gateway to 192.168.0.1 and then back. Also I can’t get an external extension to connect to matter what I do. I’m currently solving the issue with a VPN connection
Hey! Thanks for the fast replies, really great! Unfortunately, SkykingOH, I got this and it didn’t work :\
Error: an inet prefix is expected rather than "ADDRESS0:10.190.10.40".
Error: an inet prefix is expected rather than "NETMASK0:255.252.0.0".
Error: an inet prefix is expected rather than "GATEWAY0:10.188.0.1".
here you go, jfinstrom
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1002 0 0 eth0
link-local * 255.255.0.0 U 1003 0 0 eth1
10.188.0.0 * 255.252.0.0 U 0 0 0 eth1
default 10.188.0.1 0.0.0.0 UG 0 0 0 eth1
There’s an issue I noticed now with remote extensions. I can’t hear them, they can’t hear me.
The issue is in Asterisk SIP settings.
If I set the external IP to the IP provided by the ISP for my private network the local extensions work but the remote ones don’t.
If I set the external IP to the one that is actually connected to the internet, then the remote extensions work but I can’t make an outgoing call or receive them. I don’t hear anything from an outside person.
Now I’m guessing I would have to make a route that when I call from a remote extension would go from eth0 to 10.190.10.40. Although I’m really not sure how to do that…