Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Firewall
(view source)
Revision as of 21:55, 9 January 2013
194 bytes added
,
21:55, 9 January 2013
m
→Block incoming IP address
Line 39:
Line 39:
mkdir -p /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/
mkdir -p /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/
nano -w /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/40DenyRiffRaff
nano -w /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/40DenyRiffRaff
+
+
Now add the IP's you wish to block to the newly create file (40DenyRiffRaff) in the following format.
+
+
Of course you may call the file what ever you want as long as you add it in this format.
+
/sbin/iptables -A INPUT -s 69.212.12.76/32 -j DROP
/sbin/iptables -A INPUT -s 69.212.12.76/32 -j DROP
/sbin/iptables -A INPUT -s 88.28.215.11/32 -j DROP
/sbin/iptables -A INPUT -s 88.28.215.11/32 -j DROP
Steve288
50
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version