[Bug 1410] STATELESS, rules with notrack into a map

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Thu Apr 16 10:02:47 CEST 2020


https://bugzilla.netfilter.org/show_bug.cgi?id=1410

--- Comment #2 from e.lohmann at mdex.de ---
Hi Pablo,

thanks for your answer. No, what I like to do in RAW is the same I do in NAT
Pre/Post.

dnat to ip daddr map { 1.1.1.1 : 2.2.2.2, 1.1.1.2 : 2.2.2.3 }

This reads as follows: if packets send _to_ IP address 1.1.1.1, the rewrite
destination address to 2.2.2.2 and so on.

snat to ip saddr map { 2.2.2.2 : 1.1.1.1, 2.2.2.3 : 1.1.1.2 }

This reads as follows: if packets came _from_ IP address 2.2.2.2, the rewrite
source address to 1.1.1.1 and so on.

With this mechanism we map public ip addresses to private and vice versa.
With 2 or more internet access points it's possible that traffic for an address
comes in on point A and left the system on point B. The STATEFULL Rules on
point B are NOT working if the IP packet is e.g. TCP, ICMP and NOT new.

What I try to accomplish in raw is, that this can be done without any conntrack
state for all packtes in raw.

Right now there is no way to create a map in raw and do address rewrite.

Regards, Eike

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20200416/2fee4172/attachment-0001.html>


More information about the netfilter-buglog mailing list