Questions tagged [routing]
Use this tag when the topic is related to managing the paths that IP traffic will take. This includes subnets created by access points, and on the high end it could be multiple feeds coming through a Cisco unit.
370
questions
81
votes
6
answers
227k
views
How can I make VirtualBox guests share the host's VPN connection?
Question
When I start my VPN on my ubuntu desktop computer which acts as a router, the attached subnet loses internet connectivity, but is still accessible (LAN). Ideally, I would like to know how to ...
65
votes
10
answers
146k
views
OpenVPN connecting but no internet access on Ubuntu 16.04 / 18.04 / 20.04
I'm trying to connect to a VPN using OpenVPN.
I tried using network-manager with OpenVPN plugin and tried too in terminal with ovpn.conf file.
Everything connects (it says connection established) in ...
61
votes
8
answers
566k
views
How to set static routes in Ubuntu Server?
I have used Ubuntu since Ubuntu 8.10; today I'm working with Ubuntu 12.04 Server.
I am having difficulty keeping static routes on booting. I would usually put the route commands
/sbin/route add -...
56
votes
3
answers
219k
views
How to make IP forwarding permanent?
I know that I can enable IP forward by echoing 1 to /proc/sys/net/ipv4/ip_forward, but how can I make this permanent?
By the way I want another method rather than start up scripts, is there any?
32
votes
3
answers
174k
views
Default gateway changing
I am using 3 ethernet interfaces on Ubuntu but when I restart, the default gateway is changing to a different interface. Each time I boot I have to change default gateway back to the eth1 by deleting ...
29
votes
2
answers
48k
views
How to set up dual wired and wireless connections?
My laptop has both wireless and a wired connection capabilities. Can I connect to a router A using wireless and a separate router B using wired ethernet at the same time without having to switch back ...
26
votes
4
answers
31k
views
persist port routing from 80 to 8080
I use amazon EC2 instance which works via ubuntu. By default according security restrictions I can't bin my application to port 80, so I just bind it port 8080 and then set routing redirect from port ...
25
votes
5
answers
85k
views
How to set routes for my vpn connection
In my previous question I was asking about setting up vpnc connection. I've installed network-manager-vpnc so now I can configure all this stuff right from network manager gui.
I have got this pretty ...
23
votes
1
answer
241k
views
Adding route on client using OpenVPN
So this is my setup.
Laptop Running Ubuntu
OpenVPN version 2.3.2
I connect to a OpenVPN server that connects to an off-site network.
I get the OpenVPN client running and I can ping the VPN server. ...
21
votes
1
answer
86k
views
How to route all internet traffic through Tor (the onion router)?
Could you explain how to route all internet traffic through tor? I am using Ubuntu I really don't know how to do it. Actually I am using tor for twitter only, and I'm afraid of DNS leak. So I need to ...
15
votes
3
answers
33k
views
How to toggle NetworkManager's "Use this connection only for resources on its network" option via command line
At my work we have some test machines that we run scripts on via ssh. During the test we want to only have the machines access the local network through their Ethernet connection, but then would like ...
14
votes
1
answer
51k
views
Forwarding traffic between 2 interfaces
I have 2 VLANs connected to a 'router'. All the machines can ping other machines within their own VLAN and the router. The router can ping all of the machines. I am trying to get machines to talk to ...
13
votes
2
answers
6k
views
How to tell what interface a TCP connection will go out on?
I have a server with multiple ethernet interfaces. What's the easiest way to tell what interface an outgoing TCP connection will go out over? The results of "netstat -rn" is greek to me, so if your ...
13
votes
2
answers
95k
views
Set up permanent routing (Ubuntu 13.04) [duplicate]
I have 2 connections: wlan0 (gw: 192.168.1.1) and eth0 (gw: 192.168.2.1).
My default connection is wlan0, but I wanted some websites load through my eth0, so I set up routing for those websites/IPs ...
13
votes
4
answers
27k
views
How to get rid of 169.254.0.0 route?
This is from route -n command.
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.x 0.0.0.0 UG 600 0 ...
11
votes
1
answer
5k
views
Reproducing a set of ip commands in netplan
I recently upgraded to ubuntu 18.04 from 16.04 and am trying to figure out how to get my ip route and ip rule commands that I used to put in /etc/network/interfaces working under netplan.
These are ...
11
votes
3
answers
50k
views
Trying to enable IPv6 results in a "No route to host" error
I'm configuring a dual stack network on a KVM server using static IPv4 and IPv6 addresses furnished by my provider.
I input all addresses, nameservers and gateways as required when installing Ubuntu. ...
10
votes
2
answers
48k
views
Can't delete a route with 0.0.0.0 gateway
I'm trying to set up my routes in a way that will allow me to connect to Vagrant box of Solum demo.
My routing table contains, but is not limited to, following routes:
$ route -n
Kernel IP routing ...
10
votes
3
answers
20k
views
Network Manager breaks manual routes
I have Ubuntu 13.10, Saucy Salamander x64 running as a guest in VirtualBox (with Windows 7 as a host).
I wrote this /etc/network/interfaces because I need to add a large number of permanent, manual ...
10
votes
1
answer
18k
views
multiple NICs under ubuntu 18.04
How to translate what we had to do to have 2 independent stream of traffic on 2 or more NIC interfaces with the new netplan.io + systemd-networkd?
auto ens2
iface ens2 inet static
address 192.168.5....
10
votes
1
answer
8k
views
How is the loopback device implemented?
The loopback networking interface
is a virtual network device implemented entirely in software.
But how is this implementation actually accomplished and how do you manipulate it?
As far as I ...
9
votes
1
answer
54k
views
Two Network cards and ip forwarding
I want to make "Ubuntu 11.10" act as a router.
I have two LAN interfaces.
Let's say interface A' IP is 172.16.1.10 ;
interface B's IP is 192.168.1.10.
How can I configure Ubuntu so that 172.16.1....
9
votes
2
answers
21k
views
route table explanation
I'm a newbie. Recently I used the command ip route ls to print my route table. Here is the content:
111.211.3.192/26 dev wlan0 proto kernel scope link src 111.211.3.205 metric 2
I'm curious about ...
9
votes
1
answer
37k
views
Understanding my route table
this isn't programming at all, but I've seen related topics so I thought why not.
I am using ubuntu and currently trying to learn basic networking. I read a lot of theory, so I understand the terms (...
8
votes
3
answers
53k
views
How to change default interface for internet?
I have a PC with Ubuntu server 18.04 installed on it and I'm trying to use this PC as a server. There are 2 interfaces involved here:
To provide Its internet, I am using an android smartphone that ...
8
votes
4
answers
12k
views
Use two networks at the same time?
I want to use Ubuntu 10.10 Server in a classroom, a computer lab whose bandwidth is provided by a local cable ISP. That's no problem, though the school network has an IP printer that I want to use. I ...
7
votes
1
answer
44k
views
Ubuntu 18.04 as a router
Ubuntu 18.04. I have been given a requirement to use Ubuntu as a simple router.
The Ubuntu box has 2 interfaces - ens33 DHCP, ens38 192.168.10.1/24. 33 is outside, 38 is inside for my purposes. ...
7
votes
2
answers
3k
views
Sharing an internet connection through the Ethernet port
I have a small living room PC (Bohica, running fully-updated Ubuntu 10.10/Maverick) connected to my HDTV that I use for web browsing and media streaming. It connects via WiFi (wlan0) to my Fedora ...
6
votes
3
answers
20k
views
How to use netplan to create two separate routing tables?
I have an Ubuntu 18.04 host with two network interfaces on two subnets. I would like to set up symmetric routing so that traffic received from one interface is sent symmetrically out that same ...
6
votes
2
answers
4k
views
Connecting to other LAN computers using their names [duplicate]
I have a LAN at home with my desktop and my laptop. IP addresses are allocated dynamically to both, so the IP number keep changing.
I try to connect from one to the other using places->Server, and in ...
6
votes
1
answer
2k
views
Configure NIC as dedicated VPN interface
I have a setup with two ethernet connections. I'm trying to configure it so that one of the interfaces (eth1) is configured for use with OpenVPN and is not a default route for anything. (Connections ...
6
votes
0
answers
5k
views
Integration multiple internet connections ISPUnity vs Ubuntu Bonding [closed]
I have Ubuntu 13.04 with 2 ethernet cards and a WiFi card. I also have 3 ISP connections. I have to configure linux to use all 3 connections.
My main concern is to increase outgoing bandwidth (FTP ...
5
votes
5
answers
25k
views
Network manager no default route
This problem started about three weeks ago, apparently after an update.
When I connect to a new wifi network, I reach local connectivity only; my laptop connects and receives an IP address ...
5
votes
1
answer
8k
views
Configuring routes so that vpn is only used for local resources
After searching far and wide for a comprehensive answer and trying out multiple solutions which didn't work I am turning to the community.
I am using a VPN connection to access certain network ...
5
votes
2
answers
36k
views
openssh server is refusing connections by blocking or resetting
On a quite fresh install of Ubuntu 14.04 (machine1), I have openssh-server with a completely default config.
When connecting from machine2 on the LAN, with an empty ~/.ssh, I get the following debug ...
5
votes
1
answer
1k
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 ...
5
votes
1
answer
3k
views
Hybrid wireless network repeating
Summary: I'd like to use two Ubuntu computers to extend/compliment an existing wireless access point.
I have a network which currently looks a bit like this:
What the diagram doesn't show is the ...
5
votes
1
answer
1k
views
Use a VPN only for some specific routes
I want to use a VPN only for some specific routes (so that the default route is not on the VPN).
So in the Add VPN dialog I selected the "Use this connection only for resources on its network&...
5
votes
0
answers
10k
views
Using Ubuntu 14.04 as router with iptables, clients can't go online. Probably DNS issue, iptables setting needed [closed]
CORRECTION 3: SOLVED! I needed to add the the official DNS server of my departement's VLAN as DNS to the clients.
I've read through a large number of posts about iptables issues when using Linux as ...
4
votes
1
answer
26k
views
How to route all traffic through vpn adapter?
I'm using SoftEther, but that may be irrelevant.
I have the following adapter:
vpn_myadapter: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 [redacted] prefixlen 64 ...
4
votes
3
answers
14k
views
IPv6 default route NOT being set netplan Ubuntu 18.04.2 LTS
Am unable to configure the default route using netplan on an Ubuntu 18.04.2 system. The route works when explicit ip -6 route add ... commands are issued.
Privacy extensions have been disabled: /etc/...
4
votes
2
answers
4k
views
Two hosts can't ping one another
I have two hosts in my network. Both are connected to my router. From another host, I can ping and ssh into both of them. Both have an excellent connection to all other hosts. However, they cannot ...
4
votes
3
answers
15k
views
How to setup multiple WANs with load balancing?
What is the best way to setup multiple WAN's into a Ubuntu distro and load balance?
I have two internet connections, one static and one dynamic and I need to combine and load balance them. I have been ...
4
votes
1
answer
3k
views
Routing and OpenVPN
O have small problem with routing and OpenVPN. After start of VPN connection all traffic goes through my OpenVPN server. But my server is behind ADSL router with 16/2 MBit Download/Upload speed. So i ...
4
votes
1
answer
23k
views
ip route add -- Error: either "to" is duplicate, or "10.0.0.1" is a garbage
19.04
The system boots without a default route. Then when I try to add a default route, there is this error.
The error occurs even when I completely clear the routing table.
The ip address is ...
4
votes
2
answers
29k
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), ...
4
votes
1
answer
3k
views
Ubuntu Server 12.04 as a router. Problem with DNS?? Or Routing table?
I have a virtualbox lab made up of 4 Windows 2008 R2 servers (DC/DNS,SQL,SHAREPOINT, EXCHANGE) that are configured with static ip addresses with NIC's attached to Internal network. Everything works.
...
4
votes
0
answers
7k
views
Trying to route traffic through a tunnel server error: "Nexthop has invalid gateway"
Short version: we have servers in another data center and we have an openvpn tunnel between them.
For the first time, I need to hang server on a different subnet from the tunnel server and I'm ...
4
votes
0
answers
862
views
Enable packet routing from network interface eth0 to bridge interface
I have a Ubuntu server connect to LAN 10.1.200.21/24 (bond0), and an Macbook connect to LAN 10.1.200.50/24 (eno1)
There are another bridge create by brctl addbr br0 in Ubuntu 10.3.100.1/24, and there ...
4
votes
1
answer
2k
views
My server does not forward packets between interfaces. What am I missing? [closed]
I'd like to get my Ubuntu 11.04 server to route packet between its two network interfaces.
The two ethernet interfaces (eth0, eth1) work apparently well as such.
Both have static IP addresses (192....