Setting source IP on outgoing packets

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
vinylmike
Posts: 37
Joined: Thu Dec 13, 2012 12:25 pm
Location: Guilford, CT

Setting source IP on outgoing packets

Post by vinylmike »

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.
taitan
Posts: 237
Joined: Sat Mar 15, 2008 10:39 pm

Post by taitan »

Use Linux's "route" command.
Emeryer
Posts: 1
Joined: Tue Aug 27, 2019 11:18 pm
Location: california

Post by Emeryer »

taitan wrote:Use Linux's "route" command.
That works!
Post Reply