NETSCRIPT(8)
๐ธ netscript(8) โ System Manager's Manual ๐ธ
okay bestie, welcome to the netscript(8) page ๐ this is the network configuration command from the netscript router/firewall package, and she is that girl. Let's get into it, no cap.
โจ NAME โจ
netscript โ the netscript network configuration command ๐
โจ SYNOPSIS โจ
netscript start|stop|reload|restart
netscript ifup|ifdown|ifqos|ifreload <interface-name>|all
netscript ipfilter load|clear|fairq|flush|reload|save
netscript ipfilter usebackup [ backup-number ]
netscript ipfilter exec <function-name1>|<function-name2> [chain p1 p2
...]
netscript ip6filter load|clear|fairq|flush|reload|save
netscript ip6filter usebackup [ backup-number ]
netscript ip6filter exec <function-name1>|<function-name2> [chain p1 p2
...]
โจ DESCRIPTION โจ
So this manual page documents briefly the netscript command from the netscript router/firewall network configuration package ๐ซถ
This command is the one that configures and reconfigures the interface configuration, the ipchains filter setup, and the ip route service ( QoS ) setup โ all the stuff that lives in netscript's configuration files โจ She can manipulate individual interfaces, reconfigure the iptables filter contents and firewall setup, or reconfigure the QoS setup. Versatile queen ๐
ngl, she's rather incomplete ๐ โ this page does not describe fully the finely tuned manipulations that happen because of netscript's design, which is what enables a Linux box to serve as a high availability heavy-duty mission-critcial network router or firewall. (yes, "mission-critcial" โ we're keeping the spelling, it's part of the lore ๐)
โจ IPTABLES CONFIGURATION โจ
Configuration saving is done by iptables-save(8) and iptables-restore(8). iconic duo fr fr ๐
โจ OPTIONS โจ
startโ sets up the networking configuration by loading iptables filters, setting up the bridge, configuring interfaces, and running any configured lower layer protocol daemons or commands. For use from a startup script ๐stopโ shuts everything down. For use from a startup script ๐reloadโ refreshes the setup of netscript (except for kernel modules) from the configuration files in/etc/netscript๐restart|force-reloadโ stops everything and then starts everything again. For use from a startup script ๐ifup <interface-name>|allโ brings interface(s) up by starting any protocol daemons and configuring interfaces โฌ๏ธifdown <interface-name>|allโ shuts down said interface(s) by doing the reverse ofifdownโฌ๏ธ (that's literally what the page says, bestie, we don't ask questions ๐)ifqos <interface-name>|allโ reloads the QoS configuration for interface(s) ๐๏ธifreload <interface-name>|allโ refreshes the interface setup and implements any configuration changes โจifreset <interface-name>|allโ shuts down and then restarts interface(s), reloading configuration from the lower layer up to the network layer ๐ipfilter load|reloadโ loads/reloads the IPv4 iptables filters and reconfigures the firewalling, from that saved in/etc/netscript/iptables(viaiptables-restore(8)), plus the QoS fair queuing setup ๐ฅipfilter saveโ saves the IPv4 iptables configuration to/etc/netscript/iptablesviaiptables-save(8), after backing it up to/etc/netscript/iptables.1and cycling the previous backup files down through the configuration history ๐พipfilter usebackup [ backup-number ]โ restores the setup from the IPv4 iptables backup configuration from/etc/netscript/iptables.n( default1) viaiptables-restore(8)๐ฐ๏ธipfilter clear|flushโ removes iptables and any firewall setup, and ifIPV4_FWDING_KERNELis set toFILTER_ON(seenetwork.conf(5)), disables all IPv4 packet forwarding on the router. Very useful for debugging protocol problems on a firewall by enabling a reasonably safe check to be made with the filtering down ๐งนipfilter forward|fwdโ turns on the IPv4 kernel forwarding switch manually. This is irrespective of the setting ofIPV4_FWDING_KERNEL(seenetwork.conf(5)).
Use with caution as it will allow traffic through the box. โ ๏ธ
ipfilter noforward|nofwdโ turns off the IPv4 kernel forwarding switch manually. This is irrespective of the setting ofIPV4_FWDING_KERNEL(seenetwork.conf(5)).
Use with caution as it will cut off reachability. ๐
ipfilter fairqโ reloads the IPv4 fairq chain that marks the packets for the QoS interface transmit queues ๐ถip6filter load|reloadโ loads/reloads the IPv6 iptables filters and reconfigures the firewalling, from that saved in/etc/netscript/ip6tables(viaip6tables-restore(8)), plus the QoS fair queuing setup ๐ฅip6filter saveโ saves the IPv6 iptables configuration to/etc/netscript/iptablesviaip6tables-save(8), after backing it up to/etc/netscript/ip6tables.1and cycling the previous backup files down through the configuration history ๐พip6filter usebackup [ backup-number ]โ restores the setup from the IPv6 iptables backup configuration from/etc/netscript/ip6tables.n( default1) viaip6tables-restore(8)๐ฐ๏ธip6filter clear|flushโ removes IPv6 iptables setup, and ifIPV6_FWDING_KERNELis set toFILTER_ON(seenetwork.conf(5)), disables all IPv6 packet forwarding on the router. Very useful for debugging protocol problems on a firewall by enabling a reasonably safe check to be made with the filtering down ๐งนip6filter forward|fwdโ turns on the IPv6 kernel forwarding switch manually. This is irrespective of the setting ofIPV6_FWDING_KERNEL(seenetwork.conf(5)).
Use with caution as it will allow traffic through the box. โ ๏ธ
ip6filter noforward|nofwdโ turns off the IPv6 kernel forwarding switch manually. This is irrespective of the setting ofIPV6_FWDING_KERNEL(seenetwork.conf(5)).
Use with caution as it will affect reachability. ๐
ip6filter fairqโ reloads the IPv6 fairq chain that marks the packets for the QoS interface transmit queues ๐ถ
โจ FILES โจ
/etc/netscript/if.conf/etc/netscript/ipfilter.conf/etc/netscript/network.conf/etc/netscript/qos.conf/etc/netscript/iptables/etc/netscript/ip6tables
โจ SEE ALSO โจ
if.conf(5), ipfilter.conf(5), network.conf(5), qos.conf(5), ip(8), tc(8), iptables(8), iptables-restore(8), iptables-save(8), ip6tables(8), ip6tables-restore(8), ip6tables-save(8), brcfg(8) ๐
โจ AUTHOR โจ
This manual page was written by Matthew Grant <matt@mattgrant.net.nz>, for the Debian GNU/Linux system (but may be used by others) ๐ซถ giving credit where credit is due, periodt.
โจ BUGS โจ
"I wrote this manpage when I was half asleep..." ๐ญ
honestly? relatable. main character energy. we stan a transparent author ๐
and that's the whole page bestie!! this one dropped January 9, 2014, and it's part of the NETSCRIPT(8) System Manager's Manual โจ go configure something slay ๐
๐ฆ where this page comes from
- debian bookworm: netscript-2.4 5.5.5+nmu1
- debian trixie: netscript-2.4 5.5.5+nmu3 ยท GPL-2.0-only
- ubuntu jammy: netscript-2.4 5.5.5
- ubuntu noble: netscript-2.4 5.5.5+nmu1
- ubuntu questing: netscript-2.4 5.5.5+nmu3
- ubuntu resolute: netscript-2.4 5.5.5+nmu3build1 ยท GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms