Questions tagged [ip-forwarding]
147 questions
13
votes
2 answers
connect Open vSwitch switch to real network : iptables masquerade
I'm using Open vSwitch to create a switched network between virtualBox guest machines, and i
want that the host OS (Ubuntu 12.04) join this network and to configure it as the gateway of this virtual network:
First, i created a vswitch and i added…

LokmanDz
- 131
- 1
- 1
- 5
11
votes
2 answers
Map IP to another IP
Assume the following scenario, if I have a local machine (A) the requests another machine (B) using B's internal IP without regard the ports. But A and B are not on the same network, however, B has a public IP. what I want to do is when requesting…

Yahia
- 315
- 1
- 3
- 8
10
votes
1 answer
How do I enable IP-forwarding in MacOS X?
What is the correct way to enable IP-forwarding in MacOS X?
More specifically, what is the MacOS X command line quivalent of the following two Linux commands:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A FORWARD -j ACCEPT

knorv
- 1,799
- 6
- 19
- 29
7
votes
1 answer
Bind outgoing SOCKS-server traffic to a specific IP
At the office we get access to the web via a SOCKS server which is started with the command:
ssh localhost -f -N -D *:8888.
This server has 2 IPs (but only one network card):
eth0 xx.yy.zz.1
eth0:1 xx.yy.zz.2
So the browsers are configured to use…

GetFree
- 1,500
- 7
- 23
- 37
7
votes
2 answers
How do I forward/NAT all traffic to one interface/IP to a remote IP?
I have one "server A" that has multiple IPs attached to it, like so:
eth0:0 1.1.1.1
eth0:1 1.1.1.2
eth0:2 1.1.1.3
I have another "server B" that also has multiple IPs attached to it, like so:
eth0:0 2.2.2.1
eth0:1 2.2.2.2
eth0:2 2.2.2.3
Now, I…

Daniele Testa
- 661
- 4
- 10
- 18
6
votes
1 answer
Docker bridge and nginx allowed ip
We have a docker bridge containing several docker containers. The main docker is an nginx server which acts as web host and forwards all data to the other containers.
Now a requirement is that the connections are limited to only a specified list of…

paul23
- 203
- 3
- 8
5
votes
2 answers
Pings from VPN network to VPN client work; pings into from VPN client to VPN network fail - why?
We are in the process of setting up an OpenVPN server for some servers running in a cloud. We are stumped with a connectivity problem whereby the hosts on the VPN server's LAN can ping te VPN client, but the reverse is not true.
The VPN client can…

jonseymour
- 243
- 1
- 5
- 13
3
votes
3 answers
How to Turn on IP Forwarding for Interface If Forwarding Rule Was Already Created
I am trying to turn on IP Forwarding for an interface of an instance hosted in Google Cloud.
I have a f1 micro VM instance on Google Compute Engine.
I've created an IP forwarding rule with gcloud succesfuly here.
Command compute forwarding-rules…

ilyaigpetrov
- 135
- 1
- 2
- 8
3
votes
9 answers
IP forwarding on Linux - anything important to make sure to do or know?
In moving a website with a dedicated IP from one server to another, to minimize downtime due to DNS propagation delays, there's the approach of using IP forwarding so that all traffic to the original IP gets forwarded to the new IP.
Is there…

sa289
- 1,318
- 2
- 18
- 44
3
votes
0 answers
OSX Yosemite IP Forwarding not working
I coudn't manage to set up basic ip forwarding on OSX Yosemite 10.10.1 Mac-Mini.
I use the exact same configuration on a OSX Mavericks 10.9.5 Mac-Mini, and it's working perfectly ?
I set the
sudo sysctl -w net.inet.ip.forwarding=1
sudo sysctl -w…

rubijn
- 131
- 1
- 3
3
votes
1 answer
Getting the client IP when passing through a reverse proxy
In my VPS I am hosting several websites. everyone living in its own Linux Container. For instance
Site #1 -> 10.0.3.111
Site #2 -> 10.0.3.112
Site #3 -> 10.0.3.113
To know where to redirect each request, I also have a reverse proxy nginx in…

Enrique Moreno Tent
- 459
- 2
- 7
- 19
3
votes
3 answers
Redirect IP Address to Domain Name
I am attempting to redirect the IP address of my domain to the domain name and am running into trouble. The IP address does not redirect to the domain name listed in the redirect statement below.
The IP Address is http://184.168.27.44/
I've setup…

SwDevMan81
- 201
- 2
- 3
- 14
3
votes
2 answers
Linux: Ip forwarding or bridge?
On a Ubuntu 8.04 I have two interfaces eth3 and eth4:avahi.
eth3 is in my local network with 192.168.178.63.
eth4:avahi has the ip 85.214.144.211.
From this box I can ping 85.214.144.212 successfully.
On a windows box in the same local network…

user4514
- 473
- 4
- 7
2
votes
1 answer
Sharing CheckPoint VPN connection
Sorry for my english.
I have 2 VirtualBox VM. One with Debian 8 and the other with Ubuntu Server 14.04 LTS. Both configured with a bridged network adapter. Both machines have the same MAC an IP address (I never use them simultaneously).
In both VM,…

Pepechuga
- 21
- 3
2
votes
2 answers
How to forbid forwarding packets to private network addresses via interface
On my server, I have a default route to interface eth0. It has public internet address and faces ISP network. I have packet forwarding enabled, and few local interfaces/bridges with private 10.x.x.x addresses. Also, all packages that are outgoing to…

Dmitriusan
- 367
- 3
- 15