Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
SME Server:Documentation:FAQ
(view source)
Revision as of 16:33, 13 August 2007
66 bytes added
,
16:33, 13 August 2007
m
added mkdir & masq restart commands
Line 177:
Line 177:
*I want to block All traffic from some ip-addresses to my server.
*I want to block All traffic from some ip-addresses to my server.
Create a custom template and list the IP's
Create a custom template and list the IP's
+
mkdir -p /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/
pico -w /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/40DenyRiffRaff
pico -w /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/40DenyRiffRaff
/sbin/iptables -A INPUT -s 69.212.12.76/32 -j DROP
/sbin/iptables -A INPUT -s 69.212.12.76/32 -j DROP
Line 183:
Line 184:
expand and restart
expand and restart
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq
−
sv
d masq
; sv u masq
+
/etc/init.
d
/
masq
restart
RayMitchell
624
edits
Navigation menu
Personal tools
Log in
Namespaces
Project 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