0
votes
0answers
16 views

iptables on router: why does nat prerouting not intercept packets?

There is a Debian Wheezy box with OpenVZ kernel (IP 1.1.1.1), working as router between Internet and VPS'es (IPs 1.1.1.100 and 1.1.1.200). Incoming packets addressed directly to VPS'es are normally ...
1
vote
0answers
37 views

Change sender-IP for VM in libvirt behind NAT

I have a server with my own public /28 IPv4 Network. On this server I have some vServers, done with KVM/libvirt. These vServers are connected with a virtual network, NATed to the internet. Every ...
0
votes
0answers
21 views

Packets are not routed by iptables, how to debug

I'm using OpenStack and OVS. This is my case: From a remote host, I ping VM with IP A. Local gateway received the echo request, then send a packet with IP A and MAC address A' (based on a fixed ...
0
votes
0answers
21 views

Simple MASQUERADE NAT between 2 VM

I'm on a cloud service and I'm trying to set up NAT between two VM. I've never experienced issues in this simple step, but this time is different and I'm near to give up. The first VM had two ...
0
votes
3answers
44 views

Packages drop when using iptables NAT

We are using NAT made with iptables. However when there are lots of connections (or sessions) through NAT server packages start to drop. There is no log in syslog etc. I think this is caused by sysctl ...
0
votes
0answers
58 views

Trouble with port 80 nating (XenServer to WebServer VM)

I have a rent server running XenServer 6.2 I only have 1 public IP so i did some NAT to redirect ports 22 and 80 to my WebServer VM. I have a problem with the port 80 redirection. When i use this ...
1
vote
1answer
55 views

Iptables prerouting based on destination's DNS name?

I've got a question concerning iptable prerouting. I'm not that familiar with networking/routing/iptables so I hope this is not a stupid question, at all. So I ask for your understanding and ...
0
votes
0answers
53 views

UDP packets are not reaching iptables NAT table

I'm trying to redirect UDP incoming packets to port 4000 to another IP with iptables: iptables -t nat -A PREROUTING -p udp --dport 4000 -j DNAT --to-destination 192.168.100.20 Unfortunately they ...
0
votes
0answers
30 views

Using NAT with iptables between corporate network and firewall'd corporate network

At work we have a firewall between two networks. I was told they opened up the two ports for me but I needed to modify the IPtables to allow packets to go through. I'm not familiar with the correct ...
0
votes
0answers
38 views

NAT answers instead of remote host

Currently I have VPN client access set up on OpenSuSE 13.1 server to third-party remote Cisco VPN IPSec server. VPN Server is set up to provide access for a host only and to provide access for a local ...
1
vote
1answer
66 views

Firewall setup Huawei 4G with DMZ

Network topology: ISP1 | | Alternative ISP 4G | | | Huawei 4G with DMZ | | ...
4
votes
3answers
1k views

iptables nat does not exist

Today my iptables nat on the host system stopped working and I have no clue what happend! (That's very bad, I know) All commands are executed as root user. If I run $ iptables -t nat -L I get the ...
0
votes
0answers
14 views

Impact of iodined settings to server

I would like to install iodined, the IP tunnel via DNS, on a working web server. However, the configuration requires to set IP forwarding add NAT masquerading rules to iptables (and open DNS port) ...
0
votes
1answer
123 views

How accessing a NATed, virtualized (LXC) server over public IP from client itself on a bridged network?

Setup ____________________________ ____________________________ | Host | | Client | | Public IP: 66.66.66.66 | ...
1
vote
0answers
51 views

Firewall and NAT settings in GSM modem for one server

I have a GSM Modem (PSI-MODEM-GSM/ETH) in field with one device behind, acting as a server. The situation is as follows: "PC" | \_________Dynamic IP: 10.103.153.122 | ...
-1
votes
1answer
78 views

iptables NAT table not matching anything [duplicate]

I am attempting to take a TCP service running on port 1234, and make it appear as if it's running on port 81. I thought the following might do it: iptables -A PREROUTING -t nat -p tcp --dport 81 -j ...
0
votes
1answer
42 views

iptables NAT forward range

I have two network interfaces, eth0 and eth1. eth0 has a public ip, eth1 has 172.16.0.254/24. I'd like to do the following mapping: 172.16.0.1:22 -> eth0's public ip:2001 172.16.0.2:22 -> ...
0
votes
1answer
70 views

Iptables/ufw - blocking ports when using nat

I use NAT to move requests from external ports to an internal ip address and port hosted with proxmox. Something like this: iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 8000 -j DNAT --to ...
0
votes
1answer
60 views

iptables forwarding through virtual interfaces

I'm trying to configure my computer as a gateway between two networks, but I cannot make it working for some reasons Here is a representation of the network: 192.168.1.101 192.168.1.102 ...
0
votes
1answer
126 views

access same subnet on different interfaces

I have a router with external (WAN connection) subnet 192.168.1.0/24 and also on same router a tunnel to a remote location which have the exact same subnet (192.168.1.0/24), and i need from my LAN to ...
0
votes
0answers
58 views

FTP Traffic routing through NAT prevents me from logging in

I need to send all FTP traffic to a particular server from a NAT. Server A connects via FTP to an IP which is routed to the NAT and then over a VPN. That traffic then comes back and gets routed from ...
1
vote
0answers
42 views

strongswan packet get natted when ufw is enabled

I'm using strongswan 4.6.4 to connect road warriors to my server (ubuntu 13.10), which is natted behind a firewall. left=%defaultroute leftsubnet=10.10.1.0/24 right=%any ...
1
vote
0answers
40 views

OpenVPN running on Internet Gateway, so all private clients can access VPN with no config

Our LAN connects to our office gateway machine (192.168.1.1), which is connected to the Internet. I have setup NAT/Masquerading for this purpose with no issue. We also use OpenVPN to connect to our ...
1
vote
1answer
68 views

how to forward proxy requests using iptables

I've this schenario ----------------- ---------------- ---------- | SERVER A | ---(port:2128)> | PROXY | ---> | INTERNET | | (10.30.1.1) | ...
0
votes
2answers
33 views

Forwarding all connections to different address

I have a script that tries to connect to rabbitmq using default url and port (localhost:5672). Is it possible to make linux redirect all connections to this url and port to different server? I am ...
1
vote
1answer
129 views

Linux iptables DNAT stops working after some time

3 down vote favorite I have a strange behaviour in my server setup. It looks like that. client1 192.168.11.2/24 <----> 192.168.11.7/24 (br1/vlan1) Server 192.168.21.1/24 (br21/vlan21) <---> ...
0
votes
2answers
89 views

Portforwarding with IPTABLES and Remote IP detection

I was able to forward 80 port from my primary server 192.168.90.1 to the second one 192.168.90.2 with IPTABLES The primary server has a public address X.X.X.X so I forwarded X.X.X.X:80 -> ...
0
votes
2answers
74 views

Forward web request to another computer

I have one notebook and two servers: ip = 172.17.0.2 (I have installed nginx here) ip = 172.17.0.3 (There is nothing here, but I can ping 172.17.0.2 from here) I open browser on my notebook, open ...
0
votes
1answer
78 views

How to apply port forwarding with iptables on existing connections?

For load balancing purposes, occasionally our servers forward requests to a different port; The default port for our service is port 5000. This is the code used: iptables -t nat -A PREROUTING -p tcp ...
0
votes
0answers
98 views

Load-balancing PPTP connections

I'm trying to load balance two PPTP connections, connected to the same server. I use the following script, but there is no send and receive via PPTP connections. What part am I doing wrong? Are there ...
-2
votes
2answers
119 views

Iptables MASQUERADE: What is the advantage/disadvantage between these two commands? [closed]

What is the advantage/disadvantage between below 2 commands: iptables -t nat -A POSTROUTING -o eth0 -s 10.0.0.0/16 -j MASQUERADE AND iptables -t nat -A POSTROUTING -j MASQUERADE Some Background ...
1
vote
1answer
146 views

iptables DNAT port forward to another machine on LAN

I am trying to implement iptables forwarding rules in order to internally redirect packets coming through a specific port. My machine is running under the distribution Ubuntu Server 12.04.3, with UFW ...
0
votes
2answers
654 views

AWS VPC + IPtables + NAT: Port Forwarding is not working

Yesterday, I posted a question here but I think was not clear enough in my words. BTW, This question is not a duplicate. I have AWS VPC Setup as below. GOAL/PROBLEM: SSH to Server A from internet. ...
0
votes
2answers
61 views

IPtables: Forward port to another host is not working

I am trying out something so this is my test setup: Setup: I have AWS VPC with a public and private subnet. I have a host in public subnet with a public IP address (say Host A) I have a host in ...
0
votes
1answer
100 views

IPTables and SNAT for just two ports

I want to set up some NAT policies so that certain machines will only have outbound access to http/https. They should not be able to do port scans or anything else from their machine. Currently my ...
1
vote
0answers
57 views

Port corruption using iptables NAT on Enterprise Linux 6

I am trying to setup a captive web portal redirect on CentOS using the following configuration: This configuration works for the first few packets, but then suddenly the destination port is corrupted ...
2
votes
1answer
551 views

libvirt and network filtering with nat - iptables overrides

At first, I want to say: I know, it was done initially wrong and I want to avoid doing everything again from the scratch because of general downtime. I am running libvirt/KVM on RHEL. I've got VM ...
-1
votes
2answers
57 views

INPUT, OUTPUT or Forward Chain

I'm using a linux box as a router: The Box has 2 public ips and local ip, i'm using natting to allow local users to access the web. When a local user access the web, source natting happens here, ...
-1
votes
1answer
141 views

iptables and port redirection (nat)

I am trying to build a router from ubuntu 12.04. What I am trying to do is, by using 1 public IP (100.0.0.100) and I tons of local ips like 10.0.0.0/16, to map each port to one ip like; ...
0
votes
1answer
101 views

How to Setup Linux Server As A Router with NAT

We have a simple router which has NAT of symmetric type, but because this router doesn't provide us with any debugging interface, we cannot figure out if a specific packet reaches the NAT or not. ...
0
votes
0answers
73 views

How to set mark on packet when forwarding it in nat prerouting table with rp filter 0?

I have a serious problem with my server ubuntu 13. I have two ADSL lines and an internal network as follows. i.imgur.com/v4ddHXf.png (URL IMG) IP redirections made ​​two because there are two older ...
0
votes
1answer
102 views

iptables alternative for nat in windows

When setting up a comms server I usually use iptables in linux to forward any incoming connections on a particular port to another server, e.g. Chain PREROUTING (policy ACCEPT) target prot opt ...
0
votes
0answers
57 views

Multiple routes and gateways with NAT

My setup is a VM host with two network interfaces where I want to use one as private/internal and the other one as public (which will get a public address on the host), where all the NAT magic to the ...
1
vote
1answer
386 views

iptables port forwarding to vmware workstation guests on NAT vmnet [closed]

Try as I might, I can't get this to work now for 2 days. Your move, internet. I want iptables to transparently forward (localhost) 192.168.1.40:2222 to 192.168.2.22:22 and I don't want ...
2
votes
2answers
78 views

IPtables NAT puzzler: Why is traffic from the firewall host being NATed even though it's not coming from one of the prescribed source addresses?

I run a small network where a linux web/mail server also provides NAT for a collection of windows boxes. One of these windows machines is apparently misbehaving (ZeroAccess botnet even though I can't ...
-2
votes
1answer
194 views

Ubuntu Server / IpTables / Port Forwarding / NAT

I got referred here from StackOverflow. I'm using IpTables to forward an incoming port on one server to an external server (not on LAN) and the same port. The problem I'm having is that I have to use ...
0
votes
3answers
170 views

CentOS masqueraded network with iptables clients not connecting: Unable to ping

I'm a novice sysadmin working on a system with a CentOS server masquerading traffic with client machines also running CentOS. Something with the tables got messed up and my clients no longer have ...
0
votes
1answer
97 views

How to bind traffic of each NAT client to a external IP address?

I have a NAT router with 2 IP addresses, lets say 111.111.111.111 and 222.222.222.222 associated with the interfaces eth0 and eth0:1 respectively. I have two servers that connect to this NAT gateway ...
0
votes
0answers
159 views

Martian packet errors with physical adapter's IP address on GRE tunnel

I'm very new to the networking world (most of my time is spent as a developer), so I could very well be missing something simple. TL;DR version: I get 'martian packet' errors on response traffic when ...
0
votes
0answers
89 views

Why is an ack response being sent to the wrong gateway?

I was trying to determine why a packet forwarded by iptables to my internal lan is returned on the wrong gateway. Having investigated this further, I determined that, at least in the case of one of ...