sipcapture / homer-app

HOMER 7.x Front-End and API Server
http://sipcapture.io
GNU Affero General Public License v3.0
204 stars 79 forks source link

Using lua script to change srcIp or dstIp #371

Closed flantel closed 4 years ago

flantel commented 4 years ago

Hi,

We have some systems on AWS, and the capture will always show the ptivateAWS IP rather than the external public IP. I would like to automatically change this to the external IP only.

I know I can use a lua scriptto do this, but I am not sure of the syntax to do so.

Basically I want to do:

if srcIp == 'xxx.xxx.xxx.xxx'
    srcIp = 'yyy.yyy.yyy.yyy'
end

...however, I don'tknwo whether this needs to be done in checkRAW of checkSIP nor what prefix.srcIp I need to use.

Thanks.

flantel commented 4 years ago

Realized this should be in the heplify-server issues. Closing this.