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).
60
questions with no upvoted or accepted answers
5
votes
1
answer
208
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 | /---------------\
...
3
votes
1
answer
925
views
Is it possible to setup a DHCP server only for local virtual machines?
I have a quick question. I have a bunch of virtual machines (VMWare Workstation) running on an Ubuntu server and have found that VMWare NAT (DHCP) service is unreliable and slow. I have to use NAT ...
2
votes
1
answer
2k
views
Ubuntu 22.04 UFW NAT problems
I've done an in-place upgrade from Ubuntu 20.04 to 22.04 and I've found that NAT no longer functions on this firewall box. Before the upgrade, the private network could reach the Internet just fine. I'...
2
votes
0
answers
3k
views
How to forward port with UPnP?
I want to forward port at work, but when i run
upnpc -a 192.168.8.80 45444 45444 TCP
I get an error
List of UPNP devices found on the network :
desc: http://192.168.15.34:5000/ssdp/desc-DSM-eth0....
2
votes
1
answer
875
views
NAT forwarding not working
I tried to set up forwarding from eth0 to wlan0 in ubuntu:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -F
iptables -F
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
iptables -A ...
2
votes
2
answers
5k
views
NAT not working in a container
Following instructions I've installed docker on ubuntu 13.04 (and 12.04 + 3.8 kernel), pulled the base container and started a shell inside it. It got a private IP and can ping it's default gateway ...
2
votes
1
answer
1k
views
Unable to connect to my remote Ubuntu system using SSH
I want to connect to my remote PC running on Ubuntu 12.10 using SSH. But when I try ssh my_username@my_current_ip, I get this error:
ssh: connect to host 117...** port 22: Connection timed out
I ...
2
votes
0
answers
388
views
Ubuntu router breaking internet radio streams
I have Ubuntu 12.04 up and running fine as a DHCP router with great throughput to my connected devices. two single nic's (one onboard and one PCI-e, both with Realtek 8111E chips) are used as WAN and ...
2
votes
1
answer
5k
views
how to access samba shares via nat?
I have setup a virtual machine in Virtual Box and installed a Samba Server. I changed the guest operating system's NIC from Bridged to NAT for a reason that I can't remember. I then added a additional ...
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. ...
1
vote
0
answers
55
views
Cant Access FTP account using proftpd on Azure
i created VM on cloud with ubuntu 22.04 and installed Proftpd server .
this Server is behind Firewall NSV270 .
i can aces sftp Account using external IP , but i cant acess FTP using any ftp client , ...
1
vote
1
answer
76
views
Using two different networks with the same IP ranges
My camera (Nikon D7500) is hard-coded to use the IP address 192.168.1.1, which is the same as my LAN network range (specifically my router), I would like to find a solution to have it connected ...
1
vote
1
answer
628
views
Install outline VPN on a NAT VPS
I'm trying to install outline on my NAT server, but I keep getting this error:
Your Outline Server was installed correctly, but we are not able to connect to it. Most likely this is because your ...
1
vote
0
answers
262
views
Ubuntu 20.04 on VMWare 16.1.2 - no internet connection with NAT
I have couple Ubuntu VMs - 20.04.1 and 20.04.2. Both are set for NAT connection. Both have identical setting except 20.04.1 has Docker installed and 20.04.2 has Minikube.
Both at one point had ...
1
vote
0
answers
154
views
Permanent redirect on Ubuntu for Mosquitto bidirectional MQTT traffic
I need to permanently redirect all traffic in the short term from an old mosquitto server to a new one until the firmware updates have been completed on the edge devices. I tried using iptables as ...
1
vote
0
answers
238
views
How to configure port for external access?
I need to access software from another machine in PORT 3000, but I can not do it for the IP of the machine, only by localhost.
erick@erickmordecai:~$ ifconfig
enp3s0: flags=4163<UP,BROADCAST,...
1
vote
0
answers
755
views
16.04 iptables NAT weird behavior keeps working when removed
root@p10:/proc/net# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
OVH Public Cloud Server, on ...
1
vote
0
answers
123
views
Ubuntu 16.04. How to establish both internet and LAN connections at the same time
I have two network devices connected to my PC.
4G USB Stick(enx0c5b8f279a64) 192.168.8.1
Eth Adapter (enp0s10 192.168.50.20) is connected to a DIR-300 router(192.168.50.1).
/etc/network/interfaces
...
1
vote
0
answers
54
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 ...
1
vote
0
answers
442
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 ...
1
vote
0
answers
120
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 ...
1
vote
1
answer
133
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)....
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 ...
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 ...
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 ...
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 ...
1
vote
0
answers
451
views
How to run openmpi on virtualbox with 3 PCs through SSH?
I have 3 PCs with Vista, running Ubuntu through Virtualbox on them. I have installed openmpi and ssh on them, they are connected via ethernet. The IP addresses are all 10.0.2.15. And I can ping with ...
0
votes
0
answers
44
views
How to simulate a NAT network in Ubuntu host with iptables and iproute2?
I want to simulate NAT network mode of virtual machines without using any vm-specific tools. The detailed goals are the following:
The VMs have internal network IP 10.8.20.0/24
The physical nic eno1 ...
0
votes
0
answers
119
views
transparent bridge is nat possible anyway with nftables?
I two 10gb NICs(eth1,eth2) in one card configured as bridge(br0), and PC( with ubuntu 22.04)'s own nic(eth0) for accessing it, only.
I am making this a transparent bridge for filtering undesired ...
0
votes
0
answers
63
views
Access Ubuntu Samba shared folder from outside VirtualBox
I installed Ubuntu Server 22.04 on VirtualBox with Windows 11 as host.
I set a "NAT" adapter in Virtualbox and forwarded the ports 80 and 443 from the host to the guest for an Apache server ...
0
votes
0
answers
41
views
Redirect traffic between LAN and OPT1
In Pfsense, I have two network cards, one connected to a network 192.168.56.2 which is the LAN network and the other one is connected to the network 192.168.58.2 which is the OPT1 network; these are ...
0
votes
0
answers
371
views
No Internet without opening FortiClient
I am running Ubuntu 20.04 inside Virtual box with network adapter attached to NAT:
I installed FortiClient 6.4.8.1056. I can no longer access internet without opening a VPN on FortiClient nor use a ...
0
votes
0
answers
316
views
NAT from internet/firewall thru a Ubuntu computer, to another network and device. (routing)
(Ubuntu) computer has two network interfaces: (and is not sunning iptables)
wlx1cbfce8bd2bd: inet 10.1.1.129 netmask 255.255.255.0
on this network, there is a device: 10.1.1.10 - with a UDP port ...
0
votes
0
answers
289
views
Home Router NAT Network configuration Ubuntu 20.04
I have Ubuntu 20.04 desktop and home router and I trying to open ports to have an acces from internet.
Here is interface info
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN ...
0
votes
1
answer
97
views
Webmail behind firewall
I hope someone can point me to a guide or help set up a mail server behind a pfSense firewall that would be separated from the web page. I am a relative newbie on Linux, so the more detailed, the ...
0
votes
1
answer
38
views
Routing ubuntu server 20.10
I can't configure routing on my server because of:
https://i.stack.imgur.com/Q64Gr.png
Have you any idea?
0
votes
2
answers
315
views
Ssh and Nat forwarding
New here and also in dealing with networks. First I'd like to apologise if my post is looking messy, cos I typed and copied everything and in the texting box is looking nice but the preview is very ...
0
votes
1
answer
317
views
SSL on Ubuntu 20.04 with shared IP
I have an Ubuntu 20.04 machine and I'm trying to install SSL via Certbot. The machine has a shared public NAT IPv4 and only a certain range of ports are available for use. I used DNS-01 for ...
0
votes
1
answer
107
views
DDNS / NAT / DNS / internal name server
I have a registered domain and DNS running on a ISP. For this domain, I have NOIP pointing to my home network behind NAT, and it works well, so, from outside, I can type my servername and have it.
I ...
0
votes
0
answers
1k
views
port unreachable on pings from guest VM to internet. (KVM Virt-Manager default NAT network)
Using virt-manager, KVM on Ubuntu, I created a VM with default network configuration (NAT) as described here: https://wiki.libvirt.org/page/VirtualNetworking under NAT mode.
which should have ...
0
votes
1
answer
150
views
create NAT Network in Virtualbox - hardware virtualization enabled - cannot disable
Good morning,
I am encountering some issues when trying to create a NAT Network in virtualbox.
This is the error message that I get (and keep on getting) :
the hardware virtualization is enabled ...
0
votes
0
answers
34
views
Ubuntu installed on Vmware but cannot get access to internet
I installed Ubuntu 14.04.1 on Vmware, the host machine is Fedora 30. However, I cannot get access to internet from Ubuntu. I am not clear how to identify the cause and fix it? Thank you for the help.
0
votes
1
answer
47
views
How can I get back my router configuration in Ubuntu 16.04 server after shutdown?
I shutdown my Ubuntu Server 16.04 after configuring it to the router using.
sudo shutdown now
The next day when I reboot, PC cannot update. My NAT configurations are gone.
When I type sudo apt ...
0
votes
0
answers
108
views
Virtual machine without Internet
I have a VirtualBox machine with Kubuntu and I lost Internet suddenly two days ago. I didn't do anything but uninstalling Python which I suppose it's not related to a network connection.
I tried ...
0
votes
1
answer
1k
views
SSH and router port forwarding Ubuntu Server 16.04
I'm pulling my hair out trying to get SSH to work through my router/firewall, tell me if I'm missing something...
Fresh install of Ubuntu Server 16.04, left SSH config alone, and created keys. Able ...
0
votes
0
answers
681
views
DNAT with port change not working
I'm using this command to establish NAT on my VM container:
iptables -t nat -A PREROUTING -d ${MAIN_IP} -p tcp --dport ${2} -j DNAT --to-destination ${SUBNET}${3}
with
MAIN_IP being main server's ...
0
votes
0
answers
431
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 ...
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 ...
0
votes
0
answers
731
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 ...
0
votes
1
answer
888
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 (...