Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nat]

In computer networking, network address translation (NAT) is the process of modifying network address information in datagram (IP) packet headers while in transit across a traffic routing device for the purpose of remapping one IP address space into another.

0
votes
0answers
11 views

MASQERADE iptables rule not being hit inside docker conatiner

I am trying to route traffic via an OpenVPN tunnel which is running inside a docker container, but cannot get NAT to work +---------------------+ +-------------------+...
0
votes
0answers
23 views

CISCO ASA tunnel is up but no traffic

I have reviewed the very similar questions to mine, but my scenario seems different. ASA Version 9.7(1)4 I had a VPN site-to-site ikev1 connection from a remote network in AWS to a remote network ...
0
votes
0answers
14 views

dnscrypt-proxy, iptables, and redirecting (NAT) subnet DNS queries

I have a server with IP 192.168.10.100. It is running dnscrypt-proxy which listens to 127.0.0.1:53 and 192.168.10.100:53. The server also serves as a wifi access point on a standalone network (NAT): ...
1
vote
1answer
62 views

Forwarding traffic between two interface

I have a Linux box with two interfaces: ~#ip -4 addr show scope global 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000 inet 192.168.45.101/24 brd ...
0
votes
1answer
28 views

NAT on SonicWall for Debian server

I'm writing because i have a very strange issue with a newly installed debian 9.5 server. This server is behind a NAT made with a SonicWall firewall that assigns a public dedicated address to this ...
-1
votes
0answers
32 views

Reach home data from outside [closed]

My friend told me that he needs to make information on his server reachable from the internet. He has a Windows Server 2016 box at home but it's not configured with a static IP address (His server is ...
0
votes
1answer
25 views

Port forwad public ip port to internal server on different interface

Hello I am trying to port forward a public ip:port I have on a wan interface to a server on my lan my server has two interfaces ens19 [WAN] ens18 [LAN] I then have another server connected on the ...
2
votes
1answer
41 views

NAT gateway for ec2 instances

