From: Panagiotis Plessas <plessas@iputils.de>
To: netfilter@vger.kernel.org
Subject: [NATHELPER] Dealing CGN Public 1:1 mode from ISP
Date: Thu, 28 Aug 2025 21:20:51 +0300 [thread overview]
Message-ID: <7c8d4b91-b304-49a1-9f69-20f40aa3094e@iputils.de> (raw)
Hi Folks,
I got a new FTTH connection from a relatively new ISP and I am having
trouble rewriting headers with nathelper.
I am not sure if this is the right mailing list to post this to, but
here it goes.
My ISP offers static IPv4 behind cgnat, where I am assigned a DHCP lease
in the 100.64.0.0/10 range, and they do their own NAT which just ends up
being a 1-1 port map of the external ports to my internal IP.
I know that if I SNAT to the public IP my packets get rewritten
correctly but my ISP firewall drops the packet, I know I have a static
ipv4 and incoming connections work and are on the right ports and the
same with outgoing connections. I also do know that they do not rewrite
the packets for me and I wouldnt trust them to do that.
I do not know which would be a good way to make it Rewrite the header to
my public IP, but keep the interface IP as source IP.
I am not sure if anyone else uses this configuration for public IPs
except my ISP, not sure how useful it would be to add the capability if
its not already included.
I would love some guidance on how to rewrite the contact headers in the
packets while maintaining the Source Address the same
reply other threads:[~2025-08-28 18:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7c8d4b91-b304-49a1-9f69-20f40aa3094e@iputils.de \
--to=plessas@iputils.de \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).