Hello!
I finally have the time to have a look-see at sme10.
Some of the information has come from a how-to, "how to custom template host blocking"
but because of the changes between sme 9.x and sme 10.x doesn't seem to work.
Namely I am unable to add 2 lines to the blocking script. and am unable to copy the script to templates-custom.
a la:
"
mkdir -p /etc/e-smith/templates-custom/etc/rc.d/init.d/masq
cp -p /etc/e-smith/templates/etc/rc.d/init.d/masq /etc/e-smith/templates-custom/etc/rc.d/init.d/masq
cd /etc/e-smith/templates-custom/etc/rc.d/init.d/masq
Creating the new file:
vi 40DenyZombies
and exiting after adding changes in the editor:
and Expanding the template:
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq
/etc/init.d/masq restart
"
Can someone help me because I'd like too add 2 lines to the masq blocking code:
"
/sbin/iptables -A INPUT -p udp --dport 1:112 -j DROP
/sbin/iptables -A INPUT -p udp --dport 114:65535 -j DROP
"
to stop all inbound UTP connections save port 113, which is used by my isp to tell if my connection is active or not.
Also I'd like to customize the nameservers used by sme to just:
"
208.67.220.220
208.67.222.222
"
as the aussie nameservers all use dns poisoning.
Is there something I can read or notes or something that I can get updated information on the new system?
Any/All help appreciated.
:An update:
I think I fixed it, both issues by:
doing some research and going to
"
https://wiki.koozali.org/Template_Tutorial"
to see what might be changed from sme 9 to sme 10
issue 1:
by adding a /* to the cp -p command (it wasn't working) so it looks like this:
cp -p /etc/e-smith/templates/etc/rc.d/init.d/masq/* /etc/e-smith/templates-custom/etc/rc.d/init.d/masq
"
and adding a new fragment, 40DenyZombies, editing it, and proceeding to add the new fragment, and restarting masq a la above.
issue 2:
by copying the following to the templates-custom directory and modifying the 25nameservers file
/etc/e-smith/templates/etc/resolv.conf/*
then expand-template /etc/resolv.conf
Anything anyone want to add?