NETSCRIPT(8)

๐Ÿ“ฆ
version 5.5.5 ยท 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute

๐ŸŒธ 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 of ifdown โฌ‡๏ธ (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 (via iptables-restore(8) ), plus the QoS fair queuing setup ๐Ÿ”ฅ
  • ipfilter save โ€” saves the IPv4 iptables configuration to /etc/netscript/iptables via iptables-save(8) , after backing it up to /etc/netscript/iptables.1 and 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 ( default 1 ) via iptables-restore(8) ๐Ÿ•ฐ๏ธ
  • ipfilter clear|flush โ€” removes iptables and any firewall setup, and if IPV4_FWDING_KERNEL is set to FILTER_ON (see network.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 of IPV4_FWDING_KERNEL (see network.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 of IPV4_FWDING_KERNEL (see network.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 (via ip6tables-restore(8) ), plus the QoS fair queuing setup ๐Ÿ”ฅ
  • ip6filter save โ€” saves the IPv6 iptables configuration to /etc/netscript/iptables via ip6tables-save(8) , after backing it up to /etc/netscript/ip6tables.1 and 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 ( default 1 ) via ip6tables-restore(8) ๐Ÿ•ฐ๏ธ
  • ip6filter clear|flush โ€” removes IPv6 iptables setup, and if IPV6_FWDING_KERNEL is set to FILTER_ON (see network.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 of IPV6_FWDING_KERNEL (see network.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 of IPV6_FWDING_KERNEL (see network.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 ๐Ÿ’