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 [ip-forward]

IP forwarding also known as Internet routing enables one workstation to sit on two LANs and to act as a gateway forwarding IP packets from one LAN to another.

0
votes
0answers
12 views

Conditionally redirect to sock5 server in iptables, only if the server works

I have a bit of a silly situation. My network has direct slow internet access, which can be used at any time. However, I have a subscription for fast but limited vpn, which works like sock5 server (...
0
votes
1answer
110 views

package forward low performance and low forward speed in using Ubuntu as router

I have built a router based on Ubuntu Desktop 18.04.1(kernel: 4.15.0-32-generic x86_64). I followed this guide https://killtacknine.com/building-an-ubuntu-16-04-router-part-1-network-interfaces/ . ...
2
votes
1answer
3k views

Correct way to route between 2 interfaces with netplan in Ubuntu 18.04

Problem and Network Configuration I am currently trying to allow communication between two interfaces, each with their own subnet, in Ubuntu 18.04 server using netplan but I am having a difficult ...
0
votes
0answers
377 views

DNS forwarding blocked in specific WIFI

I have a weird issue: I can usually access the internet just fine, including public Wifis with captive portals (I just now dialed into one). However, there is one public Wifi which I am unable to ...
1
vote
2answers
9k views

Route all traffic of a machine through another within a subnet?

I have two computers, both running ubuntu 12.04 64 bit. I need to route traffic of one computer through the other. computer A: 192.168.1.3 (eth0) computer B: 192.168.1.7 (eth0), 192.168.1.5 (eth1), ...
1
vote
0answers
31 views

Headless server no longer routing after minor fiddling with DNS and DHCP

Apologies up front for any spelling errors or anything, but I'm forced to write this post on my phone. I'm running ubuntu 16.04.2 LTS headless which I also use as a router for my LAN. Typically I ...
5
votes
1answer
686 views

IPv6 gateway computer - How to set up routing?

I'm trying to use a linux VM as an IPv6 internet gateway for another VM. I have a server installed for which I received the ipv6 prefix 2001:abcd:1234:5678::/64 (Note I edited the prefixes for privacy ...
0
votes
1answer
366 views

Why doesn't work without masquerade?

I have router - G, my desktop - D, laptop - L. I want to connect L to the internet via D. G at 192.168.1.1 D: enp1s0 - 192.168.1.2/24, gw G, eno1 - 10.0.0.1/16, serves as a router for L L: enp1s0 - ...
2
votes
1answer
269 views

Redirect Local DNS redirect a specific IP address

Apologies if this question already exists. I tried some topic answers, but isn't working yet! I need to redirect some URLs to a specific IP, how can I do it in my PC? I need to redirect all traffic ...
1
vote
2answers
688 views

Help understanding iptables command

What does every part of this command mean? sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
0
votes
1answer
480 views

Forwarding VPN clients to internet

I have following configuration. OpenVPN server on a cloud(Ubuntu 14.04) with static IP( example 50.60.70.80 on eth0). Linux and Windows clients are successfully connected to VPN (VPN static IP's - ...
0
votes
1answer
1k views

IPtables Config to Passthrough Internet 16.04

I am struggling to finish the config on my Ubuntu 16.04 fileserver to pass on the internet connection to my HTPC. See the network layout below: [Internet] <--> [DHCP Router] <--> (eno1).[...
1
vote
1answer
4k views

Forward port to local ip + port

On my Ubuntu 14.04 I have a service running on a local IP (192.168.33.99) and port 80. In my network, my Ubuntu computer has IP 192.168.2.3. Now I want to redirect all traffic on 192.168.2.3:8080 to ...
0
votes
1answer
837 views

Is it possible to define a fallback gateway server?

I'm using iptables to implement forwarding on one server, that is support to forward traffic from an internal network to the internet (tutorial: http://www.revsys.com/writings/quicktips/nat.html) On ...
0
votes
1answer
2k views

ip forwarding between two LANs

I have 1 server which has 3 NIcs: Connected to the Internet Connected to LAN1 (10.0.0.0/24) Connected to LAN2 (192.168.0.0/28) LAN2 has a server that works on a port, say 4444. How can I forward ...
1
vote
0answers
109 views

Forwarding specific traffic to another LAN

There's a LAN of about 40 computers all running Ubuntu 15.04. There are two servers, both Ubuntu 15.04. One of the servers will act as a SVN repo server and other as a firewall-and-transparent-proxy ...
0
votes
1answer
887 views

How to forward internet connection at eth2 to LAN at eth1?

I have two network cards/connections: eth2 is connected to the internet eth1 is connected to my LAN I want to allow the computers in the LAN on eth1 to access my internet connection on eth2. ...
0
votes
1answer
457 views

Share Internet from laptop (connected to LAN) to Android using WIFI router

The idea is: Internet - eth0 - Laptop - wlan0 - router - Android Static IPs everywhere. IP ranges are different. Could not establish bridge. bridge-utils unable to add wlan0 to bridge. Android doesn'...
2
votes
1answer
4k views

Virtualbox Server/Client topology

I have Ubuntu 14.04 desktop machine that VirtualBox installed on it. I make two virtual machines, one Ubuntu server, the other is Lubuntu client. The default setting allow me to get Internet from ...
2
votes
1answer
1k views

Shorewall IP Forwarding Problems in 12.04 LTS

Internet connectivity through my 12.04 LTS shorewall box is spotty at best. Ping works both locally and to the internet with no dropped packets (from both the box itself and internal LAN). HTTP ...
6
votes
1answer
6k views

Internet connection sharing without Network Manager

I followed these instructions for setting up a shared internet connection with iptables. Specifically, I: Added a network interface for my second NIC in /etc/network/interfaces like so: auto eth1 ...
23
votes
2answers
93k views

How can I set my linux box as a router to forward ip packets?

I am doing a network experiment about ip packet forwarding, but I don't know why it does work. I have a linux machine with two network interfaces, eth0 and eth1 both with static IP address (eth0: 192....
2
votes
2answers
8k views

How to forward an Internet connection to another network?

Can somebody please make a short & sweet tutorial telling how to forward an Internet connection to different network interfaces in Ubuntu...? This is the idea: I'm using a 3G usb modem to get ...
14
votes
3answers
42k views

How to configure UFW to allow IP Forwarding?

I have UFW, OpenVPN and Virtualbox installed on my home server. I have a host-only network for my virtual machine guests (vboxnet0) set up with the IP range 10.0.1.0, and another IP range of 10.0.0.0 ...