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

NAT rules betweek 2 network interfaces (with iptables)

this is the current network that I have: UBUNTU: eth0: ip: 212.83.10.10 bcast: 212.83.10.10 netmask 255.255.255.255 gateway 62.x.x.x eth1: ip: 192.168.1.1 bcast: 192.168.1.255 netmask: 255.255.255.0 gateway…
0
votes
1 answer

Understand FTP; Active/Passive with Firewalls and NAT

I have some basic questions about FTP with firewalls and NAT, I hope someone could help me :) I split them up in different scenarios: Active FTP without NAT Setup: Server 1.2.3.4, Default ports; Client 1.2.3.5, ports: 3141 (cmd), 3142…
user197336
  • 1
  • 1
  • 1
0
votes
0 answers

Where can I find the range of IP addresses of my container OpenVZ

I'm looking for the "range of IP addresses of my container"... Where can I find those ? /etc/network/interfaces ? ifconfig ? I don't know and I can't find any answers... I need it for this tutorial thanks,
HydrUra
  • 145
  • 1
  • 2
  • 6
0
votes
1 answer

iptables forward rule not working in openwrt

I am trying to apply some iptables forwarding rules in openwrt. Here is my scenario - My server has two cards ath0 and br-lan. br-lan is connected to internet and ath0 to private network. The other machine in network also has ath0 that connects with…
Udit Gupta
  • 111
  • 1
  • 2
  • 6
0
votes
1 answer

Adding Multiple Interfaces to EC2 Ubuntu 12.04

I have a m1.medium Ubuntu 12.04 instance with two ENI's. I have a VPC setup with a private and public subnet. Private: 10.50.1.0/24 Public: 10.50.101.0/24 I initiated the instance on the private subnet. I configured a NAT instance and route all…
nocode
  • 168
  • 10
0
votes
0 answers

Cisco ASA, Windows Server 08, PPTP/GRE issues

I am at the end of my rope on this one. I am trying to simply forward pptp/gre through a Cisco ASA to my Windows server. Here is what I have done: Access…
Zak
  • 354
  • 4
  • 17
0
votes
1 answer

Linux NATing on my own IP address

I have a question regarding Linux NAT-ing on my own IP address. Suppose I have a network interface, say eth0. It is given an IP address of 192.168.0.2. Now I apply a NAT rule in Linux saying that: Any traffic with a source IP of 192.168.0.2 should…
Jin Teng
  • 3
  • 1
0
votes
1 answer

Issue with Nginx, http authentication and dynamic IP address

I am trying to get Nginx as a reverse proxy to authenticate users performing inbound http requests. My ISP provides me with a dynamic IP. I am not sure how to configure my ADSL router (NAT rules). I also want Nginx to listen to port 80 and redirect…
0
votes
2 answers

NAT Overloading not working, access-list not catching ips?

I have a GNS3 lab set up and I am trying to get NAT overloading working with a dynamic pool. Please see diagram The issue I am having is traffic is being routed correctly from PC1 to the ISP1 or ISP2. However the translation I believe is not…
Jim
  • 988
  • 7
  • 20
  • 33
0
votes
1 answer

Windows Server 2008 Routing / NAT - USB Wireless adapter not showing up

I have a multihomed system running Windows 2008 Server Enterprise, and I'm trying to share an Internet connection on a USB wifi adapter with the other networks attached to the system. To that end, I have installed DHCP, DNS and Routing and Remote…
Barry Kelly
  • 154
  • 2
  • 9
0
votes
1 answer

Iptables & NAT retain original destination IP?

I've got a webfacing server that I've chopped up into guests, one of which is running apache with some pretty basic virtualhost config. I have redirection working, but my virtualhost config needs the original destination to work out which set of…
docdead
  • 1
  • 1
0
votes
1 answer

ADSL Router - Access External IP internally

I have a problem when I'm doing an access using my DNS hosted at another server, which performs a redirect to my internal network. example: User attempting access to internal DNS: intranet.site.com: 8090 (182.12.1.1:8090> 192.168.1.151:80) My router…
0
votes
0 answers

making a software router for my private network

give me suggestion on this problem. I have 2 nic cards public ip (eth1) and private ip (eth2). now i have a linux system having centos 6.4. I made this system software router so can access internet on my client system. and it working properly. for…
Rahul
  • 93
  • 1
  • 1
  • 7
0
votes
1 answer

Change IP address of incoming packet with iptables

I have a server (S1) inside LAN, where a router is outside my control. On a server openvpn is installed and I can login with ssh to it. There is another server (S2) on the LAN, and I want to forward port on S2 to port S1. If I do sudo iptables -t…
galadog
  • 156
  • 6
0
votes
1 answer

Windows Server 2012, Hyper-V, how to use 1 IP for all VMs?

I am running Windows Server 2012 to host several VMs. However, our ISP has only assigned us two IP addresses, one of which is assigned to the host o/s (Windows Server 2012). How can I set this up so all the VMs share the same second IP address,…
Adam B
  • 311
  • 1
  • 3
  • 6