Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ASUSWRT-Merlin RT-AC3200 380.66-2 Wed May 17 03:01:13 UTC 2017
- admin@RT-AC3200-7180:/tmp/home/root# wget -O /jffs/scripts/firewall https://raw.
- githubusercontent.com/Adamm00/IPSet_ASUS/master/firewall.sh
- --2017-05-20 18:06:00-- https://raw.githubusercontent.com/Adamm00/IPSet_ASUS/master/firewall.sh
- Resolving raw.githubusercontent.com... 151.101.112.133
- Connecting to raw.githubusercontent.com|151.101.112.133|:443... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 31308 (31K) [text/plain]
- Saving to: '/jffs/scripts/firewall'
- /jffs/scripts/firew 100%[=====================>] 30.57K --.-KB/s in 0.05s
- 2017-05-20 18:06:01 (660 KB/s) - '/jffs/scripts/firewall' saved [31308/31308]
- admin@RT-AC3200-7180:/tmp/home/root# chmod +x /jffs/scripts/firewall
- admin@RT-AC3200-7180:/tmp/home/root# sh /jffs/scripts/firewall install
- #!/bin/sh
- #############################################################################################################
- # _____ _ _ _ _ #
- # / ____| | | | | || | #
- # | (___ | | ___ _ _ __ ___| |_ __ _| || |_ #
- # \___ \| |/ / | | | '_ \ / _ \ __| \ \ / /__ _| #
- # ____) | <| |_| | | | | __/ |_ \ V / | | #
- # |_____/|_|\_\\__, |_| |_|\___|\__| \_(_) |_| #
- # __/ | #
- # |___/ #
- # #
- ## - 20/05/2017 - Asus Firewall Addition By Adamm v4.2.8 #
- ## https://github.com/Adamm00/IPSet_ASUS #
- ###################################################################################################################
- ### ----- Make Sure To Edit The Following Files ----- #
- ### /jffs/scripts/firewall-start <-- Sets up cronjob/initial execution #
- ### /jffs/scripts/firewall <-- Blacklists IP's From /jffs/scripts/ipset.txt #
- ### /jffs/scripts/ipset.txt <-- Banned IP List/IPSet Rules #
- ###################################################################################################################
- ##############################
- ### Commands ###
- ##############################
- # "unban" # <-- Remove Entry From Blacklist (IP/Range/Domain/Port/Country/Malware/All)
- # "save" # <-- Save Blacklists To /jffs/scripts/ipset.txt
- # "ban" # <-- Adds Entry To Blacklist (IP/Range/Domain/Port/Country)
- # "banmalware" # <-- Bans Various Malware Domains
- # "whitelist" # <-- Add Entry To Whitelist (IP/Range/Domain/Remove)
- # "import" # <-- Import And Merge IPSet Save To Firewall
- # "deport" # <-- Remove All IPs From IPSet Save From Firewall
- # "disable" # <-- Disable Firewall
- # "debug" # <-- Specific Debug Features (Restart/Disable/Filter/Info)
- # "update" # <-- Update Script To Latest Version (check github for changes)
- # "start" # <-- Initiate Firewall
- # "stats" # <-- Print/Search Stats Of Recently Banned IPs (Requires debugging enabled)
- # "install" # <-- Install Script (Or Change Boot Args)
- # "uninstall" # <-- Uninstall All Traces Of Script
- ##############################
- Installing Skynet v4.2.8
- This Will Remove Any Old Install Arguements And Can Be Run Multiple Times
- Please Select Installation Mode (Number)
- 1. Vanilla - Default Installation
- 2. NoAuto - Default Installation Without Autobanning
- 3. Debug - Default Installation With Debug Print For Extended Stat Reporting
- 4. NoAuto & Debug - Default Installation With No Autobanning And Debug Print
- 3
- Debug Selected
- Would You Like To Enable Weekly Malwarelist Updating
- 1. Yes
- 2. No
- Please Select Option (Number)
- 1
- Malware List Updating Enabled
- Malware Updates Scheduled For 1.25am Every Monday
- Would You Like To Enable Daily Auto Script Updating
- Skynet By Default Only Checks For Updates But They Are Never Downloaded
- 1. Yes
- 2. No
- Please Select Option (Number)
- 1
- Auto Updating Enabled
- Skynet Updates Scheduled For 2.25am Daily
- Restarting Firewall To Apply Changes
- Done.
- admin@RT-AC3200-7180:/jffs/scripts# ./firewall stats
- #!/bin/sh
- #############################################################################################################
- # _____ _ _ _ _ #
- # / ____| | | | | || | #
- # | (___ | | ___ _ _ __ ___| |_ __ _| || |_ #
- # \___ \| |/ / | | | '_ \ / _ \ __| \ \ / /__ _| #
- # ____) | <| |_| | | | | __/ |_ \ V / | | #
- # |_____/|_|\_\\__, |_| |_|\___|\__| \_(_) |_| #
- # __/ | #
- # |___/ #
- # #
- ## - 20/05/2017 - Asus Firewall Addition By Adamm v4.2.8 #
- ## https://github.com/Adamm00/IPSet_ASUS #
- ###################################################################################################################
- ### ----- Make Sure To Edit The Following Files ----- #
- ### /jffs/scripts/firewall-start <-- Sets up cronjob/initial execution #
- ### /jffs/scripts/firewall <-- Blacklists IP's From /jffs/scripts/ipset.txt #
- ### /jffs/scripts/ipset.txt <-- Banned IP List/IPSet Rules #
- ###################################################################################################################
- ##############################
- ### Commands ###
- ##############################
- # "unban" # <-- Remove Entry From Blacklist (IP/Range/Domain/Port/Country/Malware/All)
- # "save" # <-- Save Blacklists To /jffs/scripts/ipset.txt
- # "ban" # <-- Adds Entry To Blacklist (IP/Range/Domain/Port/Country)
- # "banmalware" # <-- Bans Various Malware Domains
- # "whitelist" # <-- Add Entry To Whitelist (IP/Range/Domain/Remove)
- # "import" # <-- Import And Merge IPSet Save To Firewall
- # "deport" # <-- Remove All IPs From IPSet Save From Firewall
- # "disable" # <-- Disable Firewall
- # "debug" # <-- Specific Debug Features (Restart/Disable/Filter/Info)
- # "update" # <-- Update Script To Latest Version (check github for changes)
- # "start" # <-- Initiate Firewall
- # "stats" # <-- Print/Search Stats Of Recently Banned IPs (Requires debugging enabled)
- # "install" # <-- Install Script (Or Change Boot Args)
- # "uninstall" # <-- Uninstall All Traces Of Script
- ##############################
- !!! Debug Mode Is Disabled !!!
- To Enable Use 'sh ./firewall install'
- No Debug Data Detected - Give This Time To Generate
- admin@RT-AC3200-7180:/jffs/scripts# sh ./firewall install
- #!/bin/sh
- #############################################################################################################
- # _____ _ _ _ _ #
- # / ____| | | | | || | #
- # | (___ | | ___ _ _ __ ___| |_ __ _| || |_ #
- # \___ \| |/ / | | | '_ \ / _ \ __| \ \ / /__ _| #
- # ____) | <| |_| | | | | __/ |_ \ V / | | #
- # |_____/|_|\_\\__, |_| |_|\___|\__| \_(_) |_| #
- # __/ | #
- # |___/ #
- # #
- ## - 20/05/2017 - Asus Firewall Addition By Adamm v4.2.8 #
- ## https://github.com/Adamm00/IPSet_ASUS #
- ###################################################################################################################
- ### ----- Make Sure To Edit The Following Files ----- #
- ### /jffs/scripts/firewall-start <-- Sets up cronjob/initial execution #
- ### /jffs/scripts/firewall <-- Blacklists IP's From /jffs/scripts/ipset.txt #
- ### /jffs/scripts/ipset.txt <-- Banned IP List/IPSet Rules #
- ###################################################################################################################
- ##############################
- ### Commands ###
- ##############################
- # "unban" # <-- Remove Entry From Blacklist (IP/Range/Domain/Port/Country/Malware/All)
- # "save" # <-- Save Blacklists To /jffs/scripts/ipset.txt
- # "ban" # <-- Adds Entry To Blacklist (IP/Range/Domain/Port/Country)
- # "banmalware" # <-- Bans Various Malware Domains
- # "whitelist" # <-- Add Entry To Whitelist (IP/Range/Domain/Remove)
- # "import" # <-- Import And Merge IPSet Save To Firewall
- # "deport" # <-- Remove All IPs From IPSet Save From Firewall
- # "disable" # <-- Disable Firewall
- # "debug" # <-- Specific Debug Features (Restart/Disable/Filter/Info)
- # "update" # <-- Update Script To Latest Version (check github for changes)
- # "start" # <-- Initiate Firewall
- # "stats" # <-- Print/Search Stats Of Recently Banned IPs (Requires debugging enabled)
- # "install" # <-- Install Script (Or Change Boot Args)
- # "uninstall" # <-- Uninstall All Traces Of Script
- ##############################
- Installing Skynet v4.2.8
- This Will Remove Any Old Install Arguements And Can Be Run Multiple Times
- Please Select Installation Mode (Number)
- 1. Vanilla - Default Installation
- 2. NoAuto - Default Installation Without Autobanning
- 3. Debug - Default Installation With Debug Print For Extended Stat Reporting
- 4. NoAuto & Debug - Default Installation With No Autobanning And Debug Print
- 3
- Debug Selected
- Would You Like To Enable Weekly Malwarelist Updating
- 1. Yes
- 2. No
- Please Select Option (Number)
- 1
- Malware List Updating Enabled
- Malware Updates Scheduled For 1.25am Every Monday
- Would You Like To Enable Daily Auto Script Updating
- Skynet By Default Only Checks For Updates But They Are Never Downloaded
- 1. Yes
- 2. No
- Please Select Option (Number)
- 1
- Auto Updating Enabled
- Skynet Updates Scheduled For 2.25am Daily
- Restarting Firewall To Apply Changes
- Done.
- admin@RT-AC3200-7180:/jffs/scripts# firewall stats
- #!/bin/sh
- #############################################################################################################
- # _____ _ _ _ _ #
- # / ____| | | | | || | #
- # | (___ | | ___ _ _ __ ___| |_ __ _| || |_ #
- # \___ \| |/ / | | | '_ \ / _ \ __| \ \ / /__ _| #
- # ____) | <| |_| | | | | __/ |_ \ V / | | #
- # |_____/|_|\_\\__, |_| |_|\___|\__| \_(_) |_| #
- # __/ | #
- # |___/ #
- # #
- ## - 20/05/2017 - Asus Firewall Addition By Adamm v4.2.8 #
- ## https://github.com/Adamm00/IPSet_ASUS #
- ###################################################################################################################
- ### ----- Make Sure To Edit The Following Files ----- #
- ### /jffs/scripts/firewall-start <-- Sets up cronjob/initial execution #
- ### /jffs/scripts/firewall <-- Blacklists IP's From /jffs/scripts/ipset.txt #
- ### /jffs/scripts/ipset.txt <-- Banned IP List/IPSet Rules #
- ###################################################################################################################
- ##############################
- ### Commands ###
- ##############################
- # "unban" # <-- Remove Entry From Blacklist (IP/Range/Domain/Port/Country/Malware/All)
- # "save" # <-- Save Blacklists To /jffs/scripts/ipset.txt
- # "ban" # <-- Adds Entry To Blacklist (IP/Range/Domain/Port/Country)
- # "banmalware" # <-- Bans Various Malware Domains
- # "whitelist" # <-- Add Entry To Whitelist (IP/Range/Domain/Remove)
- # "import" # <-- Import And Merge IPSet Save To Firewall
- # "deport" # <-- Remove All IPs From IPSet Save From Firewall
- # "disable" # <-- Disable Firewall
- # "debug" # <-- Specific Debug Features (Restart/Disable/Filter/Info)
- # "update" # <-- Update Script To Latest Version (check github for changes)
- # "start" # <-- Initiate Firewall
- # "stats" # <-- Print/Search Stats Of Recently Banned IPs (Requires debugging enabled)
- # "install" # <-- Install Script (Or Change Boot Args)
- # "uninstall" # <-- Uninstall All Traces Of Script
- ##############################
- No Debug Data Detected - Give This Time To Generate
- admin@RT-AC3200-7180:/jffs/scripts# firewall banmalware
- #!/bin/sh
- #############################################################################################################
- # _____ _ _ _ _ #
- # / ____| | | | | || | #
- # | (___ | | ___ _ _ __ ___| |_ __ _| || |_ #
- # \___ \| |/ / | | | '_ \ / _ \ __| \ \ / /__ _| #
- # ____) | <| |_| | | | | __/ |_ \ V / | | #
- # |_____/|_|\_\\__, |_| |_|\___|\__| \_(_) |_| #
- # __/ | #
- # |___/ #
- # #
- ## - 20/05/2017 - Asus Firewall Addition By Adamm v4.2.8 #
- ## https://github.com/Adamm00/IPSet_ASUS #
- ###################################################################################################################
- ### ----- Make Sure To Edit The Following Files ----- #
- ### /jffs/scripts/firewall-start <-- Sets up cronjob/initial execution #
- ### /jffs/scripts/firewall <-- Blacklists IP's From /jffs/scripts/ipset.txt #
- ### /jffs/scripts/ipset.txt <-- Banned IP List/IPSet Rules #
- ###################################################################################################################
- ##############################
- ### Commands ###
- ##############################
- # "unban" # <-- Remove Entry From Blacklist (IP/Range/Domain/Port/Country/Malware/All)
- # "save" # <-- Save Blacklists To /jffs/scripts/ipset.txt
- # "ban" # <-- Adds Entry To Blacklist (IP/Range/Domain/Port/Country)
- # "banmalware" # <-- Bans Various Malware Domains
- # "whitelist" # <-- Add Entry To Whitelist (IP/Range/Domain/Remove)
- # "import" # <-- Import And Merge IPSet Save To Firewall
- # "deport" # <-- Remove All IPs From IPSet Save From Firewall
- # "disable" # <-- Disable Firewall
- # "debug" # <-- Specific Debug Features (Restart/Disable/Filter/Info)
- # "update" # <-- Update Script To Latest Version (check github for changes)
- # "start" # <-- Initiate Firewall
- # "stats" # <-- Print/Search Stats Of Recently Banned IPs (Requires debugging enabled)
- # "install" # <-- Install Script (Or Change Boot Args)
- # "uninstall" # <-- Uninstall All Traces Of Script
- ##############################
- Banning Known Malware IPs
- To Use A Custom List In Future Use; "sh /opt/bin/firewall banmalware URL"
- Removing Previous Malware Bans
- Downloading Lists
- Filtering IPv4 Addresses
- Filtering IPv4 Ranges
- Applying Blacklists
- Warning; This May Have Blocked Your Favorite Torrent Website
- To Whitelist It Use; "sh /opt/bin/firewall whitelist domain URL"
- Skynet: [Complete] 140080 IPs / 5197 Ranges banned. 140080 New IPs / 5197 New Ranges Banned. 0 IP / 0 Range Connections Blocked! [47s]
- admin@RT-AC3200-7180:/jffs/scripts# firewall ban country "cn ua mk"
- #!/bin/sh
- #############################################################################################################
- # _____ _ _ _ _ #
- # / ____| | | | | || | #
- # | (___ | | ___ _ _ __ ___| |_ __ _| || |_ #
- # \___ \| |/ / | | | '_ \ / _ \ __| \ \ / /__ _| #
- # ____) | <| |_| | | | | __/ |_ \ V / | | #
- # |_____/|_|\_\\__, |_| |_|\___|\__| \_(_) |_| #
- # __/ | #
- # |___/ #
- # #
- ## - 20/05/2017 - Asus Firewall Addition By Adamm v4.2.8 #
- ## https://github.com/Adamm00/IPSet_ASUS #
- ###################################################################################################################
- ### ----- Make Sure To Edit The Following Files ----- #
- ### /jffs/scripts/firewall-start <-- Sets up cronjob/initial execution #
- ### /jffs/scripts/firewall <-- Blacklists IP's From /jffs/scripts/ipset.txt #
- ### /jffs/scripts/ipset.txt <-- Banned IP List/IPSet Rules #
- ###################################################################################################################
- ##############################
- ### Commands ###
- ##############################
- # "unban" # <-- Remove Entry From Blacklist (IP/Range/Domain/Port/Country/Malware/All)
- # "save" # <-- Save Blacklists To /jffs/scripts/ipset.txt
- # "ban" # <-- Adds Entry To Blacklist (IP/Range/Domain/Port/Country)
- # "banmalware" # <-- Bans Various Malware Domains
- # "whitelist" # <-- Add Entry To Whitelist (IP/Range/Domain/Remove)
- # "import" # <-- Import And Merge IPSet Save To Firewall
- # "deport" # <-- Remove All IPs From IPSet Save From Firewall
- # "disable" # <-- Disable Firewall
- # "debug" # <-- Specific Debug Features (Restart/Disable/Filter/Info)
- # "update" # <-- Update Script To Latest Version (check github for changes)
- # "start" # <-- Initiate Firewall
- # "stats" # <-- Print/Search Stats Of Recently Banned IPs (Requires debugging enabled)
- # "install" # <-- Install Script (Or Change Boot Args)
- # "uninstall" # <-- Uninstall All Traces Of Script
- ##############################
- Removing Previous Country Bans
- Banning Known IP Ranges For cn ua mk
- Downloading Lists
- Filtering IPv4 Ranges
- Applying Blacklists
- Skynet: [Complete] 140080 IPs / 16060 Ranges banned. 0 New IPs / 10863 New Ranges Banned. 0 IP / 0 Range Connections Blocked! [10s]
- admin@RT-AC3200-7180:/jffs/scripts# firewall save
- #!/bin/sh
- #############################################################################################################
- # _____ _ _ _ _ #
- # / ____| | | | | || | #
- # | (___ | | ___ _ _ __ ___| |_ __ _| || |_ #
- # \___ \| |/ / | | | '_ \ / _ \ __| \ \ / /__ _| #
- # ____) | <| |_| | | | | __/ |_ \ V / | | #
- # |_____/|_|\_\\__, |_| |_|\___|\__| \_(_) |_| #
- # __/ | #
- # |___/ #
- # #
- ## - 20/05/2017 - Asus Firewall Addition By Adamm v4.2.8 #
- ## https://github.com/Adamm00/IPSet_ASUS #
- ###################################################################################################################
- ### ----- Make Sure To Edit The Following Files ----- #
- ### /jffs/scripts/firewall-start <-- Sets up cronjob/initial execution #
- ### /jffs/scripts/firewall <-- Blacklists IP's From /jffs/scripts/ipset.txt #
- ### /jffs/scripts/ipset.txt <-- Banned IP List/IPSet Rules #
- ###################################################################################################################
- ##############################
- ### Commands ###
- ##############################
- # "unban" # <-- Remove Entry From Blacklist (IP/Range/Domain/Port/Country/Malware/All)
- # "save" # <-- Save Blacklists To /jffs/scripts/ipset.txt
- # "ban" # <-- Adds Entry To Blacklist (IP/Range/Domain/Port/Country)
- # "banmalware" # <-- Bans Various Malware Domains
- # "whitelist" # <-- Add Entry To Whitelist (IP/Range/Domain/Remove)
- # "import" # <-- Import And Merge IPSet Save To Firewall
- # "deport" # <-- Remove All IPs From IPSet Save From Firewall
- # "disable" # <-- Disable Firewall
- # "debug" # <-- Specific Debug Features (Restart/Disable/Filter/Info)
- # "update" # <-- Update Script To Latest Version (check github for changes)
- # "start" # <-- Initiate Firewall
- # "stats" # <-- Print/Search Stats Of Recently Banned IPs (Requires debugging enabled)
- # "install" # <-- Install Script (Or Change Boot Args)
- # "uninstall" # <-- Uninstall All Traces Of Script
- ##############################
- [Saving Blacklists] ... ... ...
- Skynet: [Complete] 140080 IPs / 16060 Ranges banned. 0 New IPs / 0 New Ranges Banned. 0 IP / 0 Range Connections Blocked! [7s]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement