SkierInAvon
Occasional Visitor
I have a bash script that is designed to prevent connections inbound FROM the Internet from getting through (inbound) my Asus GT-5300.
I am trying to prevent my email server (SMTP Port 25) from (abusive inbound from the Internet) connections.
Script is designed to just "drop" inbound packets from a specific IP and/or subnet address.
I'd like to run this bash script (as root?) at boot time - or just after boot time after Asus GT-5300 is fully running.
Which directory should I put the script?
What command should I run (as root?) to get the script run?
I suppose crontab -e method might be an option as well...
(short example from script)
#!/bin/sh
iptables -I FORWARD -s 1.85.74.0/24 -j DROP
iptables -I FORWARD -s 100.1.226.6 -j DROP
iptables -I FORWARD -s 101.0.84.0/24 -j DROP
Thanks!
I am trying to prevent my email server (SMTP Port 25) from (abusive inbound from the Internet) connections.
Script is designed to just "drop" inbound packets from a specific IP and/or subnet address.
I'd like to run this bash script (as root?) at boot time - or just after boot time after Asus GT-5300 is fully running.
Which directory should I put the script?
What command should I run (as root?) to get the script run?
I suppose crontab -e method might be an option as well...
(short example from script)
#!/bin/sh
iptables -I FORWARD -s 1.85.74.0/24 -j DROP
iptables -I FORWARD -s 100.1.226.6 -j DROP
iptables -I FORWARD -s 101.0.84.0/24 -j DROP
Thanks!