Code Monkey home page Code Monkey logo

Comments (4)

tohojo avatar tohojo commented on June 3, 2024

from xdp-tutorial.

samueljaydan avatar samueljaydan commented on June 3, 2024

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.

tohojo avatar tohojo commented on June 3, 2024

from xdp-tutorial.

samueljaydan avatar samueljaydan commented on June 3, 2024

Thanks for your answer.

from xdp-tutorial.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.