Core 155 ALG removal: how to see if it's used at all?

Works this configuration with incoming calls e.g. 2 days later?

Sorry - I donā€™t really understand your question.
Or is it a sublime hidden suggestion?

The point is SIP use for each voice direction itā€™s own TCP/IP connection:

  • one from left client to the right client (or server)
  • one from right client (or server) to the left client.

That was the original reason for a SIP ALG. Itā€™s a protocol out of hell.
Some newer implementations can handle SIP on a not standard way but have often problems with timeouts for incoming calls. This is the reason for my question to you.

I asked a few days ago for a ALG with filter for internal IP addresses to handle this. Specially SIP clients shouldnā€™t change there IP addresses.

Still donā€™t understand what you are asking about.

of what, exactly?

Let me guess you mean ā€œtheirā€.
Configured with a fixed IP (orange! ; no DHCP),
my HW equipment does not even dare to dream about changing that ā€¦

To cut this short:

  • I tend to test longer than only seconds before posting ā€¦
  • And No, I still do not experience any problems at all.
    Otherwise, I would have withdrawn any falsified results.
1 Like

ADDENDUM (in a nutshell, AFAIU):

SIP (static IPs / ports) exploits SDP (static IPs / ports)
which initiates RTP (-> UDP ports) connections dynamically:

  • 1 UDP port (static) as base, plus
  • 1 UDP port (dynamic) for every connection being built up
    (always the next free even-numbered)

Esp. the latter ones are creating the sorrows:
In case you have identical dynamically assigned port ranges on different IPs,
that has been a NAT-confusing ā€˜problemā€™ being ā€˜solvedā€™ by STUN / SIP ALG / IAX etc.

As long as you observe above urgent recommendation to keep separate RTP ā†’ UDP port ranges being totally unique, plain NAT can very easily map itā€™s way from external Port_ID to the one and only internal IP having accessed that port number in itā€™s use.
Otherwise, without additional specialized header information / specialized evaluation,
it might have no indication available to tell arriving-with-identical-UDP-port packetā€™s destinations apart.

Perhaps the following (german) background information might help users,
esp. but not only of above mentioned devices:
[https://www.easybell.de/fileadmin/FAQ/nat-troubleshooting_ger.pdf]

HTH.
Thanks.

1 Like

NOTABENE:

Without ā€œkeeping ā€¦ uniqueā€,
if all youā€™ve got is the (external) [IP:PORT] tuple in the adress field of the arriving packetā€™s IP header
and PORT is ambiguous / used on multiple boxes / (internal) IP destinations,
you donā€™t have any chance at all to solve this
by setting up classical port forwarding rules in the first place:

  • To which of those boxes would you like to specify to re-direct this package then ? !

K I S S :slight_smile: !

This whole business ( TR-069 [!] ; STUN, ALG, ā€¦ ) has just one goal:

ā€œJust plug them in - and everything works.ā€ (Your ā€˜benevolentā€™ manufacturer / provider)

Yes, everything works - but not only for the (credulous / lazy) user :innocent: :

  • Eyes wide shut against all doors open :weary: .

@ms and @bbitsch are perfectly right:
In that case, you donā€™t need any (linux or bsd based) open-source firewall at all.

Thanks @pmueller for his article:
Security Announcement: Mitigating NAT Slipstreaming

Link: ā€œStrange Invitationā€ :wink:

3 Likes

Please donā€™t take statements out of context.

With SIP you have not only a connection from a client to a server.
You have additionally independent UDP connections from the server to the client. And this is behind a firewall a big problem.

If you work with standard SIP, Internet and a firewall in front of your LAN you have two possibilities to get this stable work.

  • Open a lot of high UDP ports (number and quantity varies from manufacturer to manufacturer and from device to device) from the Internet to the LAN SIP client on the firewall
    Here a description of 3CX:
    How to configure your Firewall Router in 3CX Phone System

  • Use an good ALG wich tracks outgoing SIP connections to let incoming SIP connections work.

To minimize the problems a ALG with filter for fixed LAN IP addresses would be the best. This was my request a few days before.

Although not running for more than 2 days yet (ehm),
I very much appreciate that -prepared and upgraded in the way described-
core 155 works flawlessly like a charm for me!

Many thanks @ms and the whole crew behind IPFire !

3 Likes