Directly through iptables or if you're using Bastille firewall by adding this to etc/Bastille/firewall.d/post-rule-setup.sh...
Code:
/sbin/iptables -I INPUT -p tcp -s IPADDRESS --dport PORTNUMBER -j DROP
Then /etc/init.d/bastille-firewall restart
The options for -j are ACCEPT, DROP, REJECT and RETURN (jump to another chain in iptables).
Be carefull you can block more than you want to. For example I ACCEPT mail on port 25 from howtoforge.com but DROP all other ip addresses in their CIDR (81.0.0.0/8) that attempt to access port 25.
Recent comments
17 hours 32 min ago
22 hours 31 min ago
23 hours 57 min ago
1 day 50 min ago
1 day 2 hours ago
1 day 6 hours ago
1 day 7 hours ago
1 day 10 hours ago
1 day 23 hours ago
2 days 47 min ago