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

learn more… | top users | synonyms

4
votes
1answer
29 views

How can I tell which IP address is used to connect to another machine?

I have several computers that are multi-homed, and have different static IP addresses for each of several network connections. How can I tell which of these IP addresses is used when I'm connecting to ...
1
vote
3answers
106 views

Routing to different subnet via single NIC to another box

I have a home network with 3 subnets (I like to play around!) I've been struggling with something that I thought would be easy, but after a few days I'm no closer to the answer. My network is ...
1
vote
1answer
34 views

How to get numerical output in `ip route` command

When using route command, -n switch does the trick. How to get numerical output using ip route command? It's man page does not mention anything similar. Specifically I need 0.0.0.0 instead of default. ...
0
votes
1answer
65 views

Linux routing IPv6 packets through incorrect interface

I have a Arch Linux system where link-local packets are not being routed properly. I have 4 interfaces on this machine (wan, lan0, lan1 and lan2). All three of the lanX interfaces are bridged ...
3
votes
2answers
94 views

Linux static routing : Ping a private network(Network Diagram Attached)

In the Network Diagram above my aim is to ping 192.168.20.20 from System A. I do not want to configure the router. For that to happen All the traffic to 192.168.20.0/24 should be first forwarded ...
1
vote
0answers
34 views

Bridging two interfaces with iproute2 doesn't work

I'm trying to create a bridge between eth0 and eth1 with iproute2, but there's always the error: RTNETLINK answers: Operation not supported when I use the command:ip link add name br0 type bridge. ...
1
vote
0answers
113 views

Not permitted to add eth0 to bond0

I'm trying to add an interface to my bond0 but I always get the error. sudo ip link set dev eth0 master bond0 RTNETLINK answers: Operation not permitted I already tried it with sudo and with ...
1
vote
0answers
270 views

ip link add gives me an error that it's not supported

I would like to set up a bridge with iproute2 like this: Adding bridge : ip link add name br0 type bridge Bringing bridge UP : ip link set dev br0 up Adding interface to bridge : ip link set dev eth1 ...
0
votes
1answer
33 views

SSH tunnel between 3 box to get internet access

The network looks like this : Server X -- My machine -- Server Y My machine has SSH access to both boxes. Server Y has internet but not server X. How can I make a tunnel so server X can acces the ...
2
votes
0answers
127 views

Quagga ebgp routes not advertised to ibgp peers

I am trying to achieve http://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/13762-40.html#conf3. Only difference from the setting is that the ISP is sending full BGP table instead ...
1
vote
1answer
234 views

Modifying existing route entry in linux

what is the command to modify metric of an existing route entry in linux? I am able to change gateway of an existing entry using "ip route change" command as below but not able to change metrics. Is ...
0
votes
1answer
44 views

Adding route entries to the routing table

I have a device that has a default IP address of 10.1.1.102 with netmask 255.255.255.0. Rather than changing it, I tried to add a routing entry to my routing table using route add. sudo route add ...
2
votes
1answer
207 views

Linux ignoring multicast route over loopback

I'm trying to test some multicast code on a single machine. I'm trying to get the packets sent over the loopback device (lo) instead of the default eth1. Googling keeps turning up the incantation ...
0
votes
1answer
112 views

Linux Forward Packets between interfaces

I would like to forward packets between interfaces without using iptables. I am not against iptables per se, I just believe that for my simple needs it's not necessary. However I am unable to do so. ...
1
vote
1answer
115 views

OpenVPN connection help. Multiple Tunnels

i have a system setup, mostly from reading posts and instructions and am having a bit of trouble. My basic setup multiple openvpn clients, e.g. macbook, android phone dd-wrt router / firewall ...
0
votes
3answers
87 views

Unable to figure out how to route a packet through a multi-homed nic

The environment is FreeBSD for the most part and looks like this: HOST_A <-> ROUTER <-> LOKI <-> HOST_B Minimally, I would like to be able to ping ROUTER from HOST_B. ROUTER is ...
0
votes
0answers
68 views

Hang routing cache

Recently I've started to get the following message in my syslog "kernel: [274521.629591] dst cache overflow". Short investigation led to some troubles with routing cache. This is what I found: On ...
0
votes
1answer
75 views

