Comments (4)
from xdp-tutorial.
Thanks for your answer.
Actually,NAT rule is like below.
Just listening on the ingress interface (enp3s0) . Does XDP have the ability to listen on the egress interface? Or the rule is incorrect?
root@debian12:~# iptables -S -t nat
-P PREROUTING ACCEPT
-P INPUT ACCEPT
-P OUTPUT ACCEPT
-P POSTROUTING ACCEPT
-A POSTROUTING -s 192.168.11.0/24 -o ppp0 -j SNAT --to-source XX.XX.XX.XX
root@debian12:~#
enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.11.254 netmask 255.255.255.0 broadcast 192.168.11.255
inet6 fe80::8a09:5bff:fe50:22b2 prefixlen 64 scopeid 0x20<link>
ether 88:09:5b:50:22:b2 txqueuelen 1000 (Ethernet)
RX packets 15233883 bytes 1666706953 (1.5 GiB)
RX errors 1153 dropped 0 overruns 0 frame 1153
TX packets 100384323 bytes 127869902498 (119.0 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 1156
device memory 0xa1300000-a13fffff
from xdp-tutorial.
from xdp-tutorial.
Thanks for your answer.
from xdp-tutorial.
Related Issues (20)
- About umem frame_headroom HOT 3
- Can't understand the two prototype of bpf_map_lookup_elem
- Is AF_XDP socket thread-safe HOT 8
- Test
- Questions about running XDP sockets on top of bonding device or on the physical interfaces behind the bond HOT 2
- Is AF_XDP socket thread-safe for TX ring and other rings ? HOT 9
- How to solve this problem: *** ERROR: Cannot find tool m4 HOT 3
- there is no ./xdp_loader HOT 1
- af_xdp sending with run to completion mode HOT 21
- Trying to write XDP for redirecting packets in veth inside kubernetes HOT 6
- basic04 reuse pinned map failed. HOT 2
- Is possible the umem frame leak in some place? HOT 1
- NIC to XSK back to Network Stack HOT 11
- error: llc: xdp-dispatcher.ll:410:54: error: unterminated attribute group
- Is it possible to send 2 packets out of NIC from the same UMEM frame? HOT 1
- Can I use a struct as a map key in XDP? HOT 2
- xdp_vlan01_kern.c:66:2: error: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Werror,-Wpass-failed=transform-warning] HOT 3
- Map load does not work with snprintf or bpf_snprintf. When these lines are removed, map read/write continues. HOT 2
- invalid access to map value, value_size=128 off=0 size=0; libbpf: prog 'xdp_parser_func': failed to load: -13 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xdp-tutorial.