Stack Exchange Network

Stack Exchange network consists of 175 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 [routing]

Routing (in IP-based networks) is the process of selecting paths in a network along which to send network traffic.

0
votes
0answers
5 views

Manage a VPN TUN connection under fedora 29 dhcp routing dns

SoftEther is a nice project to establish a VPN a bit easily using both windows and linux enviorment. It has also a vpn azure ddns. My enviorment is A network 192.168.1.0/24 with various host most ...
1
vote
1answer
25 views

Web Server access via second interface

I’m trying to access a Web Service (port 8080) on my Raspberry Pi via both of the following interfaces (which have static IPs): Ethernet (eth0, 172.22.0.99, connected to a Netgear router). Wi-Fi (...
1
vote
0answers
15 views

Linux is caching routing and IP information for established connection. Asymmetrical routing issue

We have following setup : client (10.10.0.2) balancer (eth1: 10.11.0.3, eth2: 10.12.0.1) web-server (eth1: 10.11.0.4, eth2:10.12.0.2 and eth1:10.11.0.3 see below how) Masquerading router to route 10....
2
votes
1answer
48 views

Configure network interfaces for sip trunk

I have a Debian 9.5 server that I'm trying to use as a PBX server with a sip trunk, this machine has two network interfaces, one pointing to LAN another one pointing to my sip provider. This is the ...
0
votes
0answers
28 views

Networking problems: 2 interfaces with 2 gateways, seperated routing tables not working as expected

I have a server, running Ubuntu 16.04.5 LTS with 2 IP addresses on 2 nics: eth0: 192.168.1.5/24, gw 192.168.1.1 eth1: 192.168.2.5/24, gw 192.168.2.1 As I searched here and on Google, in order to ...
1
vote
1answer
44 views

Programmatically find unused Linux IP route table ID?

As part of a script, I'd like to temporarily add a route table for the duration of the script. ip route add default via "${ip}" dev "${dev}" table "${table}" . . . ip route flush table "${table}" If ...
0
votes
0answers
17 views

Routing over VPN Uplink - Packets do not traverse tunnel

I want to route between my home LAN and a remote LAN over a VPN tunnel between my home server and a remote server. Here's the setup: _________________ ...
0
votes
0answers
19 views

How to set a route after DNAT?

For example,a socket is sent to 1.2.3.4.I want to DNAT it to 1.2.3.5 and then choice a routing table for it. I try to solve it by myself,but failed because the route is before DNAT.
0
votes
0answers
20 views

VPN S2S IPSec. Linux strongswan to AWS VPN and routing problem

I want to connect my Linux Centos 7 to AWS VPC VPN Ipsec. I have got problem with a routing. My IPSec connection via Strongswan is UP. conn Tunnel1 auto=start left=%defaultroute leftid=...
1
vote
0answers
16 views

NAT box with two external interfaces and two network namespaces

I have an ARM embedded system with kernel 4.9.62 that has two physical interfaces as shown below: ________ +-------...
0
votes
1answer
28 views

iptables SNAT limit to specific network

I have one problem which I cannot resolve as I frankly don't know how, I haven't used iptables quite often.... I have one main linux router which is representing gateway for the internet access and ...
-1
votes
0answers
31 views

Shrew Soft Client as IPSec Gateway

I have a setup with a Debian server running OpenVPN (server and client) and Shrew Soft Client which is intended to be a VPN gateway. Routing packets from my local network (10.10.10.0/24) to the ...
0
votes
0answers
26 views

PiHole issues with dual band routers

I have a raspberry pi running pihole as an adblocker AND dhcp server, and a dual band router with two discrete signals send out {ssid1.2G and ssid2.5G} When the pihole dhcp service is on, my laptop (...
0
votes
1answer
63 views

Route traffic to specific network through specific interface

I have a Ubuntu server hosted on Digital Ocean and used as a VPN and through it I would like to access my other servers there over the local network (Private Network). But I am unable to access other ...
1
vote
1answer
21 views

3proxy via pptp-linux VPN

Good day. I have a situation: a computer with debian (K) is connected to the router (A), which distributes the network 192.168.1.0/24. There is another router (B) (it has a “white” ip), which ...
2
votes
1answer
31 views

firewalld to allow routing without NAT between NICs

As a network adminstrator, I often have to set up network gear for remote sites before shipping it. I have found it convenient to use a linux workstation with two network cards, setting the secondary ...
0
votes
2answers
45 views

Routing over Gateway

I have a very basic question about a routing issue I have right now. So my central server with the ip 10.0.0.1 of my own network is the router for the ip net 10.0.0.0/25. On the client 10.0.0.100 I ...
1
vote
0answers
28 views

Unable to add default route via VPN (openvpn)

Initially my routing table looks like this Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG ...
1
vote
1answer
77 views

Client based routing on a gateway

I have a network gateway (Debian) with two interfaces: eth0 and tun0. In general all traffic from all clients is routed through tun0. I would like to change that in the following way: client a‘s ...
6
votes
2answers
383 views

'ping' uses localhost instead of public IP address

Let's say my server has IP address 11.22.33.44 and hostname server1.mydomain.com. When I ping server1.mydomain.com, it looks as if ping is actually using the public IP address: # ping server1....
1
vote
0answers
26 views

Route for hosts in LAN should not handled by VPN-DNS

I use NordVPN-NetworkManager to handle my VPN servers. This works well with NetworkManager, with one single problem: Local hosts will not be resolved by my local DNS (Unify setup) but from the DNS of ...
0
votes
0answers
17 views

How to configure linux to use home router static names?

Once I configured my Mikrotik router (RouterBOARD 962UiGS-5HacT2HnT) to use static routes, like on the picture: I was using Debian 8 then and it worked flawlessly, I could access my smartphone, ...
0
votes
0answers
33 views

How can I set a gateway in a local network?

Homework disclaimer... So I have computer A whose IP address happens to be 192.168.0.81. This computer has a web server installed and exposes port 80. So typing 192.168.0.81 in the web browser ...
0
votes
0answers
31 views

Routing packets to a container that has a destination that is an interface's IP, stopped working in recent kernels:

I have a flannel-based k8s system with a container at 10.233.64.18. I also have an interface ens224:1 with the IP address 10.5.2.11 With older kernels (3.x) I'm able to force packets destined to 10....
0
votes
4answers
107 views

How can a computer assign an IP address to itself? Aren't IP addresses assigned to computers by routers?

I can do this: /sbin/ip addr add 172.17.0.12 dev eth0 This possibility conflicts with my (apparently overly simplistic and untrue) mental model of how assigning IP addresses work. According this ...
0
votes
1answer
73 views

Configuring Linux Mint as a Gateway

My trusty Slackware box died, and I had to replace it with an already built Linux Mint v18. I was hoping this would be a drop-in replacement, but routing has changed over the years with iproute2. I ...
1
vote
1answer
29 views

What is a Linux IP route without outgoing network interface (RTLINK answer lacking `RTA_OIF`) and how do I create one for testing?

When using RTLINK to query the available IP route from a (network-namespaced) Linux kernel, I noticed that on one test system RTLINK returns a route without a RTA_OIF attribute, that is, without an ...
1
vote
0answers
32 views

Return Packets Not Being Routed On A Linux Router I Built

I've created a router running Raspbian on a Pi and connected a bunch of clients to it. It's just a toy project and I only care about routing between the nodes, so I'm not using NAT or anything like ...
2
votes
1answer
186 views

Routing traffic through VPN using Raspberry PI

I have a setup like this: - Raspberry PI connected to router via LAN cable - Created a bridged connection between eth0 and wlan0 - using hostapd for wifi hotstop - configured l2tp/ipsec connection ...
1
vote
1answer
80 views

Routing traffic via different interface based on destination

I'm playing with iptables and routing. So I have an Ubuntu machine with 2 interface eth0(192.168.2.100, gw 192.168.2.1) and tun0(10.7.7.2, gw 10.7.7.1). I want traffic to this site ifconfig.me go via ...
1
vote
0answers
32 views

virt-manager + RDP = no connection [closed]

Trying to setup shareable folders between arch linux and win10 via RDP(remmina) but with no luck Guest is bridged to my main router, as well as host, but I haven't ping between two systems PS: I ...
1
vote
0answers
45 views

Run script when interface change it's status

I need static route when interface is up and delete this route when it goes down, but I have no interface config file to describe shell-command in it. I have IPSec tunnel created with LibreSwan and ...
2
votes
1answer
122 views

IPv6 routing Public to a subnetwork

Doing Linux/Debian IPV6 Routing from my vendor to a client not working. IPV4 NAT/routing is reliably working using iptables and dnsmasq, however, even with forwarding enabled on IPv6 I can't make it ...
0
votes
1answer
185 views

CentOS 7 Static Routing

I want to create a static route through a CentOS 7 Server (so that a print server can access a printer). CentOS 7 Server has two interfaces: em1 (10.0.0.5/24 faces the print server) and em2 (10.0.0.6/...
2
votes
0answers
32 views

User specific hostname

I have a linux and bsd system with multiple (virtual) network interfaces. On those systems there are multiple users. Each user should use its own interface and therefore address. Is it possible to ...
2
votes
1answer
135 views

Linux IPv6: Specifying policy routing table for default gateway learned from a router advertisement?

Is there any way to tell the kernel which policy routing table should receive the default route learned from an IPv6 router advertisement? My home network has native IPv6 service from Spectrum and a ...
0
votes
1answer
88 views

Can I assign a virtual interface of wireless to a network namespace?

I am trying to make a VPN router while keeping the host itself accessing Internet without VPN. The host has only one NIC which is wireless. So I have added two virtual interfaces via iw phy phy0 ...
0
votes
1answer
172 views

How to set persistent static routes in KDE desktop system with NetworkManager and systemd?

I have two NICs. In NetworkManager > IPv4 > Routes, I checked "ignore automatically obtained routes" for both interfaces. Then I used these two commands: $ sudo ip route add default via 192.168.1.1 ...
0
votes
1answer
49 views

How to find out the interface which is being used for internet?

I have multiple network interfaces and I am not sure which interface is being used for the internet connection. I tried the methods which are listed in the question How to find out which interface ...
0
votes
1answer
166 views

OpenVPN how to add route to AWS Load balancer

I have a load balancer in AWS, I want to restrict access in its security group to be accesible only from my OpenVPN server. Now, I would like to use push "route a.b.c.d 255.255.255.255" in server....
1
vote
1answer
26 views

How to specify a route among three interfaces in a router

I have this setup: 10.5.128.150 Ubuntu Ubuntu eth2 <------> server (10.5.128.154) client eth1 <----> eth1 ...
1
vote
1answer
36 views

Why isn't `route` accepting target argument with CIDR format?

I noticed these 2 command formats give different results: $ sudo route -v add -net <IP> netmask 255.255.255.255 gw <gateway> # succeeds without outputting text $ sudo route -v add -net &...
0
votes
1answer
182 views

How to simultaneously connect to two different networks via WiFi access points (laptop with one WiFi card)

I wish to use a laptop and simultaneously connect wirelessly to an intranet and to the Internet. Assume the subnet IP address ranges are 192.168.0.X for the network with Internet access and 10.10.0.X ...
0
votes
1answer
47 views

Iptables connecting between two subnets [duplicate]

I have a Linux machine (which I want to use as a gateway) and two other machines A and B. Gateway machine has eth0, eth1, and eth2. eth1 connects to machine A and eth2 connects to machine B. I want ...
1
vote
1answer
56 views

Output of `ip route show` seems incomplete: no default route, but internet is reachable anyway

On my Android phone, where I have a Debian system running in userspace (apt, GNU tools, and other software runs in a chroot, accessible through ssh), the routing table seems incomplete. Output of ip ...
0
votes
1answer
37 views

Change outbound IP - centos

i have a server (linux/centos) and my default ip is: 111.111.111.111 so i bought another ip (ip failover) 222.222.222.222 if i visit in browser 111.111.111.111 or 222.222.222.222 its opening same ...
0
votes
2answers
82 views

How to make routing changes permanent

I have the below routing rules to apply once tun0 comes up (which is a openvpn tunnel). These rules help push some clients on my network outside the VPN and direct to the internet. What is the best ...
0
votes
2answers
91 views

How can I validate parameters before calling “ip route add”?

I am using a program which sets etcd parameters which are expanded to calls to "ip route add ..." and I need those calls to succeed without error. The template uses a format such as: ip route add &...
0
votes
1answer
78 views

Network interface routing when using VPN

I want to connect to a VPN but not send all traffic through it. Here is how my network is setup with the VPN redirecting all traffic. This is the default with the vpn config not changed. $ ip rule ...
2
votes
2answers
512 views

How can I override systemd's choice of default route with two network interfaces?

Update: /etc/network/interfaces does not exist because I am using netctl profiles. I set up a VirtualBox instance running ArchLinux with two network adapters. Adapter 1 (eth0) is attached to a NAT (...