Questions tagged [route]

A route is the path through the network packets take in order to reach their destinations. The route command lets the user view and modify the IP routing table

Filter by
Sorted by
Tagged with
1 vote
0 answers
16 views

Openvpn unable to ping server, route says network unreachable

i have a situation where i have a server on the IP range of 192.168.255.0/24 and a subnet on the range of 10.0.0.0/24 I state the problem here before adding the config. I am pushing the route to the ...
user avatar
0 votes
0 answers
9 views

OpenVPN problem wih routing between subnets

Hi i have set up a system like this Situation Graph Here I have the server network at 192.168.255.1/24 and 2 subnets 10.0.0.1/24 and 10.0.1.1/24. I want these to be able to call a client that is in ...
user avatar
0 votes
1 answer
10 views

Is it possible to move broadcast and local routes in the local routing table to custom routing table without creating a name space?

I have a host with two interfaces. ens4 is mgmnt, ens3 is another network. # ip -br a | sort ens1 DOWN ens2 DOWN ens3 UP 172.16.10.1 ens4 UP 192.168.1.100 # ...
user avatar
  • 285
1 vote
2 answers
47 views

Openbsd wireguard to wireguard

I build a server (vps) which play the role of my gateway. My whole personal network is connected behind through wireguard. Every think works well, I follow more or less https://openbsdrouterguide.net ...
user avatar
  • 59
0 votes
2 answers
35 views

During the lifecycle of "iptables", in which step, will kernel take advantage of "route table"?

iptables. I have went though the manual of Iptables and known some basic concepts, e.g. chain, table, hook, rule and targets. In the Linux ecosystem, iptables is a widely used firewall tool that ...
user avatar
  • 115
0 votes
1 answer
19 views

Iptables - Wifi Router User Sessions to OpenVPN in VM

The goal is to route wireless user sessions from a TP-Link TL-WR902AC Wifi travel router on the same LAN to an OpenVPN Client in a virtual machine. My attempt at this is based on previous successful ...
user avatar
0 votes
0 answers
36 views

Ubuntu ping between modem and ethernet port via internally

Looking to solve a problem on: First PC, Ubuntu 18.04.5, contains one ethernet ports enp1s0 and one modem port wwan0 enp1s0 is 192.168.1.10 wwan0 is 2.149.113.40 Second PC, ubuntu 18.04, contains one ...
user avatar
0 votes
1 answer
18 views

How to access ubuntu server on two diferent public ips

I'm strugling with the current problem: Background info: Ubuntu 20.04 on dell R710 server I have 2 diferent internet connections with 2 isp supplied routers. I've connected eno2 to isp1 router and get ...
user avatar
0 votes
1 answer
15 views

Compare routes between Linux hosts

I have groups of hosts which require specific routes per group. Every now and again routes are modified, and I would like to write a script which can check for differences between hosts on the same ...
user avatar
  • 77
0 votes
0 answers
36 views

How to connect Linux Mint to internet via Windows PC with USB modem on the same LAN?

So I have a setup like this: The windows PC is my work PC and has a USB tethering to the internet provided with a huavei box that has a sim card in it. For that connection, I have set up internet ...
user avatar
0 votes
2 answers
24 views

why does a VPN need to access a public IP address directly (not through the tunnel)?

I am trying to understand how NordVPN works, from the IP side of things. After establishing a VPN tunnel, my public IP address becomes : $ dig +short myip.opendns.com @resolver1.opendns.com 138.199.16....
user avatar
0 votes
1 answer
241 views

nmcli get actual name of interface (e.g. tun0) from connection name

1.) I would like to get the actual name of an interface from the connection name used by nmcli. In my case, I have several VPN-connections, let's call one of them my-vpn. Now, I do nmcli con up id my-...
user avatar
4 votes
1 answer
12k views

netplan generate: `gateway4` has been deprecated, use default routes instead

When using netplan generate I kept on getting an error message: gateway4 has been deprecated, use default routes instead. For static IP address assignments in netplan, I've always used the structure:...
user avatar
  • 701
0 votes
0 answers
42 views

ppp as the primary interface with wifi as the backup

On Ubuntu 21.10, I have a cellular modem connected via USB that I need to be the primary interface on which all network traffic utilizes. However, I also need the wifi interface (in my case, wlo1) to ...
user avatar
0 votes
0 answers
27 views

How to add route that does not depend on network reachability?

I have a pptp server on Centos with Mikrotik routers connecting to it as clients, and I need to add routes between them to enable LAN-to-LAN communication. I have /etc/ppp/ip-up.local script like this:...
user avatar
  • 43
0 votes
0 answers
86 views

nmcli add a route to dev not a next hop

Need to add a static route with nmcli to a device interface. I would like to mimic a command like this with ip route (traffic sent to the interface NOT a next-hop ip) ip route add 4.4.0.0/30 dev ens4 ...
user avatar
  • 285
1 vote
1 answer
111 views

