diff options
author | 2020-09-22 20:47:57 +0000 | |
---|---|---|
committer | 2020-09-22 20:47:57 +0000 | |
commit | 597bac67f7d91666a0a9915c70d0f47506fd2373 (patch) | |
tree | 890ed2ef7e99e31748803ddad0edebefbc36af84 | |
parent | sync (diff) | |
download | wireguard-openbsd-597bac67f7d91666a0a9915c70d0f47506fd2373.tar.xz wireguard-openbsd-597bac67f7d91666a0a9915c70d0f47506fd2373.zip |
Add "netstat -R" example
It's handy and otherwise easily missed when reading up on routing domains
and tables; wording taken from netstat(1) as is.
Not listing pgrep(1)'s `-T' because examples don't have to be exhaustive and
ps(1) is already demonstrated; same for top(1) users which more likely come
across its `t' and `T' in the help page anyway (I guess).
OK jmc remi
-rw-r--r-- | share/man/man4/rdomain.4 | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/share/man/man4/rdomain.4 b/share/man/man4/rdomain.4 index 51f3a43b4b9..d9518e007f5 100644 --- a/share/man/man4/rdomain.4 +++ b/share/man/man4/rdomain.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rdomain.4,v 1.14 2020/07/30 21:44:34 kn Exp $ +.\" $OpenBSD: rdomain.4,v 1.15 2020/09/22 20:47:57 kn Exp $ .\" .\" Copyright (c) 2015 Peter Hessler <phessler@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: July 30 2020 $ +.Dd $Mdocdate: September 22 2020 $ .Dt RDOMAIN 4 .Os .Sh NAME @@ -98,6 +98,10 @@ Put em0 and lo4 in rdomain 4: # ifconfig em0 192.0.2.100/24 .Ed .Pp +List all rdomains with associated interfaces and routing tables: +.Pp +.Dl # netstat -R +.Pp Set a default route and localhost reject route within rtable 4: .Bd -literal -offset indent # route -T4 -qn add -net 127 127.0.0.1 -reject @@ -129,6 +133,7 @@ Delete rdomain 4 again: # ifconfig lo4 destroy .Ed .Sh SEE ALSO +.Xr netstat 1 , .Xr ps 1 , .Xr lo 4 , .Xr route 4 , |