Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: dub on October 15, 2005, 04:36:41 PM

Title: new service ip rules for sme7 b5
Post by: dub on October 15, 2005, 04:36:41 PM
Is somebody could help me to correct my way

I ve install a service "manta"
now i need to create a public access and do

[root@sme root]# /sbin/e-smith/db configuration set manta service access public status enabled

#No way

#Then i think the rest need few corrections to:
mkdir -p /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/
mcedit /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/45AllowMANTA

#then edit file to insert

{
    my $access = $manta{access} || "undef";
    my $mantaServiceStatus = $nntp{status} || "disabled";

    $OUT = allow_tcp_in(4900,
        ($access eq 'public') && ($mantaServiceStatus eq 'enabled'));
}

#finish by

[root@sme root]# /sbin/e-smith/expand-template /etc/rc.d/init.d/masq
[root@sme root]# service masq restart


i understand that files have change but where place it and how

regards
Title: Re: new service ip rules for sme7 b5
Post by: CharlieBrady on October 16, 2005, 05:44:17 AM
Quote from: "dub"
Is somebody could help me to correct my way

I ve install a service "manta"
now i need to create a public access and do

[root@sme root]# /sbin/e-smith/db configuration set manta service access public status enabled

#No way
...


Note: instead of "/sbin/e-smith/db configuration", you can just do "config".

You were very close. What you need is:

config set manta service access public status enabled Port nnn

Then, to activate, do:

signal-event remoteaccess-update
Title: new service ip rules for sme7 b5
Post by: dub on October 16, 2005, 01:09:21 PM
thanks charlie it seem to be easier than in 6.01

Did y need to create templates anymore or all is create with this script..

many thanks
Title: new service ip rules for sme7 b5
Post by: CharlieBrady on October 16, 2005, 04:19:39 PM
Quote from: "dub"
thanks charlie it seem to be easier than in 6.01


That's the intention.

Quote

Did y need to create templates anymore or all is create with this script..


No templates required.
Title: new service ip rules for sme7 b5
Post by: dub on October 16, 2005, 04:37:25 PM
last query        javascript:emoticon(':lol:')
Laughing but may be not the least...

i need to fragment http.conf with:

<Directory "/usr/local/WebDev/9.0/AWP">
  Options None
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
</Directory>
ScriptAlias /WD90AWP/ "/usr/local/WebDev/9.0/AWP/"
AddType application/x-httpd-awp .awp
Action application/x-httpd-awp /WD90AWP/WD90AWP
Alias /WDADMINISTRATEURDISTANT90_WEB/ "/usr/local/WebDev/9.0/WDAdministrateurDistant/WDADMINISTRATEURDISTANT90_WEB/"


could you give me the way for ??

it may be similar but i just start in linux and need to finish this job on monday..

i ll be very please to see a film this night and sleep earlier than this last sme7 learnning days.      javascript:emoticon('8-)')
Cool

regards
Title: new service ip rules for sme7 b5
Post by: arne on October 17, 2005, 01:19:10 AM
Hello again !

Not my question, but I think that a bether alternative would be to post a new question describing what you want to obtain, and not not a 50 % fullfinished solution how to do it. (I believe that the mod as requested would not work, due to security restrictions of the sme server, but I don't know for sure.)

Arne.
Title: Re: new service ip rules for sme7 b5
Post by: gordonr on October 21, 2005, 12:55:02 PM
Quote from: "CharlieBrady"

You were very close. What you need is:

config set manta service access public status enabled Port nnn

Then, to activate, do:

signal-event remoteaccess-update


Also close, but no cigar for you, sir. Port should be TCPPort.