Questions tagged [nat]

Network Address Translation, a technology used to translate a private IP address into a public IP.

Filter by
Sorted by
Tagged with
101 votes
9 answers
401k views

How to do networking between virtual machines in VirtualBox?

I have two virtual machines in VirtualBox. I would like to do networking between them. For the moment I have the default configuration on both, but they seem to have the same IP-address 10.0.2.15. I ...
Jonas's user avatar
  • 27.6k
31 votes
9 answers
69k views

Is it possible to host a web server from behind a NAT

My PC is behind a NAT router that has a public IP address. If I want to host a website then I believe I need a domain name which I can purchase from some site which would pledge to resolve all DNS ...
Rohit Banga's user avatar
  • 2,434
25 votes
6 answers
87k views

Set up a web server behind a Carrier Grade NAT

I was trying to set up a small home server. I use dynamic IP adress. My router's wan adress is like this 100.70.81.xxx and my public ip is 81.213.177.xx I made port forwarding in my router. www, ...
user avatar
19 votes
2 answers
23k views

How does the router know which device to send packets to? [duplicate]

my question does not concern how it moves through the internet, but how it moves through the router to a certain device. All devices connected to a router in a home network have the same external IP. ...
user avatar
16 votes
4 answers
10k views

Is my router's IP address really public?

I have a common home network consisting of a wireless router with many devices connected to it. I understand that because of NAT, all devices attached to the router connect to the outside of it via ...
MPA95's user avatar
  • 271
2 votes
1 answer
3k views

Connecting to my own network via external IP

Even though I have seen and read quite a few similar Q's I was still unable to understand what is required for me to be able to do this. I have an internal network. One of the machines is a web ...
epeleg's user avatar
  • 569
45 votes
5 answers
54k views

SSH access to office host behind NAT router

I would like to access the ssh port of my office linux host from home. Unfortunately the host is located behind a NAT router. So, the IP address is not publicly available. There is however access to ...
ritter's user avatar
  • 735
13 votes
2 answers
20k views

how to access samba on a guest Linux behind the VirtualBox NAT?

On my laptop, I'm running Ubuntu 9.10 under WinXP using VirtualBox 3.1.2. I want a setup where: The guest can freely access the internet. The host can access the guest files via Samba. The setup ...
noamtm's user avatar
  • 367
8 votes
7 answers
34k views

How can I make my home PC a web server?

I am running Apache Tomcat on my PC. My PC is connected to a router in my house and the router is connected to my ISP. Now I want to run a server on my PC so that my friend can view my site hosted on ...
user avatar
4 votes
1 answer
9k views

Accessing a website via the webservers public IP from a PC within the same LAN

If two machines reside on the same LAN (a PC and a Webserver) why is it necessary to enable ‘NAT loopback’ on the router in order for the PC to access the website hosted on the webserver using the ...
FitzRoy's user avatar
  • 111
45 votes
2 answers
51k views

How does a NAT server forward ping ICMP echo reply packets to users?

NAT uses an IP address port number combination to hash the outgoing requests. Since ping requests consist of ICMP echo request packets, they do not have any associated port number. How does a NAT ...
Rohit Banga's user avatar
  • 2,434
29 votes
5 answers
88k views

How is double NAT bad practically?

As the ISP-provided modem was generating pretty weak WiFi signal I've disabled its WiFi function, bought an Apple AirPort Extreme and connected it's WAN port to the modem. Now everything works just ...
Ivan's user avatar
  • 7,523
18 votes
3 answers
36k views

Virtualbox -> Can't add 2nd adapter to network for VM

I have a Debian Wheezy VM running in virtual box with the 1st adapter being NAT. However I want to also add a Host-only network but I can't add 2nd adapter to network for VM, it is grayed out. Any ...
Nikos's user avatar
  • 630
15 votes
8 answers
115k views

How to get my external IP address (over NAT) from the Windows command-line? [duplicate]

The Windows "ipconfig" command can only show me the parameters from the Ethernet interfaces from my machine (even with the ipconfig /all argument). It can show detailed information about the interface,...
Diogo's user avatar
  • 30.5k
4 votes
3 answers
2k views

How does Http server distinguish between computers behind a router

HTTP servers usually operate at port 80. Yet NAT routers as most are these days assign port to outgoing requests so they would know when request is returned that which computer connected to it, it's ...
Muhammad Umer's user avatar
1 vote
1 answer
262 views

What is Carrier Grade Nat (in human readable language!)?

I googled Carrier Grade NAT (CGN) and read some articles on Wikipedia and other websites, but I did not understand its difference with traditional CPE-NAT. Are CGN and CPE-NAT two totally different ...
Alex Salig's user avatar
22 votes
3 answers
16k views

NAT and UDP replies

Sanity check please. If I send UDP packets from Machine A behind a NAT to Machine B's port N, where Machine B is outside the NAT (elsewhere on the Internet), can I reasonably expect that NAT to pass ...
tomfanning's user avatar
15 votes
1 answer
21k views

