Stack Exchange Network

Stack Exchange network consists of 174 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 [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

0
votes
1answer
17 views

iptables, vpn server, routing

I set up my server (let's call it server A) firewall so that no input/output rules be allowed, apart from: - incoming ssh conection - outgoing ssh connection This is working well by now! Now, i ...
0
votes
1answer
19 views

NAT ETH1 PORT 5000 Traffic to PPP0

I have a Digi i.MX6UL running a variant of Linux. I have attached to the ETH1 (169.254.0.1) port an Advantech EKI-6332GN Router (169.254.0.5). I have a Zebra MC67 (169.254.0.3) device running ...
2
votes
0answers
14 views

No such process (3) when not connected to a network (AF_ROUTE)

When I am connected to a network, I can send a struct rt_msghdr* to the kernel and receive a corresponding route. However, when I disconnect from the network and try to send the same route message ...
1
vote
0answers
25 views

iscsiadm: cannot make connection to <IP>: No route to host

when I try iscsiadm discovery: iscsiadm -m discovery -t sendtargets -p <IP> I get this error: iscsiadm: cannot make connection to <IP>: No route to host however, I can ping the IP fine....
1
vote
0answers
16 views

Configure (route) specific connections outside of a VPN

here is my situation: I am using NetworkManager (Gnome) to handle all my network connections. I am connecting to a VPN with OpenVPN. My firewall (nftables) drops all trafic outside of the tun0 ...
0
votes
0answers
30 views

How to prevent kernel routes with metric 0 being set up?

I did setup a MACVLAN interface on Debian Stretch with systemd-networkd like this: wlan0.network: [Match] MACAddress=b8:27:eb:20:d3:c6 [Network] DHCP=yes MACVLAN=wlan0.milight1 [DHCP] RouteMetric=...
3
votes
1answer
108 views

ssh routing between multiple linux system containers transparently

I have system where I run multiple containers. Each container is a linux system with a specific purpose and every container has a ssh server enabled. I want to make an entity that manage new ssh ...
-3
votes
3answers
160 views

Command route not found [closed]

I can' t use the command route: route bash: route: command not found Why is it not found? (I'm using debian 9). I tried to run it as root but it still does not work. However it is supposed to work ...
0
votes
0answers
35 views

Not able to forward data to ipv6

Using socat to route incoming ipv6 to ipv6. The destination is a pod/container. From the container tcpdump is used to capture the packet. Am I using tcpdump to verify the incoming packet correctly? ...
1
vote
0answers
21 views

Mobile Broadband for only one host

What is the easiest method to configure a mobile broadband connection in a way that: no default route is added a route to a specific host is added The connection is managed by Network Manager. The ...
3
votes
1answer
277 views

Permanent outgoing IP address with enabled DHCP [closed]

I have some problems making my outgoing IP address configuration permanent. I googled a lot and I do not find configuration that work for me. Assume my network is 192.168.1.0/24 with default gateway ...
1
vote
0answers
53 views

How to route traffic from ethernet to a tun device (create a VPNed ethernet port)

I have a Network Video Recorder which is connected to a raspberry pi directly through ethernet, and the raspberry pi is connected to internet through wlan0. I want to route all the traffic from the ...
1
vote
0answers
27 views

SSH connection to local Rasberry Pi sporadically loses route to host [closed]

I'm trying to connect to my Rasberry Pi which is connected to the same network as my laptop. Most of the time everything works fine and I can SSH to the Pi no problem. Sometimes however (...
0
votes
1answer
32 views

How do I determine what network interface this is and why it's blocking me from a subnet? [closed]

My router has my network separated into two subnets - 192.168.1.0/24 for wired and 192.168.2.0/24 for wireless clients. My home server lives at 192.168.1.42 and is not reachable from a client on the ...
0
votes
1answer
67 views

Routing traffic to my ipv4 routes except 0.0.0.0 address?

How to route traffic to my ipv4 routes except 0.0.0.0 address because I don't want it to be the default interface default via 192.168.5.1 dev enp7s0 proto dhcp metric 100 169.254.0.0/16 dev enp7s0 ...
0
votes
2answers
338 views

Route a specific host to different gateway

I have a basic Ubuntu 18.04 setup where the computer has two interfaces - one for internal (enp4s0) and one that heads to the internet (enp5s0). On the internet interface I successfully have a VPN (...
0
votes
1answer
231 views

How to set an additional route on the same gateway with systemd-networkd

Due to some network peculiarities involving VPNs and conflicting IP ranges, I have two subnets routing to two different interfaces. I would like to make one IP address in one subnet go out via a ...
1
vote
1answer
492 views

How can I use ISC KEA DHCP (DHCPv4) server to push routes to clients?

QUESTION: I have an infrastructure with 5 servers (Server #1, #2, #3, #4 and #5). I am trying to use a server (Server #5) with ISC KEA DHCP (DHCPv4) ( https://kea.isc.org/wiki ) to push routes to ...
2
votes
1answer
390 views

Use dnsmasq to pushing routes to my clients on a small local network

I'm trying to use dnsmasq to pushing routes to my clients on a small local network. However my clients (Server #1, #2 and #3) can not use these routes. The dnsmasq service is running and I do not ...
1
vote
2answers
507 views

How to route to a gateway on different subnet? [closed]

My network is on 10.3.4.x/24, with my router on IP 10.3.4.254. I need to ssh access my server on IP 10.3.4.100 but when I set up the server I forgot that I restricted ssh access to 192.168.x.x IPs ...
0
votes
2answers
46 views

Routing multiple Virtual IP (192.168.11.X) to connect with test server (192.168.10.246)

We are trying to setup a test bed for our server testing, to simulate multiple connection / msg handling, I am trying to connect to our test server from a virtual IP. on the client machine (Debian) ...
0
votes
1answer
420 views

route traffic on certain port through certain interface?

I am currently running a system in which I need to be able to send and recieve HTTP and HTTPS traffic directly, however all other traffic must go via a VPN. My setup is : x2 interfaces : eth0 (...
2
votes
1answer
168 views

Compiled modules support for openWRT

In order to add driver for my wireless adapter, Bus 001 Device 002: ID 0bda:8172 Realtek Semiconductor Corp. RTL8191SU 802.11n WLAN Adapter I am building openWRT for my GL.iNet AR150. The ...
0
votes
1answer
33 views

Force internet traffic through wifi

I currently have a setup where my rpi 3b (raspbian jessie), is connected to two routers, using eth0 and wlan0. I want to using eth0 only to communicate with another device in tha LAN. And i want to ...
0
votes
0answers
16 views

How to setup a local gateway

What I want to accomplish I would like to setup three virtual machines connected through a virtualbox internal network. Each machine has a different role: there is server, a client and a middlebox. I ...
0
votes
0answers
65 views

Setting up classless static routes manually in GCE

In GCE, the DHCP server return the IP address with mask of 32 bits. Making the instance the only one in its subnet. It also return couple of static routes (RFC3442) that need to be configured. Example ...
0
votes
1answer
328 views

pppd default route configuration

I'm running pppd in a Ubuntu VM. When it's connected the ip route is like this # ip route default via 192.168.154.2 dev eth0 onlink XX.XX.250.5 dev ppp0 proto kernel scope link src XX.XX.250.43 ...
2
votes
0answers
89 views

Adding a higher-priority route allows communication?

So for some reason I am having connection issues with my raspberry pi. The weird thing is that I can easily ping everything else I have on the local network. I "solved" it in the end by manually ...
1
vote
1answer
293 views

How to route traffic over specific interface on linux (debian)?

I would like to route traffic over usb0 (a cellular modem) when it is available instead of eth0. The ip address for usb0 may change over time. How do I create a route in this scenario since the ip ...
0
votes
2answers
49 views

equivalent command `route -n` in BSD

Command route -n of BSD return nothing $ route -n usage: route [-dnqtv] command [[modifiers] args] It's output of GNU version What's the equivalent in BSD?
-1
votes
1answer
866 views

How to understand the output of route

Saying that I'm configuring the network of an Ubuntu system. So I may edit the /etc/network/interfaces as below: ... address x.x.x.x netmask x.x.x.x gateway 192.168.1.1 Then I execute the command ...
0
votes
1answer
155 views

On OS X, how to grant network 192.168.3.* access to network 192.168.1.*?

I connect to Wifi with OS X, it is network 192.168.1.*. Then I also connect a second computer to Mac's ethernet port, which is configured as network 192.168.3.*. I don't need the eth-box to access ...
6
votes
3answers
801 views

How to set a static IPv6 default route with dhcpcd?

I am going to set a static IPv6 address and a corresponding IPv6 default route with dhcpcd. I have looked through man dhcpcd.conf, but to find nowhere mentioning how to set an IPv6 default route. My ...
1
vote
1answer
52 views

Adding a route to make server directly accessible over VPN, for specific subnet?

I have a Linux machine on a segregated network that I VPN into. When I VPN in, I get assigned a virtual IP by the VPN server like 192.168.251.x I've found that when I VPN in, I can RDP to Windows ...
1
vote
0answers
59 views

Connect 2 networks through a Linux gateway

I am moving my first steps in Linux networking and I'm a bit stuck on this. I have 2 private networks 10.0.1.0/24 and 10.0.3.0/24 And I want to be able to ping the machines from one network to ...
0
votes
1answer
796 views

Two NICs, two gateways, multiple aliases under each

Last year I set up a CentOS 6 machine with two NICs, each using a separate gateway. Multiple aliases exist under NIC#1 (em1, em1:0, em1:1, ect), but currently only one interface exists under NIC#2 (...
0
votes
2answers
1k views

How to change default ip rule priority for main table

Please, suggest how to add ip rule right after main rule. I have the following configuration and it needed to be restored on boot. 32766: from all lookup main 32766: from all lookup upstream01 ...
5
votes
3answers
733 views

What is the portable way to get the default route source address?

I need to get the IP address used as the source for packets sent via the default route. (EDIT) Please note that I am referring to the default route, the one marked as default in ip r (see at the end ...
1
vote
1answer
2k views

Make added route persistent after restart

I am adding this line to add a route Route add –net 0.0.0.0 netmask 0.0.0.0 gw 95.98.108.14 However, when I restart the machine, the route is gone and I had to insert it again. How can I make it ...
0
votes
1answer
24 views

ipv6 route slightly modified

I am running GNU/Linux version 3.4.113+ with a 6in4 tunnel to a tunnel broker. If I run command ip -6 route list table local I see a lot of routes. And one of this route entries is this local ::1 ...
0
votes
1answer
60 views

Route more traffic through VPN

I am using openvpn to connect to a VPN server, with the following configuration: remote openvpn.vpn.domain.tld port 1194 proto udp dev tun client auth-user-pass login.conf keepalive 10 60 After ...
1
vote
1answer
331 views

What are the defaults of route metrics?

I was trying to script OpenVPN server setup to modify metric of pushed routes so these are higher than any other interface: push "route-metric 700" This is needed to overcome https://community....
0
votes
1answer
35 views

localhost port is listening, but interface can't see it [duplicate]

ifconfig -a: eth0: 192.168.0.11 eth1: <irrelevant...> lo: 127.0.0.1 On the same machine: nmap -p 9866 localhost Will show that state is open and detects what service that is running But: ...
2
votes
3answers
442 views

Multilink ppp0 ppp1

I have two ppp0 and ppp1 connections using 3G modems. Is it possible to use both connections simultaneously? Unfortunately, when defining the default gateway for the first ppp0 there is a problem with ...
9
votes
1answer
2k views

How To Make All Traffic To Go Through One Interface In Linux

I have a self-written interface tun0 (TUN/TAP based) that outputs what it receives. I need all traffic of the system to flow through this interface. The role of the interface is: To figure out ...
1
vote
1answer
52 views

Route in Linux with 2 card 2 gateways

This is a new setup: The file server can ping the 10.5.4.1 with: route add 10.5.4.0 netmask 255.255.252.0 gw 10.5.8.2 But 10.5.4.1 cannot ping 10.5.8.10. It's important to know that in the gateway ...
1
vote
0answers
17 views

Add hops on a single machine and forward some trafic to another

I want to change this script simulating-network-hops-on-a-single-linux-box So it will forward only some traffic to another machine. Assuming that my address is 192.168.0.3 and I want to add hops and ...
1
vote
2answers
781 views

Internet connectivity using linux network namespace

I experimenting with Linux namespaces on Ubuntu 17.1 distro. Ultimate goal is to force an application to use a particular network interface via a 3G modem not the intranet wired connection. My PC has ...
6
votes
1answer
35k views

How to delete an IP route?

How to delete a route like the one below from a UNIX server? 122.252.228.38/255.255.255.255 122.252.228.38 UH 0 lan4 4136
2
votes
2answers
64 views

Wireless stop working after enabling Ethernet adapter

I have two laptops both of which are running CentOS 7. Both are connected to a wireless access point for Internet connectivity. I also have connected them to each other through a switch as a lab for ...