netlink
gopacket
netlink | gopacket | |
---|---|---|
4 | 7 | |
2,679 | 6,118 | |
- | 0.7% | |
7.6 | 0.0 | |
8 days ago | 7 days ago | |
Go | Go | |
Apache License 2.0 | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
netlink
-
New to go, suggestions for non-web projects.
There is https://github.com/vishvananda/netlink which deals with low level networking stuff, maybe helping out there would be nice. I use it for https://github.com/qdm12/gluetun (also in Go)
-
networking - getting route and interface for a destination
Check out https://github.com/vishvananda/netlink/tree/master/nl - I think it only supports linux for routes (not sure about bsd and mac).
-
Trying to use libvirt-go API and running into the issue /usr/lib/x86_64-linux-gnu/libvirt.so.0: version `LIBVIRT_4.10.0' not found
"github.com/vishvananda/netlink"
-
Can't call functions from files with specific suffix ( e.g. Foo_linux.go)
Golang Newbie here! I am trying to call functions from an external library ( ipset_linux.go in https://github.com/vishvananda/netlink). Whenever I run go build main.go, it keeps complaining both netlink.IpsetAdd and netlink.IPSETENTRY as undefined! However, if I didn't call functions from files with the _linux suffix, it builds without any complain. I think it has something to do with the build constraint but I dont know how to fix it. Any help is greatly appreciated!
gopacket
-
As a Go developer, I’m surprised Crystal isn’t more popular
I have seen pcap but not packetz, thanks. Pcap looks unfinished and packetz has not been updated in a long time, but they might be able to make a working capture program. However the popularity and features available in Go regarding packet capture makes it very hard to beat. E.g. the Google gopacket library has 5.6k stars on github and as pretty much every feature you'd want for this sort of stuff built in.
-
eCapture: capture HTTPS traffic without CA certificates on Android/Linux using Golang.
eCapture implements the feature of saving a pcapng file by eBPF TC, and supports TLS Master Secret Key capturing by eBPF Uprobe. Also, gopacket's DSB feature is supported, based on Decryption Secrets Block (DSB)
-
Is it common to not have a local dev environment in go?
Well, there is https://github.com/google/gopacket/, you have a package that uses CGo, `pcap`, and then there is `pcapgo`, native Go implementation. Doesn't have all the features but in my case, I was able to use it and remove CGo.
-
[Go] Try capturing TCP packets
I will capturing TCP packets by gopacket/pcap.
-
Gain Visibility into Istio mTLS Traffic with Mizu
For example, gopacket uses libpcap by default for capturing the traffic. Libpcap doesn't support network namespaces and we can't ask it to listen to traffic on a different namespace. However, we can change the network namespace of the calling thread and then start libpcap to see the traffic on a different namespace.
- GO network programming resources
-
networking - getting route and interface for a destination
https://pkg.go.dev/github.com/google/gopacket/routing - Linux only and not working correctly and not actively maintained
What are some alternatives?
libvirt-go - Read-only mirror. Please submit merge requests / issues to https://gitlab.com/libvirt/libvirt-go
gopcap - A simple wrapper around libpcap for the Go programming language
bubbletea - A powerful little TUI framework 🏗
dns - DNS library in Go
gluetun - VPN client in a thin Docker container for multiple VPN providers, written in Go, and using OpenVPN or Wireguard, DNS over TLS, with a few proxy servers built-in.
raw - Package raw enables reading and writing data at the device driver level for a network interface. MIT Licensed.
docker - Docker - the open-source application container engine
gnet - 🚀 gnet is a high-performance, lightweight, non-blocking, event-driven networking framework written in pure Go./ gnet 是一个高性能、轻量级、非阻塞的事件驱动 Go 网络框架。
go-libvirt - Package libvirt provides a pure Go interface for interacting with Libvirt. Apache 2.0 Licensed.
ethernet - Package ethernet implements marshaling and unmarshaling of IEEE 802.3 Ethernet II frames and IEEE 802.1Q VLAN tags. MIT Licensed.
gateway - A golang library for discovering the address of a LAN gateway.
mdns - Simple mDNS client/server library in Golang