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
6
votes
1 answer

How do I configure NAT rules when using ASA IP-SLA when leveraging post-ASA-8.3 NAT syntax?

We are currently running ASA9 at a location with redundant ip connectivity. We'd love to configure ip sla so that internet access survives a single carrier outage. I'm aware of the ip sla commands, however when I've tried to prepopulate the…
Peter Grace
  • 3,456
  • 1
  • 27
  • 43
6
votes
3 answers

Mikrotik and NAT/Routing issue

I have basic NAT/Routing problem with Mikrotik RB750 that I've been unable to solve over the past days. From our ISP we have 26 IP addresses: 10.10.10.192/27, with 10.10.10.193 being the gateway and 10.10.10.194 the first available IP. What I need…
arul
  • 193
  • 1
  • 3
  • 7
6
votes
1 answer

Does hole punching require a UDP rendezvous server Or could it be a TCP one?

I'm trying to get my head wrap around this issue... I would like to connect two users... Those users are already connected to a TCP server, which is aware of both public ip and connection TCP port. I was hoping to use the existing connection to the…
TheSquad
  • 415
  • 1
  • 4
  • 10
6
votes
2 answers

Are DNAT and REDIRECT equivalent when applied to locally destined traffic?

In setting up our OpenStack environment, I ran into a problem that was preventing instances from contacting a server running on the host. The metadata service (which exposes an HTTP API) runs on port 8775 on the host, and the OpenStack networking…
larsks
  • 43,623
  • 14
  • 121
  • 180
6
votes
7 answers

Yum update not working on CentOS 6.2 minimal install

Note: This is my first question on the stack exchange network so please give mercy and provide guidance where needed. I have installed a CentOS 6.2 KVM guest and I am having problem getting yum to work. This is my first time working with CentOS so I…
Owen
  • 61
  • 1
  • 1
  • 3
6
votes
4 answers

What's the best way to accomodate multiple devices that all want to use the same fixed IP address into the same LAN?

Suppose I have an ethernet capable device that has a hard coded IP address in it. I have software that works with the device, which could be configured to work with practically any IP address for the device, but as stated, the device always comes…
JustJeff
  • 295
  • 3
  • 13
6
votes
2 answers

How do you get AWS VPC EC2 instances to be able to see the AWS APIs?

We're spinning up infrastructure inside of an AWS VPC via CloudFormation. We're using auto-scaling groups to bring up VPC-EC2 instances (so, we don't bring up instances directly; ASGs manage that). Inside of a PVC, EC2 instances only have a private…
Peter Mounce
  • 1,253
  • 5
  • 16
  • 29
6
votes
2 answers

Per-user routing doesn't seem to work

So, I'm trying to implement per-user routing so that I'm able to route all btpd torrent traffic over a VPN. Unfortunately, btpd does not currently allow you to bind to a specific IP address. :( I decided to try to follow this guide. Basically, you…
Nick
  • 63
  • 3
6
votes
1 answer

Setting Up NAT Hairpinning to Connect to Site from an Internal IP Address

We use a WordPress plugin that checks for broken links. It uses cURL to do this. External links work fine but internal ones, not so much. The connection is refused. Talked to our host about this and they said "we put the servers on an internal…
kingkool68
  • 243
  • 3
  • 10
6
votes
3 answers

IPv6 and NAT, routing to multiple ISPs

Currently I have a nice setup using private IPv4 address space and uplinks from two ISPs to the Internet. Thanks to NAT I can just take down one of the interfaces and the Internet access is still there. I've been thinking how to duplicate this…
Hubert Kario
  • 6,361
  • 6
  • 36
  • 65
6
votes
9 answers

How common is NAT within companies (one public ip address)?

How common is for companies to let many users share only one public ip address? I hope the answer is "not very common" since I'm developing software that depends on the ip number being pretty much unique.
Arne Evertsson
  • 185
  • 3
  • 13
6
votes
0 answers

IPv6: the end of NAT?

Possible Duplicate: Switch to IPv6 and get rid of NAT? Are you kidding? Is NAT going to disappear with IPv6? What about during the "transition" from IPv4-IPv6? How are we all going to access the internet then?
Arturo
  • 423
  • 3
  • 6
  • 20
6
votes
4 answers

Is it possible to ping through a NAT?

It it possible for a PC behind a NAT ping to a device that is on the outside of the NAT and get a successful response? (assuming the firewall permits it) This is a Cisco RV 120W router
700 Software
  • 2,233
  • 10
  • 49
  • 77
6
votes
3 answers

Any way to run a VPN server behind a nat that one has no control over?

I have a 4G router in a remote place to connect to the internet. My ISP does not give my router a public IP, instead it seems to put multiple sim cards into some private network behind a NAT (which I obviously have no control over). So it probably…
matthias_buehlmann
  • 488
  • 1
  • 6
  • 19
5
votes
7 answers

Multiple devices with one IPv6 to the Internet?

I want to connect several devices (in the LAN) to the Internet via a single public IPv6 address. Unfortunately I did not find a good way to do this. The only idea I had was to tunnel everything from the PF/OPNsense via OpenVPN to an Raspberry Pi or…
Hannes
  • 301
  • 4
  • 9