* Disabled gputest
* The package is failing to install.
* Now using Midori GTK3 build
* GTK2 was pulled from main repos for security reasons
* Removed warnings about missing UFD
* For use with live sessions
* Wallpaper updated for live sessions
* Wallpaper is now set at startup
* Checks for UFD source but defaults to included file
* Bugfix: Wallpaper is now set for multiple monitor/workspace setups
* Disabled choose-mirror service
* Better permission handling
* build-wk now checks if running as root
* build-wk now sets permissions before calling build.sh
* Should prevent build failues as build.sh expects files to be owned by root
* build-wk sets ownership back to builduser.builduser during cleanup
* Better menu for HW-Diags
* The script now returns to the menu after running a selection
* Unless the mode was set directly by passing a valid argument
* NOTE: This allows for easier use in CLI mode
* Add delay before removing /media/wktech
* Adjusted TMP_DIR in build-wk
* Fixed path to custom repo
* Trimming the fat
* hostname / hosts now configured by customize_airootfs.sh
* removed files from etc that were at default settings
* removed grml zsh config since oh-my-zsh/lean is used
* Defined a LOG_DIR for build-wk
* Introducing libinput
* Switched to libinput over synaptics as it has been deprecated.
* Should restore touchpad functionality going forward.
* Full mount path SHOULD now be displayed for mount-all-volumes.
* Added CLI Screensavers
* diag-network works now
* network connection tests now passes all ipv4 private ip ranges
* 10.0.0.0/8, 172.16.0.0/12, & 192.168.0.0/24
* need to add ipv6 at some point
* hw-diag menu flow adjusted
* New hostname and more bugfixes
* hostname switched to wk-arch
* ufw package is now installed
* adjusted upload section of hw-diags
* Added alias for start-wifi
* Booting to CLI mode will autologin wktech
* When booting to the CLI the motd shows some avail commands
* Adjusted HW-Diags menu for use in CLI mode
138 lines
6.3 KiB
Text
138 lines
6.3 KiB
Text
#
|
|
# rules.before
|
|
#
|
|
# Rules that should be run before the ufw command line added rules. Custom
|
|
# rules should be added to one of these chains:
|
|
# ufw6-before-input
|
|
# ufw6-before-output
|
|
# ufw6-before-forward
|
|
#
|
|
|
|
# Don't delete these required lines, otherwise there will be errors
|
|
*filter
|
|
:ufw6-before-input - [0:0]
|
|
:ufw6-before-output - [0:0]
|
|
:ufw6-before-forward - [0:0]
|
|
# End required lines
|
|
|
|
|
|
# allow all on loopback
|
|
-A ufw6-before-input -i lo -j ACCEPT
|
|
-A ufw6-before-output -o lo -j ACCEPT
|
|
|
|
# drop packets with RH0 headers
|
|
-A ufw6-before-input -m rt --rt-type 0 -j DROP
|
|
-A ufw6-before-forward -m rt --rt-type 0 -j DROP
|
|
-A ufw6-before-output -m rt --rt-type 0 -j DROP
|
|
|
|
# quickly process packets for which we already have a connection
|
|
-A ufw6-before-input -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
|
-A ufw6-before-output -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
|
-A ufw6-before-forward -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
|
|
|
# drop INVALID packets (logs these in loglevel medium and higher)
|
|
-A ufw6-before-input -m conntrack --ctstate INVALID -j ufw6-logging-deny
|
|
-A ufw6-before-input -m conntrack --ctstate INVALID -j DROP
|
|
|
|
# ok icmp codes for INPUT (rfc4890, 4.4.1 and 4.4.2)
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type destination-unreachable -j ACCEPT
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type packet-too-big -j ACCEPT
|
|
# codes 0 and 1
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type time-exceeded -j ACCEPT
|
|
# codes 0-2
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type parameter-problem -j ACCEPT
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type echo-request -j ACCEPT
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type echo-reply -j ACCEPT
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type router-solicitation -m hl --hl-eq 255 -j ACCEPT
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type router-advertisement -m hl --hl-eq 255 -j ACCEPT
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type neighbor-solicitation -m hl --hl-eq 255 -j ACCEPT
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type neighbor-advertisement -m hl --hl-eq 255 -j ACCEPT
|
|
# IND solicitation
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type 141 -m hl --hl-eq 255 -j ACCEPT
|
|
# IND advertisement
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type 142 -m hl --hl-eq 255 -j ACCEPT
|
|
# MLD query
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type 130 -s fe80::/10 -j ACCEPT
|
|
# MLD report
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type 131 -s fe80::/10 -j ACCEPT
|
|
# MLD done
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type 132 -s fe80::/10 -j ACCEPT
|
|
# MLD report v2
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type 143 -s fe80::/10 -j ACCEPT
|
|
# SEND certificate path solicitation
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type 148 -m hl --hl-eq 255 -j ACCEPT
|
|
# SEND certificate path advertisement
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type 149 -m hl --hl-eq 255 -j ACCEPT
|
|
# MR advertisement
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type 151 -s fe80::/10 -m hl --hl-eq 1 -j ACCEPT
|
|
# MR solicitation
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type 152 -s fe80::/10 -m hl --hl-eq 1 -j ACCEPT
|
|
# MR termination
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type 153 -s fe80::/10 -m hl --hl-eq 1 -j ACCEPT
|
|
|
|
# ok icmp codes for OUTPUT (rfc4890, 4.4.1 and 4.4.2)
|
|
-A ufw6-before-output -p icmpv6 --icmpv6-type destination-unreachable -j ACCEPT
|
|
-A ufw6-before-output -p icmpv6 --icmpv6-type packet-too-big -j ACCEPT
|
|
# codes 0 and 1
|
|
-A ufw6-before-output -p icmpv6 --icmpv6-type time-exceeded -j ACCEPT
|
|
# codes 0-2
|
|
-A ufw6-before-output -p icmpv6 --icmpv6-type parameter-problem -j ACCEPT
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type echo-request -j ACCEPT
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type echo-reply -j ACCEPT
|
|
-A ufw6-before-output -p icmpv6 --icmpv6-type router-solicitation -m hl --hl-eq 255 -j ACCEPT
|
|
-A ufw6-before-output -p icmpv6 --icmpv6-type neighbor-advertisement -m hl --hl-eq 255 -j ACCEPT
|
|
-A ufw6-before-output -p icmpv6 --icmpv6-type neighbor-solicitation -m hl --hl-eq 255 -j ACCEPT
|
|
-A ufw6-before-output -p icmpv6 --icmpv6-type router-advertisement -m hl --hl-eq 255 -j ACCEPT
|
|
# IND solicitation
|
|
-A ufw6-before-output -p icmpv6 --icmpv6-type 141 -m hl --hl-eq 255 -j ACCEPT
|
|
# IND advertisement
|
|
-A ufw6-before-output -p icmpv6 --icmpv6-type 142 -m hl --hl-eq 255 -j ACCEPT
|
|
# MLD query
|
|
-A ufw6-before-output -p icmpv6 --icmpv6-type 130 -s fe80::/10 -j ACCEPT
|
|
# MLD report
|
|
-A ufw6-before-output -p icmpv6 --icmpv6-type 131 -s fe80::/10 -j ACCEPT
|
|
# MLD done
|
|
-A ufw6-before-output -p icmpv6 --icmpv6-type 132 -s fe80::/10 -j ACCEPT
|
|
# MLD report v2
|
|
-A ufw6-before-output -p icmpv6 --icmpv6-type 143 -s fe80::/10 -j ACCEPT
|
|
# SEND certificate path solicitation
|
|
-A ufw6-before-output -p icmpv6 --icmpv6-type 148 -m hl --hl-eq 255 -j ACCEPT
|
|
# SEND certificate path advertisement
|
|
-A ufw6-before-output -p icmpv6 --icmpv6-type 149 -m hl --hl-eq 255 -j ACCEPT
|
|
# MR advertisement
|
|
-A ufw6-before-output -p icmpv6 --icmpv6-type 151 -s fe80::/10 -m hl --hl-eq 1 -j ACCEPT
|
|
# MR solicitation
|
|
-A ufw6-before-output -p icmpv6 --icmpv6-type 152 -s fe80::/10 -m hl --hl-eq 1 -j ACCEPT
|
|
# MR termination
|
|
-A ufw6-before-output -p icmpv6 --icmpv6-type 153 -s fe80::/10 -m hl --hl-eq 1 -j ACCEPT
|
|
|
|
# ok icmp codes for FORWARD (rfc4890, 4.3.1)
|
|
-A ufw6-before-forward -p icmpv6 --icmpv6-type destination-unreachable -j ACCEPT
|
|
-A ufw6-before-forward -p icmpv6 --icmpv6-type packet-too-big -j ACCEPT
|
|
# codes 0 and 1
|
|
-A ufw6-before-forward -p icmpv6 --icmpv6-type time-exceeded -j ACCEPT
|
|
# codes 0-2
|
|
-A ufw6-before-forward -p icmpv6 --icmpv6-type parameter-problem -j ACCEPT
|
|
-A ufw6-before-forward -p icmpv6 --icmpv6-type echo-request -j ACCEPT
|
|
-A ufw6-before-forward -p icmpv6 --icmpv6-type echo-reply -j ACCEPT
|
|
# ok icmp codes for FORWARD (rfc4890, 4.3.2)
|
|
# Home Agent Address Discovery Reques
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type 144 -j ACCEPT
|
|
# Home Agent Address Discovery Reply
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type 145 -j ACCEPT
|
|
# Mobile Prefix Solicitation
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type 146 -j ACCEPT
|
|
# Mobile Prefix Advertisement
|
|
-A ufw6-before-input -p icmpv6 --icmpv6-type 147 -j ACCEPT
|
|
|
|
# allow dhcp client to work
|
|
-A ufw6-before-input -p udp -s fe80::/10 --sport 547 -d fe80::/10 --dport 546 -j ACCEPT
|
|
|
|
# allow MULTICAST mDNS for service discovery
|
|
-A ufw6-before-input -p udp -d ff02::fb --dport 5353 -j ACCEPT
|
|
|
|
# allow MULTICAST UPnP for service discovery
|
|
-A ufw6-before-input -p udp -d ff02::f --dport 1900 -j ACCEPT
|
|
|
|
# don't delete the 'COMMIT' line or these rules won't be processed
|
|
COMMIT
|