Re: iptables logging

From: Allen Kistler (ackistler@yahoo.com)
Date: 03/16/03


From: Allen Kistler <ackistler@yahoo.com>
Date: Sun, 16 Mar 2003 17:52:01 GMT

me wrote:
> Hi all,
>
> Being new to Linux and iptable, u will excuse the ignorance.
>
> I need to be able to log the activities of our users and their network
> access. Using iptable I NAT the inside ipaddress, but my log only shows the
> path of the inside addresses.
> EG if 192.1.168.25 makes a request to 205.169.56.35. I only see the log
> trace of 192.1.168.25 as src and 192.1.168.1 as dst, that being the
> firewall. can someone help ans show how I can trace the NATed ip address
> aswell

Usually when you NAT to hide internal addresses, you use MASQUERADE or
SNAT in the POSTROUTING chain of the nat table. If you perform the
logging in the FORWARD chain of the filter table, you would see
unaltered addresses.

In the situation you describe, you're taking a packet from your private
LAN destined for the public Internet and changing the public destination
address to be the firewall's private interface. If that's really the
case, logging is the least of your worries. You've chopped your private
users off from all Internet access by breaking the routing of the
packets. Or have I misunderstood?



Relevant Pages

  • Re: Please Help me to block the hackers
    ... It's typical to use a firewall and NAT with private IP address ranges. ... NAT device in order to reach the internet. ...
    (microsoft.public.security)
  • Re: [opensuse] Router? Splitter?...
    ... routable over the public internet, in a manner similar to the RFC 1918 IPv4 addresses. ... I understood the IPv6 addresses were designed to be non NATable. ... How would a private IPv6 address work thru an IPv6 router? ... However, there's no reason why you couldn't have a network using private addresses, without any consideration for accessing the internet. ...
    (SuSE)
  • Re: Private Address Spaces
    ... >>of a device which performs Network Address Translation (NAT). ... > The one assigned to me by my ISP, so that I may connect to THEIR network ... > and communicate, a PRIVATE ADDRESS SPACE. ... It is the same for Internet traffic. ...
    (alt.computer.security)
  • Re: Private Address Spaces
    ... >>of a device which performs Network Address Translation (NAT). ... > The one assigned to me by my ISP, so that I may connect to THEIR network ... > and communicate, a PRIVATE ADDRESS SPACE. ... It is the same for Internet traffic. ...
    (comp.os.linux.networking)
  • Re: Firewall and Router
    ... NAT is an address translation feature. ... not security issues. ... Because private addresses have no global meaning, ... > NOT routable on the WAN-side (internet) of the router, and vice versa, ...
    (microsoft.public.windowsxp.general)