NOS-TUN(8)
πΈ NAME πΈ
okay so welcome to nos-tun(8), bestie β this is the utility that implements a nos-style or ka9q-style IP over IP tunnel. itβs giving βpackets in a trench coat,β and weβre obsessed. π«Ά
β¨ SYNOPSIS β¨
nos-tun -t tunnel -s source -d destination -p protocol_number [source]
target
π DESCRIPTION π
nos-tun is used to establish an nos style tunnel (also known as ka9q or IP-IP tunnel) using a tun(4) kernel interface. no cap, thatβs the whole vibe. π¦
the flags and args line up like this:
-ttunnel β this is the name of the tunnel device, like/dev/tun0for example. π-ssource and-ddestination β these are the addresses used on the tunnel device.-pprotocol_number β this sets tunnel mode. the original KA9Q NOS uses94, but many people use4on the worldwide backbone ofampr.org. π₯
the synopsis also shows [source] before target, and target is the address of the remote tunnel device β it must match the source address set on the remote end. periodt. π
if you configure the tunnel against a cisco router, use a netmask of 255.255.255.252 on the cisco. this is because the tunnel is a point-to-point interface in the FreeBSD end, and thatβs a concept cisco does not really implement. not me explaining cisco lore, but here we are. π
π EXAMPLES π
this end, a FreeBSD box on address 192.168.59.34:
nos-tun -t /dev/tun0 -s 192.168.61.1 -d 192.168.61.2 192.168.56.45
remote cisco on address 192.168.56.45:
interface tunnel 0
ip address 192.168.61.2 255.255.255.252
tunnel mode nos
tunnel destination 192.168.59.34
tunnel source 192.168.56.45
π¦ HISTORY π¦
the nos-tun utility appeared in FreeBSD 3.0. iconic behavior, honestly. π
π AUTHORS π
- Nickolay N. Dudorov
<nnd@itfs.nsk.su>wrote the program. π - Poul-Henning Kamp
<phk@FreeBSD.org>wrote the man-page. β¨ - Isao SEKI
<iseki@gongon.com>added a new flag, IP protocol number. πΈ
π BUGS π
we do not allow for setting our source address for multihomed machines. big sad, but thatβs the rule. π«
π cute sign-off: this page is from Debian, dated October 5, 2016, and yes bestie, itβs NOS-TUN(8). mwah! πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms