Questions tagged [nat]

Network address translation (NAT) is a network technique that allows that a public IP can be shared by many private hosts (machines).

Filter by
Sorted by
Tagged with
2 votes
1 answer
10k views

Make a machine a NAT router

I would like to create the following network: Internet ---- Host machine ---- VM1 ---(local network)-- VM2 with VM1 acting as a NAT router. VM1 and VM2 run Ubuntu via VirtualBox. To achieve this, I ...
manuch100's user avatar
0 votes
0 answers
432 views

lxd container with openvpn server does not apply iptables nat rule

I'm trying to setup openvpn on one of my lxd containers to allow access to the container network. The server seem to work and I can access (ping) containers which have a static route pointing to the ...
azzid's user avatar
  • 866
0 votes
1 answer
4k views

Why do all my 16.04 servers in VirtualBox have the same IP address (10.0.2.15)?

On half a dozen separate 16.04.3 servers, all running NAT for the network connection, when I run ipconfig I get back 10.0.2.15 as the address for each machine. Each machine should be getting a DHCP ...
warren's user avatar
  • 256
0 votes
2 answers
1k views

VirtualBox DNS Specific Port Forwarding

Here is my problem; I have virtual-box running on Ubuntu 64 bit (17.04) and I have multiple virtual machines (all Ubuntu 64 bit). I want to forward port 80, 25, 143 and 22 to all of the virtual ...
Nadav Tasher's user avatar
  • 1,078
1 vote
0 answers
56 views

how to view the interfaces for each connection in the nat table?

I've used cat proc/net/ip_conntrack to view all the connections related to the NAT table on the device. But this doesn't give any information with respect to the interface used and the type of nat for ...
Akshaya's user avatar
  • 11
2 votes
1 answer
6k views

ubuntu iptables NAT & Router & Port Forwarding

I would like to forward the ssh port from ubuntu-fw (firewall) to ubuntu-server1. | Internet | --- | Router (hardware) | --- | ubuntu-fw | ---- | ubuntu-server1 | Router (hardware): Fritz-Box ...
pallago's user avatar
  • 121
2 votes
1 answer
3k views

How to create a non-nat access point with nmcli?

I am trying to create what is essentially a home router with nmcli. I would like the client devices that connect to be on the same subnet regardless of whether they connect with ethernet or wifi. ...
nbroeking's user avatar
  • 145
5 votes
2 answers
20k views

NAT using iptables on Ubuntu 16.04 doesn't work

I used to use Ubuntu 14.04 trusty for our NAT server (build on Google Cloud Platform), but recently I tried to use the Ubuntu 16.04 xenial. I configured perfectly same as I've done in 14.04, but it ...
Shinichi TAMURA's user avatar
1 vote
1 answer
1k views

Ubuntu: VPN kills NAT

Output: Wireless Info Script Connection is ISP router (DHCP) - eth0 192.168.1.91 - wlan0(NAT/DHCP) 192.168.5.1 I'm using hostapd to bring up the AP, /etc/network/interfaces to create interface and ...
orion_134's user avatar
1 vote
0 answers
443 views

Can't connect CSGO-Server or SSH on my Ubuntu 16.10 VM

I've installed Ubuntu on Orcale VM VirtualBox. The internet connection is over NAT. I've tried to set it to Bridged Adapter, but then I don't have any access to internet on Ubuntu. I've installed ...
Trustmaster's user avatar
0 votes
1 answer
77 views

Is it possible for a network administrator to detect easily if I am running Ubuntu on VirtualBox using NAT mode for networking? If yes how to hide it?

I want to run linux on virtual box on my computer. How do I run it without getting detected?
Niranjan Agnihotri's user avatar
0 votes
1 answer
876 views

Port Forwarding to Windows Desktop from Ubuntu Laptop?

I currently have a weird setup. I forgot to get a wireless card for my Windows 10 desktop so I am currently sharing my Ubuntu laptop's wireless internet with my Windows desktop via ethernet cable. I ...
nbstrong's user avatar
-1 votes
1 answer
666 views

