Page 1 of 1

IP Spoofing?

PostPosted: Fri Apr 24, 2020 9:12 am
by carpenox
Is there any way to setup either through the builtin VB-Firewall or iptables, or even using an outside script to program to conform to some sort of "IP spoofing". Now what I mean by this is to have a type of "filter" that will replace an IP, say an internal Ip number of "10.0.0.50" from an outgoing packet being sent to your "carrier" and replacing it with your external public IP. I would like to believe this would bypass the issue of communicating with your sip trunk through blocked firewalls or NAT. Just a thought...

Re: IP Spoofing?

PostPosted: Fri Apr 24, 2020 10:12 am
by williamconley
/etc/asterisk/sip.conf

externip=xx.xx.xx.xx

Re: IP Spoofing?

PostPosted: Fri Apr 24, 2020 12:39 pm
by carpenox
I have that set already

Re: IP Spoofing?

PostPosted: Fri Apr 24, 2020 1:29 pm
by williamconley
it sounds like you are not trying to alter the SIP packets (which is what externip does) but are instead attempting to resolve what you believe is a routing issue that is actually an asterisk SIP issue.

it is thus likely you need to set NAT in your soft phone instead of or in addition to your asterisk server. This is often a radio button for "i am out of the office" or something equally vague.