<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - STATELESS, rules with notrack into a map"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1410#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - STATELESS, rules with notrack into a map"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1410">bug 1410</a>
from <span class="vcard"><a class="email" href="mailto:e.lohmann@mdex.de" title="e.lohmann@mdex.de">e.lohmann@mdex.de</a>
</span></b>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>