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

Get IP of the "requestor" when doing iptables NAT

I am doing NAT traffic forwarding using iptables (1.1.1.1 => 2.2.2.2) with the following commands: iptables -t nat -A PREROUTING -d 1.1.1.1 -j DNAT --to-destination 2.2.2.2 iptables -t nat -A POSTROUTING -d 2.2.2.2 -j SNAT --to 1.1.1.1 It works…
Daniele Testa
  • 661
  • 4
  • 10
  • 18
0
votes
1 answer

RRAS NAT Monitoring

I was wondering if I could monitor my RRAS (VPN) users TCP connection.I don't want to sniff data, however I need to log TCP port numbers and timestamps as well as corresponding users and local assigned IP addresses for each of them.
Lance
  • 1
0
votes
4 answers

Percentage of directly connected vs NAT'ed Internet workstations

I'm interested in knowing what portion of Internet connected workstations are directly connected to the Internet (that is, the workstation has a dedicated Internet-routable IP), compared to those that are connected via a firewall or NAT device. My…
Eric Smith
  • 259
  • 1
  • 4
  • 9
0
votes
1 answer

Natting / Port forwarding in cisco FWSM

I have requirement to PAT two different public IP [same port] to single load balancer local IP [VIP] in different ports using a Cisco FWSM. Ex: static(LB,outside) 10.0.0.1 www 192.168.100.1 8282 mask 255.255.255.255 static(LB,outside) 10.0.0.2 www…
0
votes
2 answers

Cisco ASA-5505 Port Forwarding

I have a Cisco ASA-5505 firewall, which is currently configured to share our internet connection and do NAT for my LAN, as well as forward port 443 to an internal machine. I need to forward port 2222 to a second internal machine, and I'm running…
CmdrMoozy
  • 123
  • 1
  • 5
0
votes
1 answer

ipsec (openswan) routing or dns issue with iphone

I got an established VPN connection, but either the routing or the resolving is not working. The configuration is taken from http://louwrentius.com/blog/2011/12/setting-up-a-vpn-with-your-iphone-using-l2tp,-ipsec-and-linux/ and…
Daniel W.
  • 1,609
  • 4
  • 26
  • 48
0
votes
1 answer

Configuring routing for network faults simulator

I'm trying to configure routing on my test machine to pass all traffic via the network errors simulator (WANem). WANem runs in a virtual machine, in the same network with internet gateway. It has NAT enabled (nat add eth0). The test machine (the…
user626528
  • 220
  • 2
  • 3
  • 12
0
votes
1 answer

pfense needs to be rebooted to effect a change in existing NAT

Using PFSense ver:2.0-RC1 (i386) When changing an existing NAT rule in pfsense I find that the rule doesn't work when: 1. the rule existed but with a change to its port number or destination LAN ip or both 2. mapping was done using pfsense load…
anup
  • 717
  • 4
  • 9
  • 19
0
votes
2 answers

DSL routing - NAT Virtual server - port forwarding - static ip address

My NAT virtual server - port forwarding has been working fine up to the past couple of weeks. All in a sudden, it doesn't work. Setting was done as shown on the link: I'm afraid it no longer works. I can access my web services in my LAN, by typing…
Lucas T
  • 101
  • 1
  • 2
0
votes
1 answer

Virtual pfSense Appliance on VMWare Host

I am having some issues setting up the WAN side of pfSense. I have ordered a dedicated box through a hosting service with ESXi loaded on it. Along with that I have 3 public IP addresses that will ultimately be going to the box. Currently one of the…
0
votes
1 answer

ldirectord NAT load balancing does not work with negotiate checks

I am using ldirectord for loadbalancing two HTTP servers. On the load balancer box i have the following network configuration: eth0 is used for internal purposes and does not take part in load balancing at all. On eth1 I have configured the public…
0
votes
1 answer

Server Hosted at Data center Internal IP address on hyper-v guest OS

I have a hosted server that’s located at a data center that I pay for monthly (www.liquidweb.com). The server is running windows server 2012 standard. The server is used to host a SQL database and a FTP server (no website). The server has an…
0
votes
1 answer

iptables nat taking 30 seconds to start redirecting

I am implementing a SIP Proxy that should be able to redirect all RTP traffic between two clients that can't reach each other. To implement that, I decided to manipulate the negotiated addresses in the SIP/SDP messages and use iptables rules to…
krusty
  • 1
  • 1
0
votes
2 answers

IP and Port Forwarding on ASA 5505

I have an ASA 5505 with outside network of public ips 95.123.234.64/26 and inside network of private ips 10.22.33.0/24. I would like to redirect any tcp traffic that hits 95.123.234.67:80 to a public ip 78.123.234.56:22. I don't know if it's…
James
  • 325
  • 2
  • 11
  • 22
0
votes
1 answer

NAT and find inside global address

To try to find the inside local address of a host, on a LAN with 1 Cisco wireless router, I run nping on one Windows7 host 192.168.1.138. C:\>nping --ec "public" -c 1 echo.nmap.org SENT (1.4430s) ICMP 192.168.1.138 > 74.207.244.221 Echo request…
T. Webster
  • 346
  • 3
  • 9
  • 20