How would I test to see if I'm behind carrier grade or regular NAT?

Inspired by the comments to this answer and its question. Some of my local ISPs are using carrier grade nat, and as someone who occasionally runs his own servers, remote support, it would be highly ...
Journeyman Geek's user avatar
  • 129k
12 votes
4 answers
9k views

SSH connection between two behind-nat computers through third public-ip computer

I have a computer at home (home-server) that runs irssi, rtorrent etc. My ISP is blocking every traffic from outside (dumb, I know, but it's the only ISP I can have). I want to be able to log in into ...
seler's user avatar
  • 353
9 votes
6 answers
14k views

how to ssh two computers behind NAT and Firewall, without third computer

I am trying to ssh into my Linux box at home. My home is a dorm-style environment - NAT and Firewall with personal laptop running Arch Linux. My work is corporate style Windows 7 - NAT and proxy ...
user1026169's user avatar
8 votes
1 answer
9k views

Hairpinning in Linux

I have a router in which I installed a Linux system. I want my router to support NAT hairpinning. Does a such feature exists in Kernel Linux? If yes how to activate it? Are there a patch to apply it ...
Mohamed KALLEL's user avatar
7 votes
2 answers
16k views

Mikrotik NAT halves WAN speed

I have a 951G-2HnD as a router. All connections are via ethernet cables. I observe the following: When I connect to the ISP via router, speed is about 270 Mbit/s, while ISP claims my plan has 500 ...
Uprooted's user avatar
  • 187
5 votes
1 answer
2k views

Is it possible to make P2P applications work behind CGNATs?

I've been thinking about making a pure-blooded P2P communication system, without any servers in the middle. Made a prototype on sockets that works locally. But then it turned out that my provider ...
almarc's user avatar
  • 51
4 votes
3 answers
7k views

How to communicate with devices that have the same IP address

I have a situation where I need to communicate via telnet to multiple devices that have the same IP address. The context is that I am writing a "final test" of devices in a manufacturing facility. ...
Angelo's user avatar
  • 1,083
3 votes
1 answer
10k views

Forwarding ports after carrier grade NAT?

I cant forward ports anymore to my Xbox cause turns out my ISP recently refreshed IPs and all their IPs are public now and they say you can only forward ports if I request a static IP for a large ...
jeffmangum's user avatar
1 vote
2 answers
491 views

Would NAT be eliminated transformed in ipv6?

NAT is a wonderful concept used in ipv4. It is the major reason for the existence on internet, in my concerns. There are no networks in the world that doesn't work without employing NAT. All I seek ...
Guest's user avatar
  • 11
1 vote
1 answer
1k views

Why SNAT works by setting one rules in tables without the rules in PREROUTING chain?

I have some questions about SNAT with iptables. Assume there is one router who plays DHCP server for assign private IPs in my LAN and NAT for the hosts in my LAN can access the public internet. The ...
Haohao Chang's user avatar
1 vote
1 answer
2k views

conntrack delete does not stop runnig copy of big file

I have a router with nat port forwarding configured. I launched a http copy of big file via the nat. The http server is hosted on the LAN PC which contains the big file to download. I launched the ...
Mohamed KALLEL's user avatar
1 vote
2 answers
2k views

Two public IPs behind a cable-modem using D-Link DIR-300

I have a cable-modem connection to the internet and I bought a router in order to share my internet connection betwen my laptop and my PC. The router I bought is D-Link DIR-300. The first weird thing ...
GetFree's user avatar
  • 3,130
-1 votes
2 answers
7k views

How does Network Address Translation (NAT) works on a home router? [duplicate]

I have three computers connected to a router at home. I am sure my router has only one address. When the packet arrives from computer 1, the source IP is translated to the router IP address. Let's ...
dexterous's user avatar
  • 221
39 votes
22 answers
281k views

No internet connection in Virtual Machine on selecting NAT in VMWare workstation

I'm facing this strange problem from yesterday where if I select NAT as the network adapter in VMWare, I'm not getting any internet connection in the VM. I have a requirement where I have to have the ...
Amogh Natu's user avatar
26 votes
1 answer
85k views

NAT vs. port forwarding [duplicate]

Possible Duplicate: What is port forwarding and what is it used for? What is the difference between NAT and port forwarding? Are they two different names for the same thing? What would be a short ...
Bunkai.Satori's user avatar
21 votes
2 answers
62k views

Port Forwarding from inner network to inner network (hairpin NAT)

I've successfully setup a port forwarding on a Mikrotik router that translates every request going to WAN ip address on port 8844 (let's say: 20.20.20.22:8844) of mikrotik to the local ip address and ...
Joudicek Jouda's user avatar
20 votes
2 answers
8k views

How will home networks work in the IPv6 world?

Right now, I have a home network setup behind a Netgear router. That router has a public IP address I get from Comcast. I also have a computer setup on my home network running Linux that runs a DHCP ...
Mike Christensen's user avatar
19 votes
8 answers
51k views