Ubuntu 16.04 desktop vm is the only OS that will not register on the local network

I have several linux & windows vms(vmware) running on windows 10 pro host, in vmware workstation 12.5. All vms are configured the same way in workstation, but the Ubuntu vm is not discovered in "...
PushT's user avatar
  • 1
0 votes
0 answers
732 views

Virtual Box in Ubuntu host machine - NAT network not working

I'm trying to get some virtual machines running in Virtual Box and I want to use the "NAT network" network setting, but I can't get internet connection to work. Is there some setting I need to adjust ...
Phenomniverse's user avatar
0 votes
1 answer
7k views

Block All Traffic on Specific Interface

I was trying to block all traffic on a specific interface (which is external wireless) except browsing by using ufw: sudo ufw enable sudo ufw deny out on wlx00252245ed96 sudo ufw allow out on ...
Alex9766's user avatar
1 vote
1 answer
232 views

Could'nt punch through NAT(or NAT not in place)

I am trying to install Ethereum for Ubuntu 14.04. I followed the mentioned thread. This is the error description I am getting! Maybe the problem is with the proxy bypassing settings. If someone could ...
Kashish Bakshi's user avatar
1 vote
2 answers
2k views

Forward packets from bonded LAN interface to WAN

I am not able to route packets between the lan side of my ubuntu server and the wan side. I'm looking for some assistance. I have 5 ethernet ports on my server - 1 onboard (eth0, used for wan) and 4 ...
Simply8219's user avatar
0 votes
1 answer
892 views

Cant connect an ESXI host behind an ubuntu NATusing Vsphere

I have 2 NIC's on ubuntu ; eth1 (pci-e based net. card) > WAN (router) and eth0 (onboard) > server (onboard) (no cross cable) so what I want is to access both ubuntu (vnc and ssh) and esxi server (...
xDeathwing's user avatar
1 vote
0 answers
122 views

Keep the same port number for forwarded packets

I have the following IPSEC setup: LEFT (IPsec) <===> MID (PPP) <=ppp=> RIGHT (IPsec+PPP) All running Ubuntu 14.04 LTS. MID communicates with RIGHT in PPPoE (marked ppp). Now... IPsec servers ...
orangesomethingorange's user avatar
1 vote
1 answer
135 views

File copy fails over Ubuntu Gateway using NAT

I have managed to successfully set up NAT on my Ubuntu 14.04.4 machine so that my computer acts as a gateway for a computer connected on the internal interface (eth0) to the external interface (eth1)....
CJCombrink's user avatar
0 votes
1 answer
6k views

Port forwarding with DNAT not working

I want to forward my local port 2221 to a remote machine (192.168.2.100), where ssh listens on port 2222. Connecting to the remote machine works: ssh -p 2222 192.168.2.100 [email protected]'s ...
DoRe's user avatar
  • 21
0 votes
1 answer
1k views

ubuntu guest system can't ping Window 8.1 host

I have a Window host 64bit 8.1 at home ( connecting to Internet via home router), I recently installed an ubuntu 32 bit guest on VM Windows player ( latest version) with NAT. ifconfig -a on ubuntu ...
GoodToLearn's user avatar
0 votes
1 answer
2k views

Does rsync over ssh require use of UDP?

I have a remote rsync backup to a server running over ssh, using NAT to specify a non-standard high numbered port on the router. Is it ok to only open the port on the router, and the ssh port on the ...
Arronical's user avatar
  • 19.9k
0 votes
1 answer
651 views

How change Gateway of subnet ( private network, Internal) on MAAS