ip rule not respecting packet generation how to fix?

Problem: ip rule built to route L4 traffic out a specific interface are not respected when packets are generated with different source address. Overview I want to generate packets with a different ...
user avatar
  • 285
0 votes
0 answers
10 views

ping to window VMHost from LAN Host

I have a linux opensuse which host inside a laptop windows vmware named "A", I have another laptop named "B" which connect to "A". I'm fails to ping "A" vmhost -...
user avatar
  • 1
0 votes
0 answers
71 views

Find gateway address in CentOS 7

I want to find my gateway address in CentOS 7. The command cat /etc/sysconfig/network[/tt] returns the following: ##created by anaconda So I start to install os-installer sudo yum install epel-...
user avatar
0 votes
1 answer
31 views

Detecting if a specific route/tunnel is used when reaching a website

I need a way to detect if I'm visiting a website through a specific kernel route set by a VPN. The reason being: sometimes I forget my company's VPN on and I navigate to porn sites. I need to detect ...
user avatar
  • 304
0 votes
0 answers
382 views

How do I correctly set up a Linux VM as a gateway to route all traffic through a Wireguard VPN connection?

I have been banging my head against the wall for a couple of weeks trying to figure out how to set up a Linux VM on a Mac to act both as a NordVPN client and a gateway/router to forward all traffic ...
user avatar
0 votes
1 answer
86 views

Which of the multiple IPv6 addresses is used as source address and how is the decision made?

I have a setup with Computer A being directly tied to the router via a LAN cable and Computer B being connected via wifi. This is the output of Computer As ip addr command: 1: lo: <LOOPBACK,UP,...
user avatar
0 votes
0 answers
50 views

I can't configure persistent default routes on debian VMs with Ansible and Vagrant

My scenario is the following Those 2 VMs are automatically created with Vagrant, and then configured with Ansible. For the moment, I've been able to delete and add the desired default route with the ...
user avatar
0 votes
0 answers
33 views

linux device tun interface route configuration problem

Firstly, I have this route and following interface in my vmware linux pohjian@localhost:~> route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use ...
user avatar
  • 1
1 vote
2 answers
568 views

What is the difference between '0.0.0.0/1' and 'default'?

Crew, please take a look at the routing table below. Incoming ping requests from 172.17.4.x are accepted on dev ens160 and answered via dev tun0. What is the difference between '0.0.0.0/1' and '...
user avatar
0 votes
1 answer
42 views

Route to network via two different (bridged) interfaces

It is possible to have two different routes to the same destination network via two different interfaces? I have a network I want to reach: 10.0.0.0/24 from a host with multiple (bridged) interfaces, ...
user avatar
0 votes
1 answer
108 views

How to configure a Linux box to forward traffic baded on mac address?

I configure a Linux box as a switch mode by using the below commands: ip link add name switch type bridge ifconfig switch 192.168.1.2 ip link set switch up ip link set swp0 master switch && ip ...
user avatar
0 votes
0 answers
31 views

Set ppp0 for default route side wan netowrk

Set ppp0 for default route side wan netowrk I have a network configuration as follows default via 188.x.x.192 dev ccinet0 proto static 188.x.x.0 / 24 dev ccinet0 proto kernel scope link src 188.x.x....
user avatar
0 votes
1 answer
26 views

How to add ip rule after dockerd is up?

I want to add an ip rule that involves the docker0 interface. But docker0 does not exist until docker is up. ip rule will fail if docker0 does not exists. I could use a script that repeats until ...
user avatar
  • 179
0 votes
0 answers
41 views

ssh into a server which is connected to a VPN service, using ifconfig and route not ip

Same issue as described here: ssh into a server which is connected to a VPN service However I have no access to the "ip" utility. Just good 'ol ifconfig and route commands as I'm working on ...
user avatar
  • 53
2 votes
2 answers
244 views

linux 2 interfaces 2 gateway routing problem

I have a server, running Oracle Linux 8.4 with 2 IP addresses on 2 nics: link/ether 34:48:ed:f6:d3:5c brd ff:ff:ff:ff:ff:ff inet 10.154.224.252/24 brd 10.154.224.255 scope global noprefixroute ...
user avatar
1 vote
1 answer
71 views

How do I do the required route(s) for getting internet traffic to/from my client assigned public IPv4s on my L2TP server

I have a server running Ubuntu Server 20.04 which has two ethernet interfaces and is hosting the L2TP server (using accel-ppp). 'eno1' has a single public IPv4 address assigned. 'eno2' has access to a ...
user avatar
  • 21
0 votes
1 answer
85 views

How "ip route add" if mask not CIDR

How add to route, for example IP Range 192.168.0.0 and mask 255.255.255.0 I know that: 255.255.255.0 = 24 (cidr), but i need make command in sh script, like: route add -net 192.168.0.0 netmask 255....
user avatar
  • 95
0 votes
1 answer
501 views

how to use cURL on specific route

I have 2 ISPs on multi-homing and am trying to use curl http://v6.ipv6-test.com/api/myip.php to retrieve my current IPv6 address and store it on a log. But due to having 2 ISPs, I need to do it for ...
user avatar
  • 222
0 votes
0 answers
64 views

Pinging a shut down loopback interface from another system

We have two device R1 and R2 running FreeBSD 9.2, on R1 we have set an ipv4 address for lo1: R1#: sudo ifconfig lo1 192.168.80.80 Then add a route to R1 in R2: R2#: sudo ip r add 192.168.80.80 via ...
user avatar
  • 103
0 votes
0 answers
33 views

setting up ip route to access internet via a node connected to internet directly

I have 3 nodes connected via a router one of the machine is connected to internet via a different nic interface . Other machines cannot be connected the same way as the machine that is currently ...
user avatar
0 votes
0 answers
121 views

How to route traffic to a gateway on a VPN network?

I'm in a Docker container, on a host connected to a remote network via VPN, and want to route all traffic to 10.43.0.0/16 to 10.148.185.170 (host on the VPN network). sudo ip route add 10.43.0.0/16 ...
user avatar
  • 3,277
0 votes
1 answer
133 views

Oracle Linux: How to set the metric of a NIC?

How can I set the metric of a network interface (DHCP) permanently in Oracle Linux (think it is managed my NetworkManager)?
user avatar
  • 479
0 votes
0 answers
291 views

How to add permanent ecmp route in linux

I'm creating following ECMP route in linux - [root@compute2 ~]# ip route add 30.1.1.1/32 nexthop via 10.1.1.10 weight 1 nexthop via 20.1.1.10 weight 1 [root@compute2 vagrant]# ip route show 30.1.1.1 ...
user avatar
0 votes
1 answer
21 views

What is the best way to store gateway information on redhat system

I have herd 3 different ways to store gateway information on redhat system /etc/sysconfig/network /etc/sysconfig/static-routes /etc/sysconfig/network-scripts/route- files I am not aware of ...
user avatar
0 votes
0 answers
45 views

Re-write source IP to vlan tagged IP

My setup is as follows: PC1: IP of normal interface 10.0.0.11 IP of vlan interface 11.0.0.11 PC2: IP of normal interface 10.0.0.12 IP of vlan interface 11.0.0.12 I can ping 11.0.0.12 with no ...
user avatar
  • 1
0 votes
1 answer
96 views

Route traffic from a daemon through a specific interface

I have a server with two interfaces: eth0 and dummy0, both have different public IP. How to route all traffic from specific program (daemon) through dummy0, using iptables? I want the daemon to ...
user avatar
  • 152
0 votes
1 answer
108 views

Networking between 192.168.0.0/24 & 192.168.2.0/24 Results in Partial Packet Loss

I am attempting to route between subnets 192.168.0.0/24 & 192.168.2.0/24 across two separate routers. The first router (192.168.0.1) manages 192.168.0.0/24 and the second router (192.168.2.1) ...
user avatar
1 vote
2 answers
2k views

What's the meaning of these ip route rules

There are some IP route rules in an old code, but I don't know the meaning of them: ip route flush table 100 ip rule add fwmark 1 lookup 100 ip route add local 0.0.0.0/0 dev lo table 100
user avatar
0 votes
0 answers
157 views

How to use ssh with slirp to reach out Internet from a limited jump server?

Sorry that I might be wrong, yet I have some impressions from QEMU that SLIRP has the ability to do both ppp server and NAT stunt the same time. The situation is, I'm under a very limited network ...
user avatar
1 vote
0 answers
169 views

systemd-networkd multicast route removed when no carrier

We have a gateway product running Ubuntu 20.04 LTS. It has two network interfaces (WAN/LAN) configured using systemd-networkd. We use multicast messages to communicate to thousands of IoT devices ...
user avatar
2 votes
1 answer
357 views

Use the internet access of another network interface when the main one is down

I have an embedded system running Ubuntu 18.04 LTS that has a 3G modem and an Ethernet interface (eth0). Both of these interfaces have access to Internet. When the internet is unavailable on the ...
user avatar
  • 131
0 votes
0 answers
48 views

Ping same server with different interfaces using different ports

In my SoC imx6 I have two 4G modems using two different operators. I would like to give a score to each one so I can detect the best interface for my critical application. I decide to use a small ...
user avatar
0 votes
1 answer
183 views

can ping but not ssh - eth0 lan

Stumped which direction to troubleshoot...... Server1 can ssh out to any computer but no other computer can ssh to Server1. Even if Server1 ssh to Server2 -> Server2 can not ssh back through same ...
user avatar
1 vote
0 answers
73 views

ppp as a network switch

I have two devices which uses petalinux as OS. They are custom devices to use on some projects. Their purpose is to act as routers with cabled connection (not ethernet). Devices are connected with ...
user avatar
  • 11

1
2 3 4 5
7