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.
374
questions
0
votes
0
answers
114
views
Use Ubuntu server as VPN PRovider
I recently came up with the following project.
My home network consist of:
an ISP modem/router
a second router used as an access point/switch
an Ubuntu server used as file server - cloud server - ...
1
vote
0
answers
1k
views
How To Add Docker Container Static Route?
Have a server with 4 subnets - 1 usable IP, each configured on separate network port on the network card. Running 4 docker containers, but they are randomly accessible upon reboot. How to add a static ...
1
vote
1
answer
968
views
Prevent routing of DHCP traffic
First, I'm aware that similar questions to mine have been asked elsewhere (I've read many of those posts!) but I've not been able to figure out a solution to my problem, so I'm asking for help.
My ...
1
vote
1
answer
222
views
What is the significance of order in the device list of ip route output?
I have this output for ip r
default via 10.0.0.1 dev enp0s20f0u1 proto static metric 1000
default via 10.0.0.1 dev wlan0 proto static metric 2000
10.0.0.0/24 dev wlan0 proto kernel scope link src 10....
0
votes
2
answers
76
views
Skip route table
I want to create a VM VBOX Ubuntu to be a gateway in my home lan to route to my enterprise VPN.
The problem is that my VPN when is stablished, create a route per route entry with metric 1 to be routed ...
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&...
0
votes
0
answers
308
views
No route to host in one direction
I am able to ssh from one host in Mexico to another in New Jersey, but when I start the ssh from the New Jersey host going to the same Mexico host, I get "no route to host". While ...
0
votes
1
answer
621
views
Preferred way to copy route configuration to different host?
I'm replacing a CentOS server with an Ubuntu 20 one. I need to duplicate the older servers routing configuration. The outputs of ip route show and route are not directly usable as inputs.
I'm a bit ...
0
votes
1
answer
149
views
Unable to ping or connect to internet via WLAN
Problem statement
Hi 👋 . I needed to auto-connect my system to another system via Ethernet so I assigned both these systems respective static IPs. On my host system, I did this by editing the /etc/...
0
votes
0
answers
53
views
How can I solve the routing problem when using an industrial camera?
I use an industrial camera. I also have access to the modem. The problem is that if the Internet comes up first and then the program has access to the camera, then the camera gives an error and has no ...
0
votes
1
answer
218
views
How to connect pc to internet and directly to NAS using different interfaces
My goal is to connect my PC and my NAS directly using two USB to 5 Gbe adapters and both of them to a switch that has internet access via 1Gbe NICs.
So the initial setup was:
QNAP TS-431P connected ...
1
vote
1
answer
2k
views
routing table incorrect after netplan static ip configuration
Here is my netplan configuration on ubuntu-server 20.04.2 (virtual machine) (virtual box).
/etc/netplan/00-installer-config.yaml
$ cat /etc/netplan/00-installer-config.yaml
# This is the network ...
0
votes
0
answers
90
views
VDS provider blocking port that I need. How to forwarded over other VPS
I have an Ubuntu 20.04 LTS. I was surprised to get to know that the VDS provider blocking port that I must to have opened. There is no way for me to push them to open it. I have to organize that port ...
0
votes
1
answer
151
views
Can netplan bring down the routing for an interface entirely if another interface has a priority route-metric?
I figured certain quirks with networking in several libraries that I do not want to deal with fixing individually are gone if the interface that is not the priority route-metric is taken out of the ...
1
vote
1
answer
791
views
Making Ubuntu 20.04 into a Router: something keeps adding default route for the lan interface
I have read a lot about NetPlan - it sounds awesome compared to the old interfaces file...
But everything I've tried generates a default route to the lan interface - (which disables access to the ...
0
votes
1
answer
38
views
Routing ubuntu server 20.10
I can't configure routing on my server because of:
https://i.stack.imgur.com/Q64Gr.png
Have you any idea?
0
votes
1
answer
7k
views
Error: Netmask doesn't match route address
I am trying to add a new route in Ubuntu 16.04 by following command:
sudo route add -net 192.168.245.2 netmask 255.255.255.0 gw 192.168.0.200 enp2s0
But getting this error:
route: netmask doesn't ...
0
votes
0
answers
674
views
Configure route metric of tunnel using Netplan
Under Ubuntu 20.04 LTS focal
I previously configured a net64 tunnel to use the HE-IPv6 service. Below is my config:
.
├── 50-cloud-init.yaml
└── 51-he-ipv6.yaml
# 50-cloud-init.yaml
network:
...
3
votes
2
answers
1k
views
Can someone explain interactions between iptables, nftables and bpf?
I'm on Ubuntu 20.10 trying to do some routing config for my virtual network, and I'm confused about the interactions between the 3 main types of firewall technology used in modern Linux distros, ...
1
vote
1
answer
2k
views
How to route all traffic to a dynamically configured default gateway?
Some context:
I'm trying to create a virtual private network on my laptop using VirtualBox. I want the virtual machines to be inside a private network, so a virtual machine can only be reached by ...
0
votes
0
answers
359
views
How Can I Configure Keepalived to Not Change the Routed Ip?
I am using Keepalived for IP Failover of two IP addresses.
Server 1 : 10.0.0.1 , Master
Server 2 : 10.0.0.2 , Backup
VirtualIp : 10.0.0.3
The virtual IP is set by me on Keepalived configuration file ...
2
votes
1
answer
139
views
Ubuntu 16.04 issue connecting wired and wireless connections to the router
I am running Ubuntu 16.04. I have a pretty simple networking setup, a router with both wifi and wired connections. Separately I can connect to the router using either wifi or ethernet and both work ...
2
votes
0
answers
132
views
Ubuntu Server reviving bad route at reboot
I recently moved an Ubuntu 18.04.5 server from one network (192.168.101.X) to a new network (192.168.1.X). The server (and all network devices) are addressed by DHCP, issued by an Edgerouter Lite. ...
0
votes
1
answer
3k
views
IPSEC/IKEv2 StrongSwan applies only the first route from split-include, the rest is ignored
I have an IPSEC/IKEv2 VPN server (on a MikroTik router) and I'm trying to connect to it from my Ubuntu 20.04.1 LTS system. The server uses x509 certificates and private/public key pairs for ...
2
votes
2
answers
4k
views
ip_forward=1 in Ubuntu 20.04 after reboot fails
I have Ubuntu 20.04 configured as a router with nftables and frr (ospf configured) installed.
I have configured two interfaces (ens33 and ens34) in different networks,
forwarding is configured in /etc/...
0
votes
1
answer
2k
views
Default gateway route being automatically added to main table
I have 2 network interfaces connected to my machine. (Fwiw it's an aws instance with the primary (default) ENI and an additional, secondary ENI attached, each with a public and private IP address ...
0
votes
1
answer
237
views
Is it possible to setup routes that the internet works only through VPN connection?
Is it possible to set up routes that the internet works only through VPN connection? If the vpn is disconnected then the internet shouldn't work.
I found the solution here with the firewall, and it ...
0
votes
2
answers
256
views
nameserver change breaks server
I am using Ubuntu 20.04.1 LTS. I have very limited knowledge on how to set the network configuration after the installation of the server.
I run a small subnet with one static IP server on it next to ...
0
votes
1
answer
475
views
What do these iptable rules mean?
These:
sudo iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
sudo iptables -A FORWARD -i tun0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i wlan0 -o tun0 -j ...
1
vote
1
answer
375
views
TCP Forceful routing through designated ethernet interface does not work in ubuntu 18.04
I'd like to establish outgoing TCP path through any designated ethernet interface even if the designated ethernet interface is not configured as default gateway.
My device has two Ethernet Interface (...
1
vote
1
answer
542
views
Network routing and port forwarding problem
I have 2 networks (graph in link below)
A: 10.0.0.0/24
B: 192.168.1.0/24
In network A, all devices are connected via a switch. Some devices provide certain services such as ssh or access to a database ...
0
votes
1
answer
109
views
Static route from 192.168.98.192 to 192.168.72.201
I'm new to this so it might be an obvious question.
I've given two servers on the same network, one with ip 192.168.72.201 and another one 192.168.98.192.
They can't communicate with each other ...
0
votes
0
answers
158
views
Why do I loose ping after adding static route
Since I live in one of the countries with most freedom ever been presented to citizens, I'm using a VPN all the time to connect to free world. Well, this way my connection gets slower but as I grow ...
1
vote
1
answer
1k
views
Dual NIC Configured as Router with NAT
I have a PC running Ubuntu 18.04 and am attempting to configure the two GbE interfaces as a gateway/router. I've referred to some related questions and attempted to follow guides such as this one: ...
0
votes
1
answer
108
views
Plugging in ethernet (internal network, no inet) cuts of Wifi inet [duplicate]
Im still pretty new to linux, but Ubuntu is my favorite.
As the title says:
Plugging in ethernet (internal network, no inet) cuts of Wifi inet.
I am using AnyDesk to connect to a ubuntu 20 box. All ...
1
vote
0
answers
631
views
netplan: ignore routes, keep gateway
I have a Ubuntu 20.04 server which has three network interfaces/connections:
eth0 is configured via DHCP, should have the default route, everything fine so far.
wg0 is a wireguard interface wich ...
1
vote
0
answers
65
views
Dual NIC silently rejecting all incoming traffic from one interface
In my server, I have two ethernet cards:
enp0s17, local IP 192.168.0.7, router's public address x.x.x.x, netmask 255.255.255.255
enp0s18, local IP 172.16.0.7, router's public address y.y.y.y, netmask ...
0
votes
0
answers
513
views
IP Route resets after restart
I have an IP Route that's been created by docker-compose, here is the relevant line from ip route show:
172.17.0.0/16 dev br-a5625859b0ca proto kernel scope link src 172.17.0.1 linkdown
This clashes ...
0
votes
1
answer
118
views
Connecting a remote client to an openVPN server running on Ubuntu
I am really stuck on this one - please help.
I have an openVPN server running on Ubuntu 18.04.
I have a Macbook running as a client.
The Macbook connects to the VPN server without problems if it ...
1
vote
0
answers
2k
views
Trouble adding static routes in /etc/network/interfaces
I'm trying to add in static routes into /etc/networking/interfaces, but it's not working:
I'm using the following commands per this article in order to connect with my Docker containers using ...
0
votes
1
answer
2k
views
Error configuring static routing using cli
I'm trying to add a static route on my Ubuntu Desktop 16.04 machine with the cli, but with no success. I'm using the classic ip route command: ip route add x.x.x.0/24 via y.y.y.y dev eno1 (hid the ...
0
votes
1
answer
1k
views
Redirect traffic from server on cloud to another machine on local host in VPN
I have a virtual server instance on a cloud with Ubuntu 18.04 running on it which has public ip 123.456.789.100 (dummy ip here). I installed OpenVPN server which has added private ip of virtual server ...
0
votes
0
answers
1k
views
Default route being added randomly while NIC is already up, post-up action doesn't help
I have an Ubuntu 16.04 machine that I'm using as a temporary router while I fix some issues with my normal router.
The network looks like this:
Thus, the normal flow of traffic out to the internet ...
0
votes
0
answers
1k
views
How do I set the modem route metric to 50?
The cellular configuration file for NetworkManger has the route metric set to 50. But on boot the route metric for the modem connection is 700. When the connection is taken down and brought back up ...
0
votes
1
answer
1k
views
Make a permanent route change to a specific IP through a specific interface
I have a setup where I use a 10G bond to work with a remote system, but it intermittently gets disconnected, as traffic will occasionally be routed over another interface. I think I have the problem ...
0
votes
0
answers
159
views
Can not ping from one node to another while both nodes connected via an ethernet cable
I have two ubuntu machines each with two physical NICs.
I am trying to create a private network between two of them connecting of one node's NIC with the other node's NIC.
In Node 1 when I run
...
1
vote
1
answer
832
views
How to view all current networks around me
I have an Ubuntu Server hosted on a raspberry pi 4. There is no desktop on it, only a terminal. I am trying to figure out how I could view all possible networks around me I could connect to. Then, I’d ...
0
votes
0
answers
107
views
routing packets to default gateway
I've got two networks (NET0, NET1) and my default gatway to ISP is in NET0. Routing between NET0 and NET1 is done by an Ubuntu Server (GATEWAY1). Everything works fine, all hosts in NET0 and NET1 are ...
1
vote
0
answers
262
views
Multiple NIC Configuration Stopped Working ( Multiple NIC on Same Subnet) Routing Issues
Server : Ubuntu Server 18.04.4
Router : pfSense 2.4.4
Switch : tp-link TL-SG1016DE
The Short : How do I configure multiple NIC on the same subnet/VLAN? Would like traffic that goes in one NIC to ...
2
votes
1
answer
2k
views
How can I connect to a Windows 10 remote desktop over openfortivpn from behind a router?
I am trying to set up a remote desktop to my office Windows 10 machine from my home PC running Ubuntu 19.10, using Remmina. My home router is a Synology RT2600ac. My company uses a Fortinet SSL-VPN, ...