Skip to content
forked from go-ping/ping

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

geberl/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

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Go 100.0%