Coder Social home page Coder Social logo

pcap-udp-forward's Introduction

pcap-udp-forward

filter use bpf

过滤IP: 10.1.1.3
过滤CIDR: 128.3/16
过滤端口: port 53
过滤主机和端口: host 8.8.8.8 and udp port 53
过滤网段和端口: net 199.16.156.0/22 and port
过滤非本机 Web 流量: (port 80 and port 443) and not host 192.168.0.1
NAME:
   pcap-udp-forward - forward packet with udp

USAGE:
   main [global options] command [command options] [arguments...]

VERSION:
   0.0.0

COMMANDS:
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --source value, -s value  source pcap interface name
   --filter value, -f value  pcap filter string
   --dest value, -d value    destination ip address and port , address:port
   --list, -l                show device list
   --help, -h                show help
   --version, -v             print the version

build

make build

example

#添加执行权限
chmod +x pcap-udp-forward
#获取所有网卡设备
./pcap-udp-forward -l
#执行
./pcap-udp-forward -s eth0 -f "udp port 57" -d 127.0.0.1:8080 -d 127.0.0.1:9000

pcap-udp-forward's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hello-xbugs

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.