Program to control policy-based routing tables
Questions tagged [iproute]
59 questions
1
vote
1 answer
How to enable tc command when building a kernel using Yocto recipes
I want to enable tc command that comes in iproute2 on my linux kernel. My kernel is built using yocto and bitbake.
So, I copied the iproute recipes and whole directory from the following link to try…

TheWaterProgrammer
- 7,055
- 12
- 70
- 159
1
vote
0 answers
Docker container hits iptables to proxy
I have two VPSs, first machine (proxy from now) is for proxy and second machine (dock from now) is docker host. I want to redirect all traffic generated inside a docker container itself over proxy, to not exposure dock machines public IP.
As…

ismaytur
- 21
- 3
1
vote
1 answer
Retrieving the netnsid of a network namespace in Python
When trying to find the correct peer network interface of a veth pair that lives in a different namespace, that end is not only indicated by its iflink property, but also by a link-netnsid. This link-netnsid is a network namespace ID which is only…

TheDiveO
- 2,183
- 2
- 19
- 38
1
vote
3 answers
Simulating network failures in Docker
I am trying to simulate partial/total network/container failure in docker in order to see how my application behaves in failure conditions. I have started by using pumba, but it isn't working right. More specifically, this command fails when run,…

polson136
- 151
- 1
- 10
1
vote
0 answers
Ubuntu server: Multiple VLANS, Virtual Ports and Forwarding
I have 4 IP addresses in 2 VLANS.
I need to go out from Ubuntu server with different address:
curl --interface '' ifconfig.co
All VLANS comes through one Ethernet cable in one NIC.
What I am doing:
1) Here is my…

user3054412
- 37
- 7
1
vote
0 answers
Using TAP to sniff or modify incoming eth packets
I've tried https://github.com/TOGoS/TUN2UDP
This allows me to do:
Application --> TAP
Read from TAP --> Write to UDP (under my control)
Read from UDP --> Write to TAP (under my control)
TAP --> Application
What I want to do is:
Application -->…

GroovyDotCom
- 1,304
- 2
- 15
- 29
1
vote
0 answers
Iptables netfilter packets flow with policy routing
I have questions about the order of events in the routing/iptables pipeline. I first explain my setup. The questions are at the end of this post.
I use policy routing and iptables on Linux 4.4.
I have two interfaces: wan0 (towards my ISP) and…

Fabio
- 2,105
- 16
- 26
1
vote
1 answer
Port Forwarding for OpenStack Instances
Good day,
Today I am seeking to be redirect all incoming and outgoing traffic from the private IP of my BareMetal Instance to the IP initially given to DevStack during installation.
OpenStack BareMetal Cloud Setup
How I came to this situation? I am…

Gonzalo De La Torre
- 73
- 1
- 7
1
vote
1 answer
Haproxy gateway settings - client and server are on the same subnetwork
I'm trying to setup a haproxy gateway between server and client for full transparent proxy like below diagram. My main aim is to provide load balancing.
There is a simple application that listens port 25 in the server side. The client tries to…

Ricardo Cristian Ramirez
- 1,194
- 3
- 20
- 42
1
vote
0 answers
FTN, ILM and NHLFE in kernel
Latest kernel 4.1 supports MPLS datapath.
IpRoute2 is also adding commands to add mpls routes in kernel.
What are the iproutes command to create FTN(Fec to NHLFE), ILM(Incoming Label Map) and NHLFE(Next hop label forwarding entry) ?
What are the…

user2798118
- 385
- 1
- 2
- 16
1
vote
2 answers
ip route get from a different routing table
Why does "ip route get" not provide a TABLE_ID SELECTOR?
I am actually using netlink to get routes from a routing table (table ID 2) and I want to get a specific route and not dump the entire routing table and filter in user land.
I was looking at…

NetCubist
- 61
- 2
- 6
1
vote
0 answers
Port forward port to specific ip via specific nic
Network GURU's ....
Environment RHEL 6.5 Server X86_64
I have a virtual Repo/svn box plugged into our primary network.
eth0 10.28.50.129
I also has 4 additional nics that plug into segregated VSwitch with unique ips to allow access to Instances…

cmttmp
- 11
- 3
0
votes
0 answers
Unable to make connection between between two VPS using udp2raw
Issue with securely connecting two VPS instances using udp2raw
There are 2 Ubuntu 22.04 VPS instances that are required to get connected via a secure udp2raw TCP tunnel,
VPS-A is assigned as a server and VPS-B is the client, both of the instances…

Sina S.
- 31
- 3
0
votes
0 answers
My docker container can ping a machine outside of its host but not the other way around
Local Network = 192.168.100.0/24
Private Docker network = 172.18.0.0/16
Machine 1 = 192.168.100.5
Machine 2 = 192.168.100.7 , 172.18.0.1
Docker Container = 172.18.0.2
On Machine 1, I did
ip route add 172.18.0.0/16 via 192.168.100.7
On Machine 2, I…

Detra
- 13
- 2
0
votes
0 answers
how to make a allow-firewall using linux tc(traffic control)
I want to make a simple firewall using linux tc (traffic control)
simple firewall means allow or deny packet using ip address filter.
I can make 'deny' firewall using this config
(deny ip packets from 192.168.0.10)
tc qdisc add dev eth0 root handle…

goldhome
- 1