Ubuntu : 16.04 MAAS: 2.0.0 beta 3 I need to change the gateway address of my subnet( private lAN,Internal which is 192.168.120.1) to ip address of my region/rack controller( internal ip 192.168.120....
Rastin's user avatar
  • 784
5 votes
1 answer
209 views

Accessing a LAMP webserver that's behind a Ubuntu VM acting as a firewall

I currently have two VM's set up in the following manner: /-----------------------\ /-----------------\ | Ubuntu VM | /---------------\ ...
user3593245's user avatar
1 vote
0 answers
5k views

Setting up NAT forwarding using iptables on ubuntu server 14.04

I have a server with 2 ethernet interfaces(em1 and em2). em1 is the internet facing interface(192.168.16.113) and em2 has a static address(10.1.1.100) connected to a switch. I have configured the ...
Hari K's user avatar
  • 41
0 votes
1 answer
135 views

DNAT redirecting to specifc port is not working

I want to redirect ssh by port using DNAT, and i do try to ssh it through the command > username@IP_ADDRESS:10003, and I got this message: ssh: Could not resolve hostname IP_ADDRESS:10003: Name or ...
Adam's user avatar
  • 319
0 votes
1 answer
3k views

Is it possible to define a fallback gateway server?

I'm using iptables to implement forwarding on one server, that is support to forward traffic from an internal network to the internet (tutorial: http://www.revsys.com/writings/quicktips/nat.html) On ...
basilikum's user avatar
  • 143
2 votes
1 answer
1k views

configure iptables to redirect traffic to a specific IP address

I have just began using iptables. I have a server with a public ip address (A.A.A.A) wich is hosting a Virtual Machine (B.B.B.B) on local network. I want to redirect all inbound traffic on the port ...
Riadh Hamdi's user avatar
0 votes
1 answer
369 views

How to resolve multiple hosts inside a NAT firewall

My apologies if this has been asked before, but I can't seem to find a complete solution. I have a hosted sub-domain at no-ip.com with a wildcard DNS option enabled. On my end I have a firewall port-...
Eric Fossum's user avatar
2 votes
1 answer
3k views

NAT port forwarding using iptable doesn't work

I have a server with Ubuntu Server and a Xubuntu virtual machine on it, virtualization software is virt-manager. Ubuntu Server IP: 172.16.63.140 Xubuntu Virtual Machine IP: 192.168.122.4 I can do ...
Luca's user avatar
  • 221
0 votes
1 answer
96 views

Monitoring tool for Ubuntu

I am running a Ubuntu server for NAT and DHCP services in my Office. What monitoring tool can be used to remotely monitor server performance, DHCP lease addresses, IP Lease statistics, monitor ...
Sayeed's user avatar
  • 11
0 votes
1 answer
1k views

Ubuntu vmware workstation guest doesn't connect anymore after windows host update from 8 to 10

I'm using VMWare Workstation 11 to power a Ubuntu 15.04 virtual machine. My Host operating system was Windows 8 and the NAT connection from Ubuntu to the Internet via my host system worked perfectly. ...
René Martin's user avatar
20 votes
4 answers
97k views

No Internet Access on VMs in NAT Network in VirtualBox

I have created a a NAT Network in VirtulBox 5 In Ubuntu 14.04 LTS with following settings Natework Name : NatNetwrok1 Network CIDR: 10.0.2.0/24 Support DHCP :enabled Support IPv6 :disabled without ...
ehsan's user avatar
  • 301
1 vote
1 answer
626 views

Adding bridge for LXC breaks NAT/DNS

I am having a issue with a small home server. This server operates as a DNS/DHCP/NAT. I am also trying to add a few LXC instances with JUJU however I am running into a issue with the bridge. When I ...
Michael Harris's user avatar
0 votes
1 answer
186 views

How to use my ubuntu server as router?

+---+ eth1- *.1.6| S | =========| | |PC1|private net -------------------- | |=============...
Dgn_OABS's user avatar
  • 155
0 votes
1 answer
477 views

How to setup IPTABLES for logging/monitoring usage while using a DSL with a dynamically assigned IP

I am trying to set up a system to do NAT and other iptables-stuff (like logging, firewall, monitoring, etc.). The ISP provides a dynamic IP address and the DSL modem does NAT. I have the following "...
Sunny's user avatar
  • 129
1 vote
1 answer
91 views

no network in ubuntu13 when virtal box is configured with bridged adpater

I am using Ubuntu 13 on virtual box with my host being Windows 8. My aim is I want to ping from host to guest or from any physical machine to guest (Ubuntu).I am able to ping from guest to host but ...
Gayathri's user avatar
29 votes
2 answers
111k views

What's the difference between PREROUTING and FORWARD in iptables?

I am trying to understand how this system works and I have problems to understand the difference between using NAT PREROUTING or filter FORWARD. From what I understand, the PREROUTE can send the ...
GheorGhe's user avatar
  • 403
0 votes
1 answer
43 views

Problem in virtualbox network

Install first time it was working properly. I wanted change network interface but i did't keep a backup. Now i can't connected to network in ubuntu server my host system is ubuntu pls advice me what ...
sohel4r's user avatar
  • 474
1 vote
1 answer
3k views

UFW blocks traffic in NAT

I've created a VM guest with libvirt with the default NAT Bridge. (Host and Guest Ubuntu 14.04 Server) After creating allow rules for SSH and enabling ufw - on the guest - i can't connect to the ...
Patrick Werner's user avatar
0 votes
1 answer
1k views

Setup NAT on Ubuntu 14.04

I'm trying to insert my desktop between an appliance and the rest of the network to monitor the traffic coming off of it due to some security concerns. I'd like to setup NAT so that the devices behind ...
flickerfly's user avatar
  • 7,299
5 votes
0 answers
10k views

Using Ubuntu 14.04 as router with iptables, clients can't go online. Probably DNS issue, iptables setting needed [closed]

CORRECTION 3: SOLVED! I needed to add the the official DNS server of my departement's VLAN as DNS to the clients. I've read through a large number of posts about iptables issues when using Linux as ...
zerweck's user avatar
  • 150
1 vote
0 answers
35 views

NATing ports selection using hardware detection

I have a linux box to be used as a router with a wlan port in AP mode. The internet input to the board may come from either an eth port (WAN mode) or another wlan port. There is also VPN running that ...
Pushy's user avatar
  • 11
1 vote
2 answers
258 views

Setting up NAT for internet access on a connected router

I'm setting up a NAT for a connected router to my laptop using the following command (IP forwarding is enabled): sudo iptables -t nat -A POSTROUTING -s 192.168.47.0/24 -o eth0 -j MASQUERADE So ...
angel_30's user avatar
  • 303
2 votes
1 answer
8k views

Hardcoded static IP assignment for eth1

I'm setting up a NAT, and need to assign a static IP to my eth1 interface. The problem is that once in a while, it resets, and I need to run the following command again: sudo ifconfig eth1 192.168.47....
angel_30's user avatar
  • 303
3 votes
1 answer
1k views

A question about the Internet/ConnectionSharing (NAT) via iptables

I'm following this tutorial to setup a NAT gateway: https://help.ubuntu.com/community/Internet/ConnectionSharing#Ubuntu_Internet_Gateway_Method_.28iptables.29 With simple eth0 as WAN and eth1 as LAN ...
Wei Xia's user avatar
  • 53
1 vote
1 answer
2k views

Dnat prerouting does not work on Ubuntu 14.04 [closed]

I've got a Ubuntu 14.04 server used as firewall, router, dhcp, dns and proxy. Everything works properly from inside to the internet, but the forwarding from outside to the inside network doesn't work. ...
novaisjp's user avatar
9 votes
2 answers
2k views

How to disable NAT for IPv6 (NAT66)?

The current Ubuntu LTS does not support NAT tables for IPv6 (i.e. there is no ip6tables -t nat), and I'm fine with that, in fact, a NAT-less environment is the "core" of my networks. But, the next ...
ThiagoCMC's user avatar
  • 829
2 votes
2 answers
5k views

Open source stun turn server which can do hole punch is there similar packages?

Is there any open source stun/turn server which can do hole punch like numb for Ubuntu ? Numb is a STUN/TURN server. Description A STUN/TURN server is used for NAT traversal in VoIP. ...
user avatar