Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Setting source IP on outgoing packets
Author Message
vinylmike
Brekeke Addict


Joined: 13 Dec 2012
Posts: 29
Location: Guilford, CT

PostPosted: Thu Jan 05, 2017 2:44 pm    Post subject: Setting source IP on outgoing packets Reply with quote

1. Brekeke Product Name and Version:
Brekeke SIP Server, Version 3.4.7.2, Advanced

2. Java version:
1.8.0_92

3. OS type and the version:
Red Hat Enterprise Linux Server release 6.8 (Santiago)

4. UA (phone), gateway or other hardware/software involved:
Voxeo Prophecy

5. Your problem:

Our Brekeke SIP Server has several network interfaces.

How would I tell the server to set a particular source IP for outgoing traffic to some gateways, and a different source IP for other gateways?

i.e. for gateway 1 traffic must come out the proxy with source IP 1.1.1.1 (ie not a private, RFC1918 IP) (while looking at outgoing traffic with tcpdump), and for gateway 2 from Y.Y.Y.Y (again not a private IP).

Tried setting $ifdst to the source IP in the dial plan but tcpdump still showed traffic going out of the internal LAN IP (10.x.x.x) of the proxy.
Back to top
View user's profile
taitan
Brekeke Master Guru


Joined: 15 Mar 2008
Posts: 237

PostPosted: Fri Jan 06, 2017 12:05 pm    Post subject: Reply with quote

Use Linux's "route" command.
Back to top
View user's profile
Emeryer
Brekeke Newbie


Joined: 27 Aug 2019
Posts: 1
Location: california

PostPosted: Tue Aug 27, 2019 11:38 pm    Post subject: Reply with quote

taitan wrote:
Use Linux's "route" command.


That works!
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1