I have a public subnet with ec2 instnaces. The route table has 0.0.0.0/0 IGW (Internet Gateway) as default. I tested adding a public IP address to my instance (104.27.142.41/32 as reported by curl ...
0
votes
0answers
31 views

Redirect web traffic in OpenVPN server

Long story short: I have a functioning OpenVPN server (odroid-XU4 running Ubuntu Mate) and can successfully connect to it from 3 different clients (gentoo, Kubuntu and android). I want to route all ...
0
votes
0answers
14 views

How to configure internet gateway for NAT'd VM on KVM?

I'm running the Redhat 7 hypervisor, running KVM. The RHEL hypervisor has internet access. The VM is configured with NAT, not as Bridged, and does not have internet access. How would I configure the ...
5
votes
2answers
289 views

What is the AWS NAT Gateway?

I'm not sure what caused it, maybe Elastic Beanstalk, but at some point AWS created me a "NAT Gateway" which costs more than my EC2 server instances themselves. What does it do, why does it cost so ...
2
votes
1answer
42 views

How to split outbound traffic by destination IPs on aws with static IP?

Conditions are below. Use static IP for all outbound traffic. Send traffic through VPN Connection if it has the specific destination IPs. Send traffic through the Internet if it has NOT the specific ...
0
votes
0answers
11 views

cisco 881 double nat (gre tunnel)

I have cisco 881 and I would like to have double NAT. Also I need to have GRE tunnel. I set up next lab (look at picture topology). I can set up NAT from 192.168.0.0/24 to 192.168.13.0/24 interface ...
0
votes
1answer
43 views

Port-forwarding traffic to remote server using iptables

I'm struggling to set up an infrastructure where MySQL replication traffic from an Amazon RDS instance is forwarded over an OpenVPN link to a second server. There is an Ubuntu EC2 instance running ...
0
votes
0answers
23 views

For many different TCP hosts, how can I differentiate and route them from the same external IP?

I realize I may be asking the impossible here -- At the moment I use too many elastic IPs, and they cost money. Not only do they cost money...but in a disaster scenario, it takes time to reattach 25 -...
0
votes
0answers
20 views

ESXi 5.5 VM accessible from outside but no outgoing connections

I have an ESXi 5.5 dedicated host with several VMs. Each of them has internal address 192.168.0.x and is reachable via TCP on public address (public class, so I can access them on the internet via ...
0
votes
0answers
39 views

SNAT in RHEL using haproxy/keepalived

I have got a requirement to NAT the outgoing Source Address to a Public 87.x.x.x. we have two interfaces eth0,eth1 etho - internal, eth1-external communication. I tried the below SNAT using iptables ...
0
votes
0answers
59 views

Add-NetNatStaticMapping not port forwarding to local VM

I'm running windows 10 build 1809 and have hyper-v installed. I have a Linux machine running behind a NAT with internet connectivity working on IP 10.0.5.5. I basically followed instructions on the ...
1
vote
1answer
70 views

Test connectivity to NAT Gateway over firewall.

I created a VPC in aws and added a NAT Gateway so my instances in the VPC can consume other resources on the internet. Some of these resources belong to a 3rd party and are behind a firewall for ...
1
vote
0answers
18 views

Routing/NAT with Network Protocol Transformation

I'm looking for a way to accept multiple TCP based protocols on any port, then transform and redirect them all to HTTPS and send them over the internet to a server. (The "Server 1" is mine with ...
1
vote
1answer
42 views

AWS private subject cannot hit S3 using VPC endpoint

I have a private subnet in my VPC. I've sshed into this instance from a public subnet. Using a nat gateway, I'm able to run aws s3 ls and see all my buckets with no issues. Once I delete the nat ...
0
votes
0answers
42 views

what is a reverse nat and why would i need it?

Though I could find some definitions of reverse NAT (like from here), I couldn't really understand why it is needed. I'd really appreciate some examples.
0
votes
1answer
74 views

Mikrotik reverse NAT

Hi, I have attached my current network diagram. I have having problems on how to NAT my public IPs so that each client will use 2 different public IP. My ISP routes 3 public IP to my router over PPPOE....
0
votes
1answer
68 views

Using iptables TPROXY instead of REDIRECT

I'm running Debian 8. I'm trying to intercept all packets, and are currently using iptables for this: iptables -t nat -A PREROUTING -p tcp -j REDIRECT --to-port 5000 This seems to work, but it ...
0
votes
2answers
68 views

Is it possible to add FQDN to Server behind NAT or to a NAT itself?

I have multiple identical servers behind a NAT. I use the same IP and just change up the port to move between the server via port forwarding.The issue is that i am using self-signed certificates and ...
0
votes
1answer
74 views

Linux GRE Tunnel: Remote Address parameter

The Linux GRE tunnel as two parameters, local address and remote address. Suppose I have two routers, the left one is outside of a NAT and right one is inside NAT, then I want to create a GRE tunnel ...
0
votes
1answer
84 views

iptables Source NAT with Multiple NIC & Public IP Addresses Not Working

I just have a problem on the multiple NIC & IP addresses server. I've configured my Cent OS 7 server with an additional public IP address which belongs to eth1. When iptables source NAT enabled, ...
0
votes
1answer
28 views

ubuntu route traffic to specific remote port via another host

There are three servers: A, B and C. C exposes a service on port 8080 and a firewall rule allows connections from B only. I need to set up A and B so that A can access C too, through B. Please note:...
1
vote
0answers
32 views

iptables stopped translating DNS packets?

# iptables -t nat -S ... -A PREROUTING -d 217.xxxx/32 -p tcp -m tcp --dport 53 -j DNAT --to-destination 10.x.x.9 -A PREROUTING -d 217.xxxx/32 -p udp -m udp --dport 53 -j DNAT --to-destination 10.x.x.9 ...
0
votes
0answers
169 views

NAT with Hyper-V Internal switch: VM can't communicate with other machines

I have a machine running Windows Server 2016. The machine is hosting a Hyper-V VM, also running Windows. I would like to give the VM access to the network (i.e., connect to other machines on the ...
-1
votes
1answer
74 views

Can not NAT from IP routed via VPN

I have a linux server running Centos7 that uses a VPN to route to a public IP homed in a remote network. I want to NAT from an IP address on that remote network to a local subnet over a VPN connection ...
0
votes
0answers
114 views

Docker container hits iptables to proxy

I have two VPSs, first machine (proxy from now) is for proxy and second machine (dock from now) is docker host. I want to redirect all traffic generated inside a docker container itself over proxy, to ...
0
votes
1answer
54 views

Multiple Asterisk Servers Behind Single NAT

I'm debugging an issue we're having with VoIP SIP registration. After looking at packet dumps, I think the issue results from 2 subnets accessing the same web service and the router not knowing how to ...
0
votes
0answers
50 views

Is the Inside Global IP address the same as the Public IP Address? [NAT TABLES, Public IP, Private IP, Inside Global Address]

Is the Inside Global IP address the same as the Public IP address? Private IP addresses assigned to each device are translated using NAT to a Public address. Is that public address the same as the ...
0
votes
0answers
81 views

PfSense double nat and opening ports with ISP modem

At the office we I have a router/modem from my ISP which cannot be used in bridge mode, unfortunately. So I'll have to work with double NAT. Setup: (82.xx.xx.xx "wan" - ISP modem/router - 192.168.2....
0
votes
1answer
40 views

What is NAT port of an IP address?

I received a request from police to provide all available data of one of the users of my dating website. So, I sent them IP address, connection times, email address. Then I got another email with a ...
0
votes
0answers
188 views

pfsense and virtual IP addresses

I'm quite new to pfsense and network configuration in general, so I'm sorry if the question is too simple. I'm trying to set up an IPSec connection to a client machine, and to assign a hostname to a ...
0
votes
0answers
67 views

OpenWRT map-e configuration for DHCPv6?

Does anybody have an example OpenWRT MAP-E configuration that works with DHCPv6 provisioning? There is an example for a MAP-T from Cisco (using the Google cached page as the Cisco link seems down now):...
0
votes
1answer
84 views

iptables NAT for Dockerized VPN Server

I want to setup a vpn server on my VPS using Docker. Many VPN servers like OpenVPN need firewall NAT rules and other firewall rules to work. as official documents suggests: You may have heard ...
0
votes
1answer
90 views

End-End Encryption on SSH passing though 'untrusted' jump servers

I need to SSH between 2 "clients", both behind CGNATs, by using a third party server as a jump. This use case has been covered on this site already but: How do I make it so the SSH traffic is not ...
0
votes
0answers
163 views

IPsec with NAT between pfSense and Fortigate - no ping or access from both sides

We have an IPsec VPN tunnel with NAT between pfSense 2.3.4 and Fortigate up and running. The local networks are the same (overlapping), so we use NAT. pfSense is managed by us and Fortigate by a ...
0
votes
0answers
18 views

Debian IP Tables NAT Public To LAN And Vice Versa

I would like to perform NAT on packets leaving eth0 interface to go to ip 198.51.100.8 except those going to ip 192.0.2.4 I have come up with this: iptables -t nat -A POSTROUTING -s 192.168.0.17 -o ...
1
vote
1answer
29 views

Windows 98 routing issue [closed]

I have following network setup: Main router connecting to internet, with LAN address 192.168.1.254 Secondary router connected to first router, with LAN address 192.168.2.1 I have two PC's connected ...
0
votes
1answer
21 views

Forward port through VPN but keep source IP

I want to forward a port from my raspberry Pi to a server reachable through a VPN. I also want to be able to see the client IP from the server. The setup looks something like this: ...
1
vote
1answer
85 views

Should I put my DHCP Server on Bridged, Host Only or NAT?

For a project of school we have to build a Windows Server 2012 R2 Server on VMWare Workstation 14.0 that should serve as a DHCP Server. The DHCP Server should only be able to connect with his hosts ...
0
votes
0answers
69 views

1-1 NAT addressing on a Moxa EDR-810

I've been trying to configure one of these routers for a couple of weeks. I'm new to the configuration of routers, I've only set up 1 before this so its not going too well (Took me 2 weeks just to get ...
0
votes
1answer
116 views

Understanding routing with dual WAN

Ok, this might sound a little confusing but I will try to describe it nonetheless: I have in my LAN two routers that are running a HA-CARP setup connected to two DSL WAN lines. The CARP works as ...
1
vote
0answers
75 views

pfSense : How to do 1:1 NAT to server hosted at remote location linked through IPSec tunnel

We have 2 data centers at 2 different locations and are moving our services from location A to B without interruption. Both location have a PFSense Firewall configured with IPSec tunnel between each ...
0
votes
0answers
81 views

VPN point-to-point without open/forward port, is it possible?

Actually I have a software that is client-server based and running throught a VPN. The server is a computer and the client is an Android device, both running OpenVPN. Is there any way to do this ...
0
votes
0answers
47 views

Proxmox internet via NAT issue

This is the standard setup for NAT? So my VM's behind vmbr1 should be able to access internet via NAT. However there is an issue with my vm guests unable to connect to public ip addresses. Could ...