Questions tagged [nat]

In computer networking, network address translation (NAT) is the process of modifying network address information in datagram (IP) packet headers while in transit across a traffic routing device for the purpose of remapping one IP address space into another.

Most often today, NAT is used in conjunction with network masquerading (or IP masquerading) which is a technique that hides an entire IP address space, usually consisting of private network IP addresses (RFC 1918), behind a single IP address in another, often public address space. This mechanism is implemented in a routing device that uses stateful translation tables to map the "hidden" addresses into a single IP address and readdresses the outgoing Internet Protocol (IP) packets on exit so that they appear to originate from the router. In the reverse communications path, responses are mapped back to the originating IP address using the rules ("state") stored in the translation tables. The translation table rules established in this fashion are flushed after a short period unless new traffic refreshes their state.

As described, the method enables communication through the router only when the conversation originates in the masqueraded network, since this establishes the translation tables. For example, a web browser in the masqueraded network can browse a website outside, but a web browser outside could not browse a web site in the masqueraded network. However, most NAT devices today allow the network administrator to configure translation table entries for permanent use. This feature is often referred to as "static NAT" or port forwarding and allows traffic originating in the "outside" network to reach designated hosts in the masqueraded network.

Because of the popularity of this technique (see below), the term NAT has become virtually synonymous with the method of IP masquerading.

Network address translation has serious drawbacks on the quality of Internet connectivity and requires careful attention to the details of its implementation. As a result, many methods have been devised to alleviate the issues encountered. See the article on NAT traversal.

2002 questions
0
votes
2 answers

Iptables MASQUERADE: What is the advantage/disadvantage between these two commands?

What is the advantage/disadvantage between below 2 commands: iptables -t nat -A POSTROUTING -o eth0 -s 10.0.0.0/16 -j MASQUERADE AND iptables -t nat -A POSTROUTING -j MASQUERADE Some Background why this question has arisen: I had raised a question…
slayedbylucifer
  • 504
  • 3
  • 7
  • 24
0
votes
2 answers

IPtables: Forward port to another host is not working

I am trying out something so this is my test setup: Setup: I have AWS VPC with a public and private subnet. I have a host in public subnet with a public IP address (say Host A) I have a host in private subnet running nginx on port 80 (Say host B…
slayedbylucifer
  • 504
  • 3
  • 7
  • 24
0
votes
1 answer

Can't see Webserver from LAN - NAT Issue?

I just got a ZyXEL USG50 and it's more complex than I'm used to. Traffic from WAN is going to my websever as desired thanks to a firewall and NAT rule. The problem is, when trying to request a domain from inside the LAN, the browser times out and…
0
votes
1 answer

Cisco ASA 5505 - NAT or Port Forward for SIP / VoIP ver 8.4

I just had an NEC PBX installed that lets me use SIP trunks for VoIP services, My gateway is a Cisco ASA 5505 running 8.4 and I only have one public/static IP Addresses. So far, my trunks are registering and I can make outgoing calls and everything…
user72593
  • 423
  • 2
  • 6
  • 14
0
votes
1 answer

Apache2 server (behind Zyxel USG 100 NAT/Firewall) with vhost does not log real clients ip addresses

SOLVED To allow the Zyxel USG 100's NAT to forward untouched packets to my web server i edited the policy route of the Zyxel. Zyxel -> Configuration -> Network ->Routing -> Policy Route I just edit the "Address Translation" option from…
Matt
  • 103
  • 2
0
votes
2 answers

IIS and Apache hosting together

I know similar questions have been asked already, but mines a little more unique. I work for an internet/networking company. We build and host websites, as well as provide internet and network setups for businesses. I want to know if it's possible…
0
votes
3 answers

INPUT, OUTPUT or Forward Chain

I'm using a linux box as a router: The Box has 2 public ips and local ip, i'm using natting to allow local users to access the web. When a local user access the web, source natting happens here, the packets going through the public interface are…
MohyedeenN
  • 1,063
  • 1
  • 12
  • 15
0
votes
2 answers

Accept incoming connection from a second gateway

I searched a lot about the question, but can't find solution for my situation. We've got a Windows 2003 server that runs Advantage Database Server (ADS) through which our site connects to our accounting system. The site connects to static IP…
pablomedok
  • 133
  • 1
  • 11
0
votes
1 answer

iptables alternative for nat in windows

When setting up a comms server I usually use iptables in linux to forward any incoming connections on a particular port to another server, e.g. Chain PREROUTING (policy ACCEPT) target prot opt source destination DNAT …
James
  • 325
  • 2
  • 11
  • 22
0
votes
0 answers

Multiple routes and gateways with NAT

My setup is a VM host with two network interfaces where I want to use one as private/internal and the other one as public (which will get a public address on the host), where all the NAT magic to the guest machines will happen. Two interfaces means…
Alex
  • 538
  • 1
  • 4
  • 15
0
votes
3 answers

CentOS masqueraded network with iptables clients not connecting: Unable to ping

I'm a novice sysadmin working on a system with a CentOS server masquerading traffic with client machines also running CentOS. Something with the tables got messed up and my clients no longer have internet connectivity. I'm trying to get ping…
Brandon Amos
  • 103
  • 3
0
votes
1 answer

How to bind traffic of each NAT client to a external IP address?

I have a NAT router with 2 IP addresses, lets say 111.111.111.111 and 222.222.222.222 associated with the interfaces eth0 and eth0:1 respectively. I have two servers that connect to this NAT gateway through the interface tap0 (OpenVPN clients), with…
Havenard
  • 314
  • 3
  • 14
0
votes
2 answers

Cisco ASA/PIX Can't Access Internal Resources Behind NAT

My servers are natted 1:1 as follows, i.i.i.i maps to x.x.x.x where i is an internal IP, and x is the external IP. From an i.i.i.i machine, I cannot access x.x.x.x resources... What special configuration might be necessary to allow looping out, then…
Novox
  • 474
  • 1
  • 9
  • 27
0
votes
1 answer

How to setup reverse NAT using Windows Server 2003

We have recently installed 2 IP Video Conferencing kit, which currently we only used internally with laptops connected to a VPN connection. However we have started using it more extensively and require some method of port forwarding. We currently…
stead1984
  • 577
  • 8
  • 16
  • 32
0
votes
0 answers

Windows Server 2012 R2, multiple Hyper-V Virtual Network Switches for multiple VMs

I want to configure something like this: I have one NIC, and have been given 3 IPs by datacenter, on my server which is running WS2012R2, with 10 VMs on hyper-v. Windows Server 2012 R2 (host) one dedicated IP address. Second IP address should be…
Adam B
  • 311
  • 1
  • 3
  • 6