<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Logging NAT?]]></title><description><![CDATA[<p dir="auto">Does anyone know of a way to log which private IPs are being NAT'd to public IPs?</p>
<p dir="auto">Right now, the only thing I can see is in the "Diagnostics: Show States", where it will show current private IPs, Public IPs they NAT to, and the destination.  However, those are only active NATs.  Is there a way to log these?  Also, is there a way to add a timestamp?</p>
<p dir="auto">There are times where we need to track down who a user was days earlier, and without the ability to correlate a public IP to a private IP, we cannot determine this info.</p>
<p dir="auto">I see that bitmask flag would be helpful for us, but we don't have enough public IPs available to use this option.</p>
<p dir="auto">Any help is appreciated,</p>
<p dir="auto">-Dan</p>
]]></description><link>https://forum.netgate.com/topic/39988/logging-nat</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 18:17:04 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/39988.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Dec 2011 14:20:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Logging NAT? on Mon, 19 Dec 2011 15:50:05 GMT]]></title><description><![CDATA[<p dir="auto">Netflow would be great, though it does not give you the actual translation, it does give you enough to track it down.</p>
<p dir="auto">There are some <a href="http://">patches floating around</a> to add something like this in to tcpdump to read pfsync, but there isn't anything stock that does it, and nothing for pfSense. Even with that patch though it doesn't log the destination, just the internal and external IPs and the ports involved.</p>
]]></description><link>https://forum.netgate.com/post/309250</link><guid isPermaLink="true">https://forum.netgate.com/post/309250</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Mon, 19 Dec 2011 15:50:05 GMT</pubDate></item><item><title><![CDATA[Reply to Logging NAT? on Thu, 15 Dec 2011 04:15:48 GMT]]></title><description><![CDATA[<p dir="auto">I just replied to this via email on a separate inquiry and figured I'd post it here too.</p>
<p dir="auto">There isn't a standard means of doing so. There are plenty of options<br />
for getting the information you need, depending on exactly how your<br />
NAT is setup. Most often, people just collect Netflow or similar<br />
details from their LAN IPs and can associate back any abuse reports<br />
that way. But that may or may not be very helpful entirely on its own<br />
like in scenarios where you're using a pool of public IPs and have no<br />
ability to predict what's going out where. It is important to be able<br />
to associate back to which internal host, as I presume you don't have<br />
a big enough public IP assignment to have one internal host per public<br />
IP. But that may not be enough in and of itself.</p>
<p dir="auto">Most universities will setup their outbound NAT in such a way that the<br />
public IP associates back to one particular internal subnet, or part<br />
of a particular internal subnet (a /25 or /26 of private IPs per<br />
public IP), and then can use Netflow records to figure out which host<br />
was doing whatever you got a report on. Having the NAT setup that way,<br />
and Netflow records on the LAN side, eliminates the need to log NAT<br />
translations (which becomes pretty pointless then anyway as logging<br />
that would just give you a number of hosts on that network that were<br />
using that IP, and giving you no ability to tell who was doing what at<br />
the time).</p>
<p dir="auto">It appears there is one possibility to log NAT within PF, but it's not<br />
pretty. We could give that a shot if it's a requirement. In my<br />
opinion, you're better off not bothering and following the above<br />
methodology for your outbound NAT as it lets you isolate any reports<br />
to a small portion of your internal network, which is the best that<br />
NAT logging is going to do for you anyway. You're going to have to<br />
have better abilities than that from there to track down the exact<br />
internal host, and Netflow is generally the tool of choice there once<br />
you can narrow it down to some portion of the internal network<br />
based on public IP.</p>
]]></description><link>https://forum.netgate.com/post/308779</link><guid isPermaLink="true">https://forum.netgate.com/post/308779</guid><dc:creator><![CDATA[cmb]]></dc:creator><pubDate>Thu, 15 Dec 2011 04:15:48 GMT</pubDate></item></channel></rss>