xdp_router_ipv4 sample


Cervant
 

Hello Everyone,

I've compiled xdp_router_ipv4 example in net-next-4.15 kernel. Now i want to redirect and routing xdp_router machine to other_machine.

xdp_router has a 2 interface(eth0, eth1). also i have running via command; "./xdp_router_ipv4 eth0 eth1"

First question;

xdp_router_ipv4 bypass and redirect all packets eth0 to eth1 with bpf_redirect() helper. Am i right?

Second question;

I want to route incoming traffic(from eth0) to outbond machine over the eth1 interface.(other_machine)

Is this network scheme possible?

network details:

xdp_router_machine

other_machine