Skip to content

The popular ICMP Ping library for Go, modified to work when using vrf in Linux

License

Notifications You must be signed in to change notification settings

perimeter-81/go-ping-vrf

 
 

Repository files navigation

go-ping-vrf

The popular ICMP Ping library for Go, modified to work when using vrf (Virtual Routing and Forwarding) in Linux

Original: https://github.com/go-ping/ping

Only Linux, only ICMP (meaning no UDP). Should work for IPv4 and IPv6.

# build
go build cmd/ping/ping.go

# ping target 10.0.0.2 using the interface vrf-priv1 with the source ip 10.0.0.3 continuously
ping -src 10.0.0.3 -if vrf-priv1 --privileged 10.0.0.2

About

The popular ICMP Ping library for Go, modified to work when using vrf in Linux

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%