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

iptables: Remove --to-ports from MASQUERADE rules #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

takahiro-ono
Copy link

Removed --to-ports from MASQUERADE rules of iptables to accept multiple sessions when using DNAT.

--to-ports is to be used to specify a port range for masquerading.
https://manpages.debian.org/bullseye/iptables/iptables-extensions.8.en.html#MASQUERADE

The latest implementation specifies only one port for --to-ports provided by fst_port, which means masquerading always tries to use the same port for its source port.
Therefore, another session to the same DNAT destination host will not be able to be established unless the previous one is closed.

When a gateway is placed in front of SDP Controller with DNAT, the gateway cannot foward connections from multiple SDP clients.

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

Successfully merging this pull request may close these issues.

1 participant