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).
133
questions
0
votes
0
answers
15
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
56
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
46
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
33
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
26
views
Using Ubuntu as a Redirector
I have a question that I hope is simple, but I can't seem to find an answer.
I have an Ubuntu server that only allows connections from one specific source IP address. This IP address belongs to ...
0
votes
0
answers
131
views
Could not get the IP adress in Virtual Box in bridge mode of network
I have Windows 11 operating system. I installed Ubuntu 18.04.6 on this operating system with Virtual Box. I want Host machine(Windows) and Guest Machine(Ubuntu) to get IP over same network. But when I ...
0
votes
2
answers
799
views
iptables -t nat seems not working properly
I'm working on Ubuntu 20.04.
I set the following iptables rules:
sudo iptables -t nat -A POSTROUTING -d 192.168.10.162 -j MASQUERADE
sudo iptables -t nat -A PREROUTING -p tcp --dport 445 -j DNAT --to-...
1
vote
1
answer
52
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
563
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 ...
0
votes
0
answers
324
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
1
answer
4k
views
How to port forward my ubuntu 22.04 using iptables
Do you know how to gives iptables rules to my machine in order to allow trafic from my public interfaces(wlp3s0) to my private interfaces(lo). Kinda with this topology: 192.168.1.1:80 => 127.0.0.1:...
2
votes
1
answer
1k
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'...
0
votes
0
answers
245
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
252
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
2k
views
Why can't I access the internet when using static ip in a vm? (Netplan)
I'm trying to configure a network like this using VMs:
For this I have to configure a NatNetwork in virtualbox. Here is the configuration:
As you can see DHCP support is unmarked.
Now. I try to ...
0
votes
2
answers
3k
views
configuring two network interfaces on ubuntu 20.04
First a bit of background on the problem, I'm trying to create a dynamic malware analysis lab so I'm running inetsim on this ubuntu vm and I have a couple of other vm's on the internal network ...
1
vote
0
answers
252
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 ...
0
votes
1
answer
89
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
4k
views
Ubuntu 20.04 gateway, iptables NAT and port forwarding
i am in a maze, i try in vain to setup the rules to be able to acces from internet my internal web server (192.168.12.10).
at home, i have an Ubuntu 20.04 gateway (192.168.12.1) with two interfaces :
...
0
votes
1
answer
4k
views
Bad argument in iptables NAT command
I am trying to do a DNAT rule in iptables if the packet with source address 192.168.86.212 and destination address 192.168.86.212 then change the destination address to 172.217.5.100.
sudo iptables -t ...
0
votes
1
answer
36
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
309
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 ...
1
vote
1
answer
2k
views
Can't connect to Vsftpd Server - Passive reply with unroutable address
I have installed Vsftpd Server listening on port 21 in ubuntu server. I've forwarded a port in my router to forward external port 8500 to internal port 21 where my vsftpd server is listening on. ...
1
vote
1
answer
530
views
Network routing and port forwarding problem
I have 2 networks (graph in link below)
A: 10.0.0.0/24
B: 192.168.1.0/24
In network A, all devices are connected via a switch. Some devices provide certain services such as ssh or access to a database ...
0
votes
1
answer
309
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
5k
views
Link-local 169.254.x.x address assigned at boot despite static IP on 20.04 LTS
I have been struggling to setup my Ubuntu machine as a simple 2-NICs router with NAT, trying to stick to most recent recommended methods, namely netplan for the NICs and ufw for firewall and for ...
0
votes
1
answer
99
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
1
answer
449
views
IPSEC site-to-site overlaping networks
we have two sides connected over ipsec using strongswan. both machines ubuntu 16.04 servers. the issue is both end subnets are overlapping. we have tried all possible iptables scenarios to map ...
1
vote
1
answer
2k
views
Ubuntu Server - "Virtual" Network Interface with Internet Access
I have an Ubuntu 18.04 server with one public network interface (eth0). I'm trying to create additional "virtual" network interfaces that will also be able to access the internet with NAT rules set up....
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
143
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
1
answer
3k
views
OpenVPN tun0 routing on server
I have an OpenVPN tun0 10.8.0.0 255.255.255.0
There is an interface on the server eth1 for 192.168.0.0 255.255.255.0
I would like to route the OpenVPN connections to access the 192.168.0.0 network.
...
1
vote
3
answers
5k
views
Enable both NAT and Host Only on Ubuntu 18.04
I am using Ubuntu 18 minimal image to create an Ubuntu server with VirtualBox. I created a host only network and added adapter to vm along with NAT adapter (already configured).
The original ...
1
vote
0
answers
146
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 ...
0
votes
0
answers
30
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
6k
views
How to use IPtables for load balancing in gateway
I have 3 NICs. NIC1 and NIC2 are used for internet connections
an LAN is used for intranet connection.
I want to balance the load to ISPs using ip tables. As I am a noob, my crude attempt is given ...
1
vote
2
answers
144
views
LINUX 16.04 port blocking and ip blocking
My condition is there is a local network with 3 computers
Comp A (10.1.1.7 and 172.16.1.12 and 192.168.0.4)(actually Comp A has 3 network interfaces)
Comp B (10.1.1.13)
Comp C (172.16.1.5)
Comp A ...
2
votes
0
answers
2k
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....
0
votes
1
answer
46
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 ...
1
vote
2
answers
1k
views
Internet access not functioning in Ubuntu 18.04 VM
I'm using Ubuntu 18.04.1 LTS in a VirtualBox VM instance. I am building an internal network in accordance with an article on setting up a non-internet accessible, isolated virtual network environment ...
0
votes
1
answer
167
views
How do I remotely control an Ubuntu GUI session from behind a NAT?
Of course I can use Remmina and the like, as in this answer. But both the source and target Ubuntu laptops are behind their own routers (NAT). I am not able to configure port forwarding.
Some sort ...
1
vote
1
answer
4k
views
iptables setup for routing
I want to setup my ubuntu computer to route packets. Therefore I've read several tutorials which always had many rules to add to iptables.
I finally found out, that the only rule needed (given that ...
1
vote
1
answer
2k
views
Routing between 2 wired interfaces without using NAT features
I have two internal networks (I do not want/have Internet access) where I connect my Ubuntu 14.04 (with eth0 and eth1 network interfaces). From eth0 (network 192.168.0.0) I connect another PC1 ...
1
vote
0
answers
225
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,...
0
votes
0
answers
102
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
1
answer
2k
views
iptable matching rule for STUN/TURN traffic
I am looking for finding TURN/STUN packets coming on a 443 port.
According to the TURN RFC, Bytes 46 to 49 are TURN packet magic cookie '2112a442'. Here is the screenshot from wireshark where I found ...
0
votes
0
answers
650
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 ...
1
vote
0
answers
750
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
...