Route Locally generated packets to different gateway [duplicate]

I need to send the packets of specific port to different gateway. This is the situation: The server has different services, like http, dns, and mail (smtp,pop,imap), and it has two gateways. eth2: ...
0
votes
0answers
223 views

How should a two nic gateway be routed (FreeBSD 10.2)?

I am trying to set up a freebsd router that sits between the cable/dsl modem and my lan machines. Here is the logical setup: Cable/DSL modem connected to internet: gateway 192.168.0.1 FreeBSD ...
0
votes
2answers
30 views

Debian : 2 Nic 2 different networks switches - kernel sees a bad network

Hello Here is the situation : - VMplayer with 2 physical NICs (network interface cards) on the Windows host - VM Debian 64bits - On VM settings: both NICs are configured to replicate on the physical ...
1
vote
0answers
83 views

Configure Linux PC as router

Consider the below network configuration. wan ----[WAN router] <----> [eth1 (PC2) eth0]<---->[eth0 (PC1)] wan ----[WAN router 192.168.169.1] <--> [192.168.169.5 (PC2) 10.1.2.3] ...
0
votes
2answers
113 views

Direct connection w/ ethernet cable

This is for "research" not pragmatic purposes -- I want to know how this is supposed to work, since my guess below does not. In other words, I do not want an answer that involves ...
3
votes
0answers
239 views

Debian 8 : where are default static routes set?

i'm facing a strange problem with my newly installed Debian 8 box : default static routes are missing the 0.0.0.0 destination route. $ sudo route -n Kernel IP routing table Destination Gateway ...
0
votes
0answers
109 views

How to delete gateway from default routing table use systemd

There are two physical interfaces on my machine, both with DHCP, so my default routing table looks like this: Destination Gateway Genmask Flags Metric Ref Use Iface default ...
0
votes
1answer
300 views

how to configure multiple interfaces with systemd-networkd

I have three physical network interfaces one my machine, they are all connected to different subnets, the first interface is eno1 with IP 10.10.24.157/24, the second one is eno2 with IP ...
1
vote
0answers
20 views

DNS lookup with different Port

I have 2 interface. interface_1 ip address 10.192.0.1 --- interface_2 ip address 192.168.10.2 gw 192.168.10.1 --- default gateway. Not I want to pass my url lookup (keeping 4.2.2.2) with ...
0
votes
1answer
58 views

how to add default drop route in custom routing table?

Am trying to learn using policy based routing which is based on fwmark as below. Need to forward traffic by using default entry in table1, if table1 doesnt have a default entry, then that particular ...
1
vote
0answers
21 views

Conditional routing according to protocol HTTP/S

There is a wifi corporate network which is reasonably fast but does not allow ssh connections. I want to be able to web browse using both that network and a ssh tunneled mobile USB tethering in my ...
3
votes
1answer
88 views

Routing on per application basis

I'm using a proprietary VPN client on my Ubuntu Linux work station (Astrill) which support several types of VPNs. One of these VPN types is OpenVPN, which creates a virtual interface tun0 when ...
2
votes
1answer
237 views

Can't delete default route on linux

I have two default routes and I want to delete one of them, but can't. I get no error message and the route is still there. Am I doing it wrong? Is NetworkManager screwing with me? ...
1
vote
2answers
230 views

Can't access my device via SSH over internet

I'm running sshdroid server on my android device at port 22 and I get this while I use my pc to connect to it via ssh (LAN) root@kali:~# ssh -l root 100.107.219.116 The authenticity of host ...
3
votes
0answers
596 views

About tun2socks (BadVPN) SOCKS proxy

I am not very experienced with socks proxy. Recently I found the tun2socks. If you open the link, in the 1st paragraph it says : It implements a TUN virtual network interface which accepts all ...
-1
votes
1answer
40 views

How do I configure my server to stay hidden unless it receives correct password?

The server is supposed to silently ignore any requests (including ping) unless it receives correct credentials with initial request. Nobody else can tell that the host even exists. I am talking about ...
1
vote
0answers
115 views

Sniff on SWITCH(lan) traffic openWRT