ssh through a router without port forwarding

I have a linux server, and I want to put it in a home network behind a router. I need to ssh to this server sometime from outside, but I don't want to set up port forwarding because I don't have ...
Jiechao Li's user avatar
18 votes
2 answers
66k views

Windows 10 - NAT - Port forwarding & IP masquerade

I'm looking for a way to get iptables functionality in windows 10. I enabled IP routing and I need to forward tcp data to another host (port 8080) and then forward his response while masquerading IP. ...
Orestis P.'s user avatar
17 votes
5 answers
8k views

Does NAT provide security?

I'm following discussions about the IPv4->IPv6 transition, and IPv6 doesn't seem to like NAT at all. I've always thought that NAT was helpful in v4 for some security, I know it doesn't really hide ...
Neth's user avatar
  • 565
10 votes
9 answers
20k views

VMware Player loses internet connectivity

Periodically, the internet simply stops working in my virtual machine, and the only way I can get it working again is to restart the host computer. Since I use the virtual machine specifically for ...
Martha's user avatar
  • 930
8 votes
4 answers
47k views

Is it possible to get the NAT Ip Address?

is it possible to get my nat ip address across the Internet? I know I can see my ISP address but not my internal address. I remember seeing this done one time but I am thinking it was a java applet ...
johnny's user avatar
  • 2,003
8 votes
2 answers
965 views

What do the various IP addresses mean?

When I visit a website (e.g. whatismyip.com) it states that my IP address is 13.151.xxx.xxx. However, when I run ipconfig, my IP address is 192.168.0.xx for IPv4 and my DNS adress is 202.xx.xxx.xx. ...
KMC's user avatar
  • 1,989
7 votes
3 answers
17k views

Connecting to VirtualBox guest (ubuntu) from host (osx) via NAT?

I have a VirtualBox guest (running Ubuntu) configured with NAT through my host laptop (running OSX). It was my understanding that with NAT configured, I could access the guest from the host (w/o any ...
EvanK's user avatar
  • 313
7 votes
1 answer
9k views

How does Bittorrent work in peers behind Carrier-grade NATs

When I google "whats my IP" it says, something like "112.134.x.y". But when I go to the router configurations and under WAN IP it says "100.68.a.b"(As far as I know it's a routable IP). So, I must be ...
Lazzy's user avatar
  • 73
7 votes
2 answers
12k views

Changing the default network VirtualBox assigns to VMs attached to NAT

By default, VirtualBox assigns a 10.0.2.0/24 address to a VM attached to NAT. Is it possible to change NAT to a different network? This is not a duplicate question. I know it is possible to define a ...
Ben's user avatar
  • 224
5 votes
2 answers
5k views

When multiple client hosts are behind a NAT sharing one 'external' IP address, how do multiple clients to connect concurrently to the same address?

According to a related post it is not possible for port forwarding to concurrently serve multiple client hosts that are using the same internet service/application/protocol(eg. FTP, HTTP, etc) as each ...
MShakeG's user avatar
  • 317
5 votes
3 answers
7k views

VirtualBox NAT port forwarding on Ubuntu 64?

I have an Ubuntu 9.04 desktop 64-bit guest OS running on an Ubuntu 9.04 desktop 64-bit host OS (yes, the same OS). I'd like to run a web server on the guest and make it accessible through NAT on the ...
Greg Mattes's user avatar
  • 3,382
4 votes
1 answer
3k views

How to do IP masquerading on MacOS 10.14+?

I am looking for the equivalent Macos command to the linux: sudo iptables -t nat -A POSTROUTING -o en0 -j MASQUERADE The reason i want to do this is I have a VPN that has the default route, but i ...
horseyguy's user avatar
  • 269
4 votes
1 answer
306 views

How to obtain the proxy resolver configuration of a Virtualbox VM

Virtualbox provides two configuration flags to modify the DNS behavior of the NAT engine for a virtual machine: VBoxManage modifyvm "VM name" --natdnsproxy1 on VBoxManage modifyvm "VM name" --...
fons's user avatar
  • 666
4 votes
1 answer
2k views

How does my computer's firewall work? Like inbound rule, outbound rule, reply?

So I understand how NAT works, but I don't understand how firewall works. With non-symmetric NAT, if someone sends me a packet, it gets blocked, but it I send someone a packet and they get that packet ...
Sacha T Red's user avatar
4 votes
2 answers
6k views

Bridging my laptop's wireless and wired adaptors

I would like to be able to connect a desktop computer that does not have a wireless adapter to my wireless network. I could just run a network cable from my ADSL/wireless router to the desktop ...
Stacey Richards's user avatar
4 votes
2 answers
72k views

Why is my connection refused when port-forwarding?

This question is related to this: Application / Device setup for remote network connections I have a 2wire 3801HGV router and I made some firewall settings to open some ports on one of my connected ...
oliver_siegel's user avatar