[Siproxd-users] Using siproxd to open a local sip server
Status: Beta
Brought to you by:
tries
From: Maximilian R. <mr...@xt...> - 2012-09-05 19:36:36
|
Hi, i want to use siproxd to open my Asterisk server to the public. The Asterisk server is behind a NAT and i cannot forward ports to it. But the Asterisk server is in an VPN together with an server that has an public ip address. So this is how i want my setup to be: Asterisk as SIP --- OpenVPN --- Proxy Server registrar | Internet | SIP Clients Is this posible with siproxd? I try to setup it with this configuration: [root@jupiter ~]# ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1 inet 94.249.134.17 netmask 255.255.255.0 broadcast 94.249.134.255 inet6 fe80::4042:8dff:feb0:2f42 prefixlen 64 scopeid 0x20<link> ether 42:42:8d:b0:2f:42 txqueuelen 1000 (Ethernet) RX packets 26757603 bytes 3029780057 (2.8 GiB) RX errors 0 dropped 32 overruns 0 frame 0 TX packets 18925600 bytes 47581287242 (44.3 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436 metric 1 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 1234740 bytes 186405699 (177.7 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1234740 bytes 186405699 (177.7 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 tap0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1 inet 10.8.0.1 netmask 255.255.0.0 broadcast 10.8.255.255 inet6 fe80::9810:f8ff:fe3c:67c6 prefixlen 64 scopeid 0x20<link> ether 9a:10:f8:3c:67:c6 txqueuelen 100 (Ethernet) RX packets 800165 bytes 165082677 (157.4 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 930041 bytes 150851885 (143.8 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [root@jupiter ~]# cat /etc/siproxd.conf if_inbound = eth0 if_outbound = tap0 host_outbound = 10.8.100.1 sip_listen_port = 5060 daemonize = 0 silence_log = 1 registration_file = /var/lib/siproxd/siproxd_registrations autosave_registrations = 300 pid_file = /var/run/siproxd/siproxd.pid rtp_proxy_enable = 1 rtp_port_low = 7070 rtp_port_high = 7089 rtp_timeout = 300 rtp_dscp = 46 sip_dscp = 0 rtp_input_dejitter = 0 rtp_output_dejitter = 0 tcp_timeout = 600 tcp_connect_timeout = 500 tcp_keepalive = 20 debug_level = 0x00000000 debug_port = 0 ua_string = Siproxd-UA plugindir=/usr/lib/siproxd/ load_plugin=plugin_logcall.la load_plugin=plugin_fix_bogus_via.la The output is in the attachment try1.log. I tryed it also with this configuration: [root@jupiter ~]# cat /etc/siproxd.conf if_inbound = eth0 if_outbound = tap0 sip_listen_port = 5060 daemonize = 0 silence_log = 1 registration_file = /var/lib/siproxd/siproxd_registrations autosave_registrations = 300 pid_file = /var/run/siproxd/siproxd.pid rtp_proxy_enable = 1 rtp_port_low = 7070 rtp_port_high = 7089 rtp_timeout = 300 rtp_dscp = 46 sip_dscp = 0 rtp_input_dejitter = 0 rtp_output_dejitter = 0 tcp_timeout = 600 tcp_connect_timeout = 500 tcp_keepalive = 20 debug_level = 0x00000000 debug_port = 0 ua_string = Siproxd-UA plugindir=/usr/lib/siproxd/ load_plugin=plugin_logcall.la load_plugin=plugin_fix_bogus_via.la The output is in the attachment try2.log. Thanks Maximilian Ruta |