Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected firewall impact - Fanvil X6U #5

Closed
chris021 opened this issue Feb 3, 2024 · 2 comments
Closed

Unexpected firewall impact - Fanvil X6U #5

chris021 opened this issue Feb 3, 2024 · 2 comments
Assignees

Comments

@chris021
Copy link

chris021 commented Feb 3, 2024

After much trial and error, I have found that the Fanvil X6U cannot make outbound calls (receives fine) if the nftables firewall is running.

pbx/resources/etc/nftables.conf

I have tracked down the exact line that the Fanvil takes exception to:
ip frag-off & 0x1fff != 0 counter drop

With this line commented out the Fanvil works correctly. I will continue to explore this issue by taking a packet capture from the Fanvil while its making a call to see what is happening.

@AdrianFretwell
Copy link
Collaborator

Hi Chris,
This rule blocks fragmented packets. The rule is designed to mitigate DDOS by UDP fragmentation floods. The IP stack has to buffer fragments until all have arrived, which can quickly overrun the buffer in an attack situation. There are, however, many more different types of attack, so it will be safe for you to remove this rule.

It may be better to fix the fragmentation problem at the phone. The probable reason why inbound works and outbound does not is because following the initial INVITE message FreeSWITCH will respond with a "407 Proxy Authentication Required". The phone now re-sends the INVITE but with a Proxy-Authorization header, this additional header can be enough to exceed your MTU and cause packet fragmentation.

You may find that removing unused or unneeded codecs from the phone solves the problem. In the UK, I tend to only enable G729, G722 and PCMA.

@AdrianFretwell AdrianFretwell self-assigned this Feb 4, 2024
@AdrianFretwell
Copy link
Collaborator

No further activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants