Questions tagged [route]

Command line tool for manipulating and listing the routing table.

Filter by
Sorted by
Tagged with
0 votes
1 answer
93 views

No connectivity in LAN (arp table does not learn IP addresses)

enter image description hereI have a server connected with NICs as follows, 10.0.11.11/24 - no gateway required. 10.0.10.11/24 - with gateway 10.0.10.240 192.168.2.11/24 - no gateway required. When ...
Vidura Thammitage's user avatar
0 votes
0 answers
139 views

Creating onlink route via bridged adapter unexpected behavior

I am trying to create an onlink connection between a Windows host and a Linux vm guest in VirtualBox using a bridged network adapter. The IP on the guest 10.x.x.x. The IP on the host is 192.x.x.x. I ...
ift-436t's user avatar
0 votes
1 answer
152 views

Fixing route and iptables for an OpenVPN tun0 interface, with a selected and safe routing

I did setup my router to use 3rd party VPNs for maximum security. Since the ISPs that I am using have blocked all known VPN protocols including OpenVPN protocols, therefore I am forced to configure my ...
osiaso 's user avatar
0 votes
0 answers
77 views

Why does route rule not work when I set mark after the net packet go through the 'forward chain' of iptables?

I want to that all the packets through 'farword chain' redirect to local loopback, so that I can proxy this traffic. I set the route rules of iproute2 (all the packet with mark 1 is routed to local ...
docklas buks's user avatar
0 votes
0 answers
64 views

Nat Local subnet to another gateway centos7

hi i have a centos 7 with ocserv and iptables installed i wanted to route all OCserv teraffic to ip tunnel (which established and reachable) my Server ip is 172.10.1.1 My OCSERV Users Subnet is : 192....
Keyvan Rahimi's user avatar
0 votes
0 answers
188 views

Adding static route between two VPN servers

I have two VPN servers (Wireguard and OpenVpn) and my goal is that the clients connected to both the servers should be able to communicate between them. Say laptop A is connected to wireguard VPN ...
Kavitesh Singh's user avatar
0 votes
0 answers
63 views

nftables: VM to VM Communication over Host IP

I have the following situation: A Debian Linux host with multiple VMs running on it. One VM is set up as a mail server. nftables on the host redirects the mail traffic from the world to the mail VM ...
jb_alvarado's user avatar
1 vote
0 answers
2k views

Docker containers can't connect to IP on the Internet but the host can

I've been scratching my head about this for a full day now, I'm hoping to get some pointers in the right direction. From the host I can connect to the Internet just fine, but any container I start ...
bash's user avatar
  • 11
1 vote
1 answer
2k views

Allowing a route to/from network when there are multiple networks

I have tough one here but can't seem to figure out the right routing. I have a server (serverA) that is on two separate networks: 192.168.200.x/24 & 192.168.117.0/26. This server has a hostname (...
Derek Edwards's user avatar
0 votes
2 answers
465 views

What is the difference between route add x.x.x.x via gatewayip and route add dev interface?

I was so confused with my configuration. In my server I have 2 interfaces: eth0: 192.168.1.22 gw 192.168.1.1 eth2: 10.2.1.6 gw 10.2.1.1 I wrote a static route: ip r a 8.8.8.8 via 192.168.1.1 worked ...
bing0's user avatar
  • 1
-1 votes
1 answer
314 views

How to set routes on a linux EC2

How do I set the below values in linux? I'm able to set destination and gateway, but I can't find anything in the docs RE passing a flag for genmask, flags, metric, ref, use or Iface. Can anyone ...
CPdev's user avatar
  • 101
0 votes
0 answers
63 views

Static route to access IP/subnet beyond 2 interfaces

networkmap I'm trying to reach the CCTV camera feed remotely. By connecting to WireGuard VPN server in my home. The CCTV video server is also connected by VPN profile, its location is in my shop. The ...
Wild Star's user avatar
0 votes
0 answers
119 views

Can't create a pseudo network interface on Debian 11

I have a KVM based Debian 11 (bullseye) VPS with internet access on eth0 network adapter. The public IP has been assigned by DHCP. The IPs and Routes are as what follows: ifconfig and iptable BEFORE ...
Mohamad Reza's user avatar
1 vote
0 answers
147 views

How to isolate interfaces on a wireguard proxy server

I have a Wireguard server that I want to act as a public proxy to all my WG VPNs. My first wg config (wg0) is a standard road warrior scenario. This is the setup: ProxyPeer - wg0 address 10.0.0.1, ...
hKaspy's user avatar
  • 11
0 votes
1 answer
3k views

How to NAT-route network to Tailscale?

EDIT: I already spent 3 days going through different possible ways of handling this and settled on iptables. This is like the biggest-kept secret to me. No matter how much I read, I feel like I'm ...
Sawtaytoes's user avatar
0 votes
1 answer
3k views

How to add a static route to a host via interface using 'route' tool?

I'm new to *bsd systems. Usually in linux-based I add routes like that: # eth0 ip address ip a add 10.100.1.2 dev eth0 # gw is accessible via eth0 interface ip route add 10.100.2.1 dev eth0 # ...
Emilien Vidal's user avatar
0 votes
1 answer
4k views

Make IP route and routing rules permanent using nmcli on RHEL 8 / Rocky 8

I have a network interface for which I would like to configure routes. # ip address show br_10G_V888 6: br_10G_V888: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group ...
Nicolas De Jay's user avatar
1 vote
1 answer
111 views

Routing VPN access shared folder not working, other request type (ping, http, git) working

My Windows 10 client Routing throught vpn is working, pinging signal and other type of request (http, git, ...) also go through the VPN interface only access windows sharing folder is not - it always ...
MinhNV's user avatar
  • 11
3 votes
3 answers
6k views

netplan does not implement the route to gateway, in Ubuntu 22.04

sorry if this is trivial ... but I do not seem to be able to get netplan to set the proper route to the default gateway. I have to manually set it using 'sudo route add default gw [...]' to enable the ...
CvM_curious's user avatar
1 vote
0 answers
558 views

Bridging traffic between eth0 and wlan0

I have tried with this but can`t get it to work, the eth0 and wlan0 are already up and running so my setup is a lot easier. wlan0 has a DHCP already enabled and is correctly assigning the IP to the ...
homer69's user avatar
  • 11
1 vote
1 answer
73 views

Accessing Devices on SubnetA from SubnetB

Hi All been beating my head all day and will continue to do so but hoping someone can guide me in a direction. I am currently trying to plug an IP Cam directly into ubuntu machine that has an eth0 ...
Llewyn S's user avatar
0 votes
1 answer
138 views

Route traffic on datacenters without traffic usage

Imagine you have 2 servers, one on OVH and another one on Hetzner and each of them has a 500GB traffic usage limit. can you route traffic from Hetzner to OVH without traffic usage for Hetzner?
Mahdi's user avatar
  • 1
0 votes
2 answers
316 views

Want to set GRE as the default network

I have configured 2 servers, SERVER A and SERVER B. (I have followed this tutorial: https://community.hetzner.com/tutorials/linux-setup-gre-tunnel) I have used SERVER A for GRE tunnel to SERVER B (...
Ishan k's user avatar
1 vote
0 answers
62 views

Many external "On-Link" IPv4 addresses shown as Persistent routes in Windows

When I run route print on my "normal" Windows 10 Pro machine, the "Persistent Routes" section lists 136 (!) Network addresses with a /32 mask, and "On-link" as the ...
mivk's user avatar
  • 4,402
-2 votes
1 answer
243 views

Can two servers talk to each other via TCP by this configuration? [duplicate]

This is an interview question: There are two servers on Rank A, setup the network on the two hosts by following configuration: Server A: ifconfig eth0 10.10.15.129 netmask 255.255.255.0 up route add ...
J JIA's user avatar
  • 1
0 votes
0 answers
41 views

Linux Routing between Linux servers

I am trying to route traffic from server2 to the firewall using server1. here is the network diagram There is an IPSec site-to-site between 2 firewalls. The remote(right) site IP is 192.168.0.1 and ...
Shahid Mehmood's user avatar
1 vote
1 answer
463 views

Network Solution to allow LAN to communicate to a different SubNet via a Ubuntu BOX

EDIT: I have added a topology diagram to make it clearer. I want to access the subnet 172.19.X.X (BLUE) from LAN->M2 I am already able to do via M1 which has a static route. I trying to solve a ...
DrBug's user avatar
  • 111
0 votes
1 answer
189 views

Convert nginx @route config to Apache

I have a vue project, it transfers all request to index.html, but if i refresh page, server can't find route, so in Nginx I config location /admin { try_files $uri $uri/ @routeradmin;index index....
lolololhahahahaha's user avatar
1 vote
0 answers
1k views

Multiple DHCP NIC and local LAN - Debian, Proxmox

tl;dr: How can i get 3 NIC to route, backup/failover and communicate together? I got a proxmox server with 3 NIC vmbr1: company lan - dhcp (engineering department) vmbr2: robotics network (static) ...
MightyMirko's user avatar
0 votes
1 answer
112 views

Route lan traffic to specific subnet using a VM with OpenVPN

I have a OpenVPN connection to access private services (service1, service2). To access them, I must connect using an OpenVPN client on "MacMini". I would like use the OpenWRT router (192.168....
chepe263's user avatar
  • 101
0 votes
0 answers
592 views

Routing table for 2 interfaces

I have the following interfaces eth0 192.168.1.178 subnet mask 255.255.255.0 default gateway 192.168.1.1 eth1 10.4.0.6 subnet mask 255.255.255.252 default gateway 10.4.0.5 I want eth1 only can ...
c_c's user avatar
  • 1
0 votes
1 answer
658 views

OpenVPN tun not forwarding traffic

I'am wondering how to forward traffic from a gateway to a subnet. network setup I have this working setup. Host A, HOST C, and HOST VPN have interfaces from internal network IP addressing and ...
rootin's user avatar
  • 1
0 votes
1 answer
263 views

Unable to reach different network using ubuntu server as a router in gns3

My network is shown in the picture, I am trying to ping from a windows vm to an ubuntu vm in a gns3 network. But I get: "Destination host unreachable". Network: https://i.stack.imgur.com/...
Sergio Loza's user avatar
0 votes
1 answer
362 views

Routing all Traffic through a VPN Node while accepting incoming WAN Connections

I want to route all traffic through another VPN-Node, while: Keep the Connection to the VPN-Server active (already works) Still accepting WAN-Connections on that Client. My Client Node Configuration:...
Arakis's user avatar
  • 381
0 votes
0 answers
1k views

RTNETLINK answers: Invalid argument for specific IP Ranges

ip route add blackhole 64.79.89.0/19 ip route add blackhole 64.79.85.0/19 I try to add these ranges into route but they give RTNETLINK answers: Invalid argument I am not sure if it is about those ...
Cemil Ezal's user avatar
0 votes
2 answers
2k views

Add secondary IP to ESXi host from different subnets

I have to add a secondary IP to an ESXi host running ESXi 6.5. My objective is to allow communication between some machines running on a different local network and the VMs present inside ESXi through ...
M3m3l0rd's user avatar
1 vote
1 answer
7k views

Redirecting Netflix and Youtube traffic to another gateway by IP addresses on Mikrotik router

I help a friend in taking care of the network with few buildings with appartments for rent. During the holiday season all apartments are fully booked, and that means we have 40-60 guests. There are 18 ...
Kamil's user avatar
  • 157
0 votes
0 answers
733 views

Docker Messing With IPTABLES?

I have a problem with docker docker: Error response from daemon: driver failed programming external connectivity on endpoint containername (containerhash): (iptables failed: iptables --wait -t filter ...
lion's user avatar
  • 23
0 votes
1 answer
567 views

Routing two debian virtual machines on one network

I have two debian virtual machines on two different physical servers with 2 interfaces on each virtual machines. One port of each vm is connected to each other on a network with CIDR of /21. and there ...
xchan4's user avatar
  • 1
1 vote
1 answer
618 views

How to check an IP address is blocked by IP Route?

My server is constantly getting attacked by Amazon India servers. I added 35.154.0.0/16 range to the route for IP address 35.154.252.15 ip route add blackhole 35.154.0.0/16 But when I check if the IP ...
NecNecco's user avatar
  • 221
0 votes
1 answer
189 views

Isolating my docker container from the rest of my local network (route add reject not working)

I'm just simply trying to add a route to reject any traffic to other systems on my local network from my docker container, but seems like my route add command isn't working and I'm not quite sure why. ...
LewlSauce's user avatar
  • 151
0 votes
0 answers
744 views

ipv6 route add with next hop fails

I'm trying to add an ipv6 route on machine B to subnet behind next hop A: 2:2:2::2/64 +---+ 192:168:2::1/64 192:168:2::10/64 +---+ -----| A |---------------------------------------| B | ...
PieterV's user avatar
  • 101
0 votes
1 answer
206 views

How to set a public LB route to a proxy on AWS?

I built this traffic route in a VPC. Route53->ACM(SSL)->Public ALB->EC2(Nginx proxy)->Private ALB->ECS(Internal App) The EC2's security group is allowing tcp 80 and 443. The ECS' ...
uotn's user avatar
  • 17
3 votes
1 answer
2k views

What can cause 'Network is unreachable' when the link is up, the route is there, and the netmask is correct?

What could cause this? $ sudo ip route show 192.168.100.0/24 dev usb0 ...
Adam Bliss's user avatar
0 votes
1 answer
374 views

Add to route table destnation using this syntax *.mycompany.net

The reason that I am asking this question is that i a using VPN-slice (VPNC) with openconnect While running this command ip route add *.mycompany.net via 0.0.0.0 dev tun0 Error: any valid prefix is ...
Serge Zoghbi's user avatar
0 votes
0 answers
202 views

How to configure Fedora 34 with three NICs and three subnets to route traffic?

I have a Fedora 34 linux and it has a physical ethernet interface (NIC3), a physical wifi interface (NIC2) and an USB/Ethernet interface (NIC1) (USB LTE Dongle). I would like to use the NIC3 to route ...
supi007's user avatar
  • 96
1 vote
0 answers
1k views

Two instances of Dante proxy server with two interfaces

I'm running 2 instances of Dante server on my Linux machine, one of them is called danted which is supposed to connect me to the internet through the ethernet cable and the other is sockd which is ...
Shayan's user avatar
  • 85
0 votes
0 answers
421 views

route two interfaces that has ip of two different subnet

Yes I know it's a duplicate of many questions but I can't find my solution to them. I have a host virtual machine (ubuntu 16.04) that has two network adapters. one of them is connected to the gateway(...
Hassan Yousefzadeh's user avatar
0 votes
1 answer
337 views

Auditing specific route table operations

Does Linux have a way to audit operations run against a specific route table? I have the following config in my custom route table: default dev tun0 scope link 192.168.100.0/28 dev eth0 scope link ...
Mazzy's user avatar
  • 247
0 votes
3 answers
932 views

why MASQUERADE SNAT can block localhost connection?

I observed a weird behaviour on linux: First, I clean all routes and iptables rules: ip route flush table main ip route flush table default ip route flush table local iptables -P INPUT ACCEPT iptables ...
sebastien dontneedtoknowthat's user avatar

1
2 3 4 5
13