Is it possible to sniff (with tcpdump) or mirror LAN traffic that doesn't get routed to WAN using openWRT? Say I have two PCs connected to LAN ports and I want to sniff on traffic one PC is sending ...
3
votes
1answer
178 views

add route in Linux if sub-net, where gateway is situated, is not configured

I have a PC which has 192.168.1.1/24 configured to eth0 interface. Now if I try to add routes via 10.10.10.254, the ip utility reports that No such process: root@PC:~# ip neigh add 10.10.10.254 ...
0
votes
1answer
81 views

Access my web server publicly

On my Debian server I have a eth0 interface (192.168.10.x) and I just added eth1 (176.31.36.x). I would like to set up a public access for ssh, web, ..etc. allow-hotplug eth1 iface eth1 inet static ...
0
votes
0answers
64 views

Incoming internet SSH traffic to eth0 and outgoing internet traffic to wlan0

I have this setup: kali linux on raspberry PI connected to eth0 and wlan0. eth0 has internet access and public ip with port 22 open. wlan0 has internet access. I want to be able to connect to my ...
1
vote
2answers
82 views

Meaning of address netmask without route to subnet?

My understanding is that the netmask of the interface tells what subnet the interface belongs to. Meaning of this information is that the routing system knows that packets to this subnet should be ...
2
votes
0answers
115 views

How to define different routes for global and non-global zone to the same destination?

I have the requirement to separate the management network for global and non global zones in a Solaris 10 server. The global zone has its own management network and all non-global zones share their ...
0
votes
0answers
33 views

How to use RTNETLINK in kernel module/kernel space to extract routing table?

I want to extract routing table information in kernel module using Netlink sockets? Is it possible? I know that in user space we can do that. Regards
2
votes
1answer
250 views

Rewrite source IP in TCP replies using iptables

I'd like to rewrite the source IP on TCP/514 traffic leaving a redhat machine, for connections that weren't initiated from the machine. The machine receives TCP/514 traffic on an interface, for ...
0
votes
1answer
262 views

Possible to route all LAN traffic through router configured with my VPN service?

I have a paid VPN service (mullvad) and I wondered if it would be possible to route all my WAN traffic mullvad's VPN via an Asus RT-AC66U wireless router running DD-WRT v24 sp2. I guess what i'm ...
0
votes
1answer
46 views

Add a route permanently to mac

I connect from a Mac running PPTP VPN to a synology box VPN server. Connecting works great, but in order to access the the drive shares, I need to run ifconfig and then sudo route add -net ...
5
votes
2answers
515 views

How can I use Linux as a Gateway?

NOTE: If client devices (computer B in this example) want to obtain internet through the gateway computer, maybe they still need to configure nameserver resolution. This is not explained here ...
0
votes
0answers
101 views

Prefer wired over wireless for local subnet using NetworkManager

My wireless network is bridged to my wired network, so both have the same subnet. How do I tell NetworkManager to give the local subnet route on the wireless interface a higher metric than the route ...
3
votes
1answer
1k views

OpenConnect: Setting default routes

I'm trying to use OpenConnect to connect to my company's Cisco VPN (AnyConnect) The connection seems to work just fine, what I'm not understanding is how to set up routing. I'm doing this from the ...
0
votes
0answers
146 views

openvpn: iptables not forwarding

I have the following topology: And I'm following the iptables rules listed on https://community.openvpn.net/openvpn/wiki/BridgingAndRouting Here's the output of iptables -L -v Chain INPUT (policy ...
0
votes
0answers
85 views

Routing Traffic to IPSec

I set up an IPSec/L2TP connection. It operates in transport mode and the server acts as a gateway to the network behind the server. You can see my configuration here. I think I have a routing problem ...
1
vote
0answers
75 views

Routing only VM traffic through VPN

I'm stuck on a problem and would like some help if possible :-) My goal is to make my VM going through my VPN connection and my HOST through the standard gateway. Configuration : VM (192.168.100.1) ...
0
votes
2answers
66 views

routing problem - arp

I have a computer that should connect two networks: 192.168.0.x and 192.168.1.x 192.168.0.x is reachable through interface tun3 while 192.168.1.x is reachable through interface virbr1. It seems ...