All Questions
12 questions
0
votes
1
answer
64
views
VPN & changing outbound interface per user - correct source IP but wrong interface
I am connected through a VPN and I want some user accounts to bypass it. VPN interface is tap0 (IP is 172.16.x.x), the main one is wlan0 (IP is 192.168.10.3). All regular traffic goes to the Internet ...
1
vote
0
answers
336
views
How to make secondary IP routable
I am trying to assign a secondary IP to my primary interface.
I added the IP to my eth0 interface
ip addr add 172.20.14.253/21 dev eth0
$ ip a show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,...
0
votes
1
answer
2k
views
Force new process to use the specific network interface (using netns/network namespaces)
I have a number of interfaces available on Ubuntu 20.04 machine. Among others enx0c5b8f279a64 and usb0 with the later being used as the default one. I want to make sure that a particular process ...
0
votes
1
answer
71
views
CentoOS and IP RULE
I don't understand my situation. I have a network lab like on a picture.
I can't ping 192.168.5.1 from 192.168.1.2 then the 192.168.5.1 has 192.168.4.2 like a default gateway.
Linux# ip route
default ...
2
votes
1
answer
570
views
How to force `ip route get` to ignore a specific device?
How can I do ip route get, but force it to ignore a specific device?
When I start my VPN, I run ip route get <vpn_server_ip> to determine what interface to use to connect to the VPN. Then I add ...
2
votes
3
answers
6k
views
How to retrieve the routing tables in JSON format (linux)?
The ip command is able to return some of its results in JSON format, but it seems to be unable to format the routing table(s).
Here are some examples of what I mean.
List of all addresses: ip --json ...
-1
votes
1
answer
566
views
How to understand this output of ip route list table 255 [closed]
broadcast 100.125.71.152 dev rmnet_data1 proto kernel scope link src 100.125.71.153
local 100.125.71.153 dev rmnet_data1 proto kernel scope host src 100.125.71.153
broadcast 100.125.71.155 dev ...
0
votes
0
answers
1k
views
Packets routed through wrong interface
This is a follow up on ip rule shouldn't beat ip route.
I've configured everything as per my last question.
But...
Running:
$ ip route get 10.10.10.10 from 10.0.0.13 iif test-interface
10.10.10....
0
votes
3
answers
2k
views
Assigning multiple IPs to the same machine with one interface
I have a server with a single physical interface eth0. I intend on running VMs on this server. To that end I have an IPv4 block which is routed to said server. What I'm trying to achieve is to spin-up ...
9
votes
3
answers
10k
views
Command-line utility to test fwmark in ip rule / ip route?
I am trying to find a tool that will allow me to find the route a packet will take that comes in on a device, and has a particular destination address.
ip route get will do most of what I am looking ...
3
votes
1
answer
3k
views
What is "the meaning" of this `ip route`?
I'm slowly learning more about IP routing and the ip toolset by investigating a VPN. After I start a particular VPN client, one of the (new) routes displayed by ip route show is
128.0.0.0/1 via 10....
0
votes
1
answer
485
views
Multiple VPN devices with the same IP
Well, this is a rather awkward inquiry and I'm pretty pessimistic about it, but lets see what the community has to say.
The scenario:
A server connecting to multiple VPN endpoints doing all sort of ...