Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3439166
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:16:33+00:00 2026-05-18T08:16:33+00:00

I am using libpcap to capture GRE packets and forward now, I think the

  • 0

I am using libpcap to capture GRE packets and forward now, I think the efficiency is not very good.

so I decide to do forwarding with netfilter, but I am new for this. Could someone gives me one

simple example to capture IP or GRE packets with netfilter? thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:16:34+00:00Added an answer on May 18, 2026 at 8:16 am

    It’s not clear what you’re trying to accomplish. Are you trying to capture the packets for analysis (like wireshark or tcpdump), or forward traffic through a GRE tunnel?

    If you’re trying to capture traffic for analysis, using netfilter doesn’t make much sense. It’s probably possible, using something like the QUEUE target to pass packets to userspace, but I doubt you’d get better performance than using libpcap with suitable BPF rules.

    If you’re trying to forward traffic through a GRE tunnel, the normal way to do that is to set up a gre tunnel interface; do man ip and look at the “tunnel” section. The tunnel interface (e.g. gre0) is a normal network interface that the system’s routing table can send packets to.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to capture packets going out of my machine, and I'm using libpcap
We're sniffing packets using libpcap on linux The header we get on each packet
I work on a project using libpcap for capturing IP packets. libpcap returns captured
Is it possible to use zero-copy packets mechanism for reading packets using libpcap on
Hi I'm using c++ and libpcap. When I try to call the function mycallback
I want to capture packets from 10Gbps network card with 0 packet loss. I
I am using the inet_diag module and libpcap to get the uid of the
Recently, I'm using Jnetpcap to send/receive raw packet over network. Jnetpcap provides sending packets
I've been using tcpdump (version 4.1.1) to attempt to capture wireless frames from a
I'm using pylibnet to construct and send UDP packets. The UDP packets I construct

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.