Questions tagged [nat]
Network Address Translation, a technology used to translate a private IP address into a public IP.
1,132
questions
0
votes
0
answers
34
views
VirtualBox Natted Networks & SSH
So I've run out of ideas on troubleshooting this to resolve the problem and figured this was the next stop. In short I'm running Ubuntu within VirtualBox and I'm trying to SSH to the virtual machine ...
0
votes
1
answer
36
views
How iptables SNAT deal with src port dilemma between port translation fr local ip and DNAT rule that forwards all traffic to the same local ip?
Say we have a Linux based router with WAN interface eth0 ip addr 4.3.2.1 (w/ whatever gw ip) and LAN interface eth1 ip addr 192.168.51.1/24, which means we need an iptables rule below to make the ...
0
votes
1
answer
42
views
Device that uses NAT internally - how to avoid conflicting with connection to internet?
I am building a device that has two Linux computers (raspberry pis) connected via cabled ethernet. One of them, the "outer" pi, has a wifi to the outside world. Both need to connect out, so ...
0
votes
1
answer
57
views
How to access an isolated Network from a NAT network in QEMU
I have a couple of VMs running on QEMU, some need to access the internet while others should be isolated. I already have two virtual networks, one of type NAT and the other is isolated. I want to ...
0
votes
0
answers
10
views
DstNat changes address but recipient does not respond
i have 2 local networks in this configuration and i'm trying to let x.x.1.37 comunicate with x.x.100.11; i have setup on router 2 DstNAT so that the packets sent to x.x.1.42 are forwarded to x.x.100....
0
votes
1
answer
22
views
Nat routing from 1 network ro several potentially conflicting internal networks
basically i'm in the industrial automation space and every different machine has its own internal network. they also each connect to the company internal network. proble is that sometimes different ...
0
votes
0
answers
35
views
Use wireguard to establish a tunnel between two NATted clients and a middleman and then route all traffic from one client to another
I have three Linux/Debian hosts: Client, Middleman, and Gateway.
The Client and the Gateway are behind NAT, while Middleman has a public IPv4 address.
Thus, the Endpoint for Client and Gateway will be ...
1
vote
2
answers
39
views
VirtualBox DHCP Server on Nat Network
Could DHCP server set up on Custom Nat Network in VirtualBox? I don't want to use VirtualBox default DHCP server. I want to fully control this service.
0
votes
0
answers
31
views
NAT virtio-net network adapter not working on VirtualBox windows guest
We are following this post, to make the guest machine use the VPN of the host.
However, on a Windows 10 host of VirtualBox 7.0.10, a Windows 2016 guest failed to recognize a network device of NAT Para-...
0
votes
0
answers
63
views
4 WAN FAILOVER (DHCP) MIKROTIK RB750Gr3
I am trying to do Failover with Mikrotik with not success
I currently have a router (LRT224)
I want to change it for (RB750Gr3)
I need to have a backup connection via a mobile network
setting up the ...
0
votes
1
answer
45
views
VirtualBox - Internet with "Host-only" over PPP
I have a VM that uses Host-only Network. On the Host Machine I have a ppp0 interface through which I have access to the internet (as additional public IP-address). But if you send traffic from ppp0 to ...
1
vote
1
answer
58
views
How to communicate with VirtualBox NAT network from another device
Network scenario
Hi, I recently built an AD lab environment called GOAD on GitHub on my secondary PC (PL4YGR0UND) running Ubuntu 22.04 and I don't know how to communicate with VM's inside Virtualbox ...
2
votes
1
answer
78
views
Why is my public IPv6 address different from the one listed in linux
Going to [whatismyip.com][1] on different devices inside my home network provides expected results, the same IPv4 address and different IPv6 addresses on each device. However, upon looking at the ...
0
votes
1
answer
90
views
I have two subnets created with openwrt. how can i set up NAT hairpinning from first to second network?
I have created on OpenWRT 3 different network interfaces. WAN for internet, LAN for my personal network, and MANAGEMENT for my hosted servers. These two networks are seperate. seperate DCHP, DNS, etc. ...
14
votes
2
answers
5k
views
How does the airconditioner app on my phone access my aircon controller through my router?
I understand how a router uses NAT/NAPT to enable a client on my home network to request a packet from an external server, and hence how the router knows to which client to send the packet that is ...
0
votes
0
answers
61
views
Openwrt hardware nat bypass implications
My setup
ISP provided router (the gateway) on a 1Gbit/100Mbit fiber line and an openwrt router (the router). The gateway does not support bridge mode so I followed the guide for Poor's man bridge mode,...
0
votes
0
answers
30
views
Trying to get 1:1 NAT working with OpenVPN (Layer 2 tap tunnel)
All. I have a small project which needs to have everything in the same collision domain (Layer 2). I was wondering which iptables commands I would need to run in order to get the printer (192.168.192....
0
votes
0
answers
84
views
UFW SSH deny rule not working
TLDR: I'm trying to block SSH connections to a server; the server itself is connected to a ubuntu router with UFW on it, but external SSH connections to the server aren't getting denied, UFW doesn't ...
-2
votes
1
answer
149
views
Can't ping my external CGNAT IP address from external network [duplicate]
I'm new to networking and I'm trying to scan my external IP from an external network.
I first tried finding my public IP from whatismyIP.com. The IP address on that site was different from the ...
1
vote
1
answer
42
views
Networking: NAT two interfaces together on Windows
I have the following setup:
Openvpn client (Linux) (Openvpn IP 192.168.99.4)
Openvpn client (Windows) (Openvpn IP 192.168.99.2)
Openvpn server (Linux) (Openvpn IP 192.168.99.1)
Now, both clients ...
0
votes
3
answers
87
views
How routers deal with only one external IP?
I recently discovered that all my devices connected to a WiFi router have the same external IP. Call it 20.20.20.20. The thing that I don't understand is how the router figures out which IP packet ...
0
votes
0
answers
22
views
BGW320/TP-Link AX10 Port Forward Not Working
I have a TP-Link AX10 router behind a BGW320 router (set in IP passthrough mode) to the AX10. The AX10 should be receiving all external input with this configuration, but whenever I port forward / &...
-3
votes
1
answer
56
views
Can router give the same public IP to 2 different networks? [closed]
I have set up a virtual machine and specified an IP address for it that is outside my home network. I cannot ping this machine and access it through the Internet from my host machine. I presume it is ...
0
votes
1
answer
277
views
WSL 2 NAT issue preventing reverse shell on TryHackMe
I installed Ubuntu in WSL 2 on Windows 11. However, my WSL 2 instance is behind NAT, which is causing some problems. For example, I am unable to get a reverse shell on TryHackMe because my WSL 2 ...
0
votes
1
answer
74
views
nftables, dnat in output chain appears to be done after routing
I have an EC2 instance and an application that requires to send to the EIP from within the instance.
I am trying to configure a dnat on the output chain so that the packets dont go out to the internet ...
-1
votes
1
answer
134
views
With two houses and two internet connections, I want to use site A's internet from site B via a VPN, preferably wireguard
I have two homes, both of which have internet. Let's say that I am currently at "Site A", but I want to connect to the internet via "Site B", in order to take advantage of Site B's ...
0
votes
1
answer
133
views
NAT masquerade refuses to work on Link-Local network
I am developing a device, in terms of usage and network connectivity it is similar to a printer with an Ethernet port. This device should also work in p2p scenarios, i.e. when the Ethernet port of the ...
0
votes
1
answer
135
views
NAT not working properly with more LANs - source address is replaced with LAN gateway IP
Running Mikrotik RouterOS, does not matter if version 6.48 or 7.9.
What works:
Default configuration makes NAT keep source address (i.e. public IP of client which connects to server, chain: input - ...
-2
votes
1
answer
169
views
what is the most stable and fastest tunnel for a VPN? [closed]
i live in Iran and is all u guys know our goverment is limiting the access to the internet and they are really getting serious about this.
so what the situation is right now : first of all we cant ...
0
votes
1
answer
166
views
Is it possible to enable UPnP without going into Router web interface?
So I lost the password for my router, and I am living in a rural area, so contacting the ISP is a hassle. I was wondering if it is possible to enable UPnP option without accessing the router settings. ...
0
votes
0
answers
92
views
How to get wireshark to sniff packets between client and server using VMs attached to NAT Network
I am really new to pen testing. I am using Oracle Virtualbox, and I have three kali linux VMs setup. I am trying to use wireshark on a VM to sniff packets between a Modbus client VM and a Modbus ...
0
votes
0
answers
34
views
connect to ssh via iptable tunnel
there is two server A (1.1.1.1) and B(2.2.2.2)
I defined an iptable PREROUTING like this
sudo iptables -t nat -A PREROUTING -p tcp --dport 1111 -j DNAT --to-destination 2.2.2.2:22
sudo iptables -t nat ...
0
votes
1
answer
608
views
iptables nat table does not work as expected?
I aim to have some iptables rules to observe the flow of network traffic through iptables rules. However, iptables does not seem to work as I expected. It appears that packets which are the response ...
1
vote
0
answers
31
views
Trying to setup iptables properly
I have dummy0 interface on my machine. I need to forward its port 10456 towards loopback port 10456 which is forwarded via ngrok to some remote endpoint (very convinient). I have never done any ...
0
votes
0
answers
70
views
Security Concerns for VMs in DMZ
In Vmware Workstation a VMnet8(NAT) Interface on Host System acts as a External Port for a VM Guest, If a Put the VM in DMZ can the Host get compromised or attacked as the VMnet8 has Ip addresses ...
1
vote
0
answers
859
views
WSL2 Routing and NAT Rules
I recently installed WSL2 on my Windows 10 PC and I'm trying to understand how traffic is handled to and from WSL2. The below article states that WSL2 is running as a managed Hyper-V VM and uses a NAT ...
0
votes
0
answers
120
views
Communicate with device on different subnet (router changes only)
I have a MikroTik router, and two other devices on the network, A and B:
MikroTik router: 192.168.133.1/22
device A: 192.168.133.160/22, port 2 (LAN)
device B: 192.168.100.1/24, port 3 (LAN)
I would ...
1
vote
1
answer
487
views
How to enable hairpin NAT between docker containers using bridge network
We have 2 docker containers running on the same host using bridge network (host network isn't an option due to port conflicts).
Container B is listening on port 9000 which is a service open on the ...
0
votes
0
answers
50
views
DNAT web server behind double firewall
I have this topology and I want to access my webserver that's located behind the internal firewall
sophos WAN : 213.x.x.75
sophos LAN : 172.16.0.2/24
Pfsense WAN : 172.16.0.1/24
pfsense LAN : 192.168....
0
votes
0
answers
398
views
How to access JioFiber's admin panel remotely?
I want to access my jiofiber router's admin panel from the internet. Can't simply forward the port because the ISP's using Carrier Grade Network Address Translation (CGNAT). I don't have access to the ...
1
vote
1
answer
454
views
Using VPS to give Public IP to on home network
As my provider does not give me a public IPv4 Address, I am using a VPS combined with a Wireguard tunnel to make my homeserver reachable from the Internet (via Ipv4 and Ipv6).
On my homeserver, the ...
0
votes
0
answers
807
views
No internet connection in VM with Libvirt NAT
Hello super users,
I am trying to get an internet connection up and running in my KVM/QEMU VM through Libvirt's default NAT.
Unfortunately, the guest (Windows 10) sees the virtual adapter as an "...
0
votes
0
answers
134
views
Hyper-V: Nat blocking guest access to host ports on internal network
I have been trying to get this to work for some time.
Hyper-V switch myswitch is created as internal virtual network and an IP is configured for the switch adapter
Get-NetAdapter
# choose switch ...
0
votes
1
answer
46
views
Remote administration between 2 host behind different NAT
I have 2 computers, both connect to the internet using different routers in different locations, therefore not having a fixed public IP address.
Computer A is the admin Pc and needs to get a shell on ...
1
vote
0
answers
70
views
How to configure DNAT on linux PC so that windows PC destination address can NAT to external linux server?
Topology:
Windows PC (Eg.,20.0.0.2) <---> enp6s0 20.0.0.1 [Ubunthu 20.04 as NAT] enp8s0 172.30.18.95<-->eth1 - Linux PC {172.30.18.90}
Requirement:
I want to ftp 30.0.0.1 from windows PC, ...
0
votes
0
answers
40
views
Route incoming packets on interface through another interface
I think I have a simple scenario that I cannot manage to make it work:
I have a router (Edgerouter-X) whose eth0 is connected to my home LAN (192.168.0.0/24) which is connected to the internet. The ...
1
vote
1
answer
244
views
Dynamic DNS NAT for IPv4 and AAAA for IPv6 - is it possible?
I have a router named alice, and servers named bob and charlie. I want to be able to use IPv6 to go directly to alice, bob, or charlie, and I want IPv4 to continue to work, giving me alice's address ...
0
votes
0
answers
127
views
VPS behind NAT can't connect to its external IP from local network
I have a VPS behind NAT with ports open using iptables.
I have a software installed on the VPS and it can't connect to its public IP. I also tried to check it with Telnet.
Output:
root@vps:~# telnet ...
0
votes
1
answer
1k
views
NAT setup on Proxmox
I'm trying to set up NAT on Proxmox VE 7.3-4. I followed this guide but changed the IP range and didn't do any port forwarding yet https://bobcares.com/blog/setup-nat-on-proxmox/
I edited /etc/network/...
1
vote
0
answers
153
views
SSH doesn't work through mikrotik
I have Mikrotik RB952Ui-5ac2nD. Everything is working fine.
But now, I found little problem.
I can not connect from LAN to any SSH in internet, but, when I'm connected without mikrotik, i havent any ...