NETSCRIPT(8)
π NETSCRIPT(8) β the netscript network configuration command, bestie edition β¨
okay so. you found netscript(8), from the System Manager's Manual, and honestly? she's the main character of your router/firewall setup. let's get into it π«Ά
β¨ NAME β¨
netscript β the netscript network configuration command π
π SYNOPSIS π
netscript start|stop|reload|restart
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 πΈ
This manual page documents briefly the netscript command from the netscript router/firewall network configuration package. just the highlights, the trailer, the vibe β¨
This command is used to configure/reconfigure the iptables filter setup, that are configured in netscript's configuration files. that's the whole job. she configures, she reconfigures, she serves π
π₯ IPTABLES CONFIGURATION π₯
Configuration saving is done by iptables-save(8) and iptables-restore(8). that's the duo. the iconic pair. no cap π
π OPTIONS π
startβ Set up networking configruation by loading ipcahins filters, setting up bridge, configuring interfaces and running any configured lower layer protocol daemons or commands. For use from a startup script. yes she said "ipcahins" and yes we're keeping it, it's part of the lore πstopβ Shut everything down. For use from a startup script. bye bestie πreloadβ Refresh the setup of netscript from the configuration files in/etc/netscript. glow-up but from the config files π¦restart|force-reloadβ Stop everthing and then start everything again. For use from a startup script. the full reset, the rebirth arc π₯ipfilter load|reloadβ Load/reload the IPv4 iptables filters and reconfigure the firewalling, from that saved in/etc/netscript/iptables(viaiptables-restore(8)), and the QoS fair queuing setup. IPv4 said "let me in" and she said "no" πipfilter saveβ Save 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. she keeps receipts. she keeps ALL the receipts πipfilter usebackup [ backup-number ]β Restore setup from the IPv4 iptables backup configuration from/etc/netscript/iptables.n( default1) viaiptables-restore(8). time travel era βipfilter clear|flushβ Remove 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. cute for debugging, lowkey unhinged for production π«Ά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. bestie. caution. for real. traffic WILL go 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. same energy, opposite direction β now nobody can reach anything πipfilter fairqβ Reload the IPv4 fairq chain that marks the packets for the QoS interface transmit queues. the queue girlies stay winning πip6filter load|reloadβ Load/reload the IPv6 iptables filters and reconfigure the firewalling, from that saved in/etc/netscript/ip6tables(viaip6tables-restore(8)), and the QoS fair queuing setup. IPv6 gets the same treatment, obviously, equality β¨ip6filter saveβ Save 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. (yes, the path really says/etc/netscript/iptablesin there. we report, we don't rewrite. iykyk π)ip6filter usebackup [ backup-number ]β Restore setup from the IPv6 iptables backup configuration from/etc/netscript/ip6tables.n( default1) viaip6tables-restore(8). backup number1by default, diva behaviour πip6filter clear|flushβ Remove 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. debugging arc activated π¦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. caution, again, seriously π«Ά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. reachability is about to have a bad day πip6filter fairqβ Reload the IPv6 fairq chain that marks the packets for the QoS interface transmit queues. marking packets, slaying queues, periodt π
π§ FILES π§
/etc/netscript/ipfilter.conf,/etc/netscript/network.conf,/etc/netscript/iptables,/etc/netscript/ip6tables,
she lives in /etc/netscript/. that's her house π πΈ
π SEE ALSO π
ipfilter.conf(5), network.conf(5), ip(8), tc(8), iptables(8), iptables-restore(8), iptables-save(8), ip6tables(8), ip6tables-restore(8), ip6tables-save(8), brcfg(8).
the whole friend group, go say hi π«Ά
π 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). shoutout Matthew, iconic of him honestly π
π BUGS π
I wrote this manpage when I was half asleep...
and you know what? relatable. respect. π
written with love on January 24, 2014, shipped in the NETSCRIPT(8) era of the System Manager's Manual β mwah, stay configured bestie πβ¨
π¦ where this page comes from
- debian bookworm: netscript-ipfilter 5.5.5+nmu1
- ubuntu jammy: netscript-ipfilter 5.5.5
- ubuntu noble: netscript-ipfilter 5.5.5+nmu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms