Questions tagged [masquerade]

77 questions
1
vote
1 answer

How to preserve external IPs through gateway to keep using Fail2Ban

I have a CentOS 7 box with 2 NICs acting as a gateway; one NIC is connected to the internet while the other NIC is connected to our LAN. The first NIC belongs to the 'external' zone of firewalld, it has masquerading on and is set to forward port 22,…
Francesco
  • 45
  • 9
1
vote
1 answer

Need correct iptable rules for NAT instance to prevent loop back for private subnet EC2 instance outgoing traffic

My AWS architecture has a public subnet having a NAT instance. It forwards the traffic on certain ports to my EC2 instance hosted in a separate private subnet. sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination…
Debasish Mitra
  • 115
  • 1
  • 4
1
vote
1 answer

How to NAT private IP to public IP through virtual LAN in centos 6

Guys i am having an issue with NAT on centos. In my LAB Centos is configured as a router. I want to run my local system (example: 192.168.1.45) apache server on live IP (example 112.100.4.34). This is already done by another user but i am unable to…
Sukhjinder Singh
  • 1,994
  • 2
  • 9
  • 17
1
vote
1 answer

Windows 98 routing issue

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 to secondary router, one with Windows 7, another…
duo
  • 121
  • 5
1
vote
0 answers

Same network, two interface cards, hosts behind different networks

Can anyone help with this? I have a gadget that has a fixed IP address 10.0.0.2, which I cannot change. It needs to talk to my laptop, which in turn needs to talk to the internet. My main network card gets its IP from a DHCP server. I have a…
Hannu
  • 113
  • 5
1
vote
2 answers

Is it possible to masquerade a packet on a bridge?

I have a container which has an incoming VPN. A connection into that container will be assigned the 192.168.10.10 IP. The virtual NIC of the container has an IP of 10.10.10.1 and a gateway (on the host bridge) of 10.10.10.254. When directly logged…
WoJ
  • 3,607
  • 9
  • 49
  • 79
1
vote
1 answer

NAT Masquerading second container network

I have 1 public IP, and would like to share internet connection to LXC containers running Centos (in this setup) the host runs proxmox (debian based). If I understand correctly, i need NAT masquerading, the problem is, the second container I create…
SvennD
  • 749
  • 5
  • 18
1
vote
1 answer

DNAT for connecting a subnet via proxy to the internet

DNAT for connecting a subnet via proxy to the internet I want to connect a server in a subnet to the internet via a proxy-server. But I can’t ping a host on the internet (www). Actually the subnet-server and the proxy-server share a common…
Threx
  • 11
  • 3
1
vote
1 answer

ICMP ECHO REPLY is not being SNATed correctly

I am trying to provide L3 connectivity between two remote LAN networks (10.0.0.0/24, 10.0.1.0/24) using OpenVPN with the following setup: +----------------+ +---------------------+ +---------------------+ |VM A | |VM B (OpenVPN…
1
vote
1 answer

Using DeamonPortOptions to fix DKIM signing with genericstable masquerading

I'm sending mails from my debian server with sendmail. I want to be able to send mail with multiple domains using masquerading with genericstable. I am signing the mails with OpenDKIM but because OpenDKIM signs the mail before masquerading happens…
Sandman
  • 11
  • 4
1
vote
0 answers

Unable to setup wlan0/ppp0 bridge

Don't know how many hours/days I have into this 'simple' problem, but I'm stuck... What I'm attempting to do is connect an eth0/wlan0 bridge to a ppp session (in other words share a ppp connection to the Internet with eth0 and wlan0.) Here are the…
1
vote
0 answers

Postfix on Linux: easy way of masquerade_exceptions=?

... well, the subject says it: in a NULLCLIENT configuration, we want to have all normal users to be masqueraded, but all system users should be exposed. The sysadmins get system user's mails from a lot of different hosts, and want to see eg.…
Christian
  • 295
  • 1
  • 7
1
vote
2 answers

Network remapping with iptables and PPTP VPN

I have two different networks: Home network 192.168.1.0/24 A - Home PC (192.168.1.100) B - Home Router (192.168.1.1 lan ip - x.x.x.x public ip) Office network 192.168.1.0/24 C - File Server (192.168.1.200) D - Office Router (192.168.1.1 lan ip…
Abraham
  • 73
  • 1
  • 1
  • 13
1
vote
0 answers

what is PAT exactly?

In attempt to understand PAT, I've setup the following setup where I have a Linux Router that masquerades from in internal interface to the external. Thus both clients are able to talk to outside Server with IP translation happening in the Linux…
ArmenB
  • 111
  • 3
1
vote
3 answers

limit ip Masquerade to certain ip range

I'm using the entire 10.0.0.0/8 subnet on the private side. I want to allow a certain section of the subnet (say 10.0.0.2 - 10.0.31.254) to access the internet via linux router but not the rest of the network(10.0.32.1 - 10.255.255.254) I have tried…
BrierMay
  • 259
  • 1
  • 3
  • 8