SPAM: Re: [opensuse-factory] SPAM: SF2 Script with multiline and commenting line
FW_SERVICES_EXT_TCP="80" #this is http FW_SERVICES_EXT_TCP="443" #this is https FW_SERVICES_EXT_TCP="21" #this is ftp fro Mr.A and B
currently i must type this in sf2: FW_SERVICES_EXT_TCP="80 443 21"
current scripts syntax difficult for large network with customize ports service for any clients.
It's just bash variable assignments, and I don't see a problem. Run sed to modify the variable settings, or if you create
automatically by a method of your choice, have that method create the whole file (and you woulnd't need to keep the comments).
SuSEfirewall2 is more powerful and easier to use
----- Original Message -----
From: "Volker Kuhlmann"
firewall GUI stuff I've seen.
In your example, you could write
FW_SERVICES_EXT_TCP=" 80 443 21 "
or
FW_SERVICES_EXT_TCP= FW_SERVICES_EXT_TCP="$FW_SERVICES_EXT_TCP 80" FW_SERVICES_EXT_TCP="$FW_SERVICES_EXT_TCP 443" FW_SERVICES_EXT_TCP="$FW_SERVICES_EXT_TCP 21"
if you wanted to. Don't necessarily expect yast to still be able to handle it then though.
Volker
oo... thanks for the last tip, that's what i really needed! __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory-help@opensuse.org
The Nice Spider wrote:
----- Original Message ----- From: "Volker Kuhlmann"
... In your example, you could write
FW_SERVICES_EXT_TCP=" 80 443 21 "
or
FW_SERVICES_EXT_TCP= FW_SERVICES_EXT_TCP="$FW_SERVICES_EXT_TCP 80" FW_SERVICES_EXT_TCP="$FW_SERVICES_EXT_TCP 443" FW_SERVICES_EXT_TCP="$FW_SERVICES_EXT_TCP 21"
if you wanted to. Don't necessarily expect yast to still be able to handle it then though.
Volker
oo... thanks for the last tip, that's what i really needed!
On the other hand, if you experience such problem, you might try to file a bugreport to bugzilla. Despite the fact that YaST maybe isn't able to be able to handle this multiline configuration, it necessarily needn't stay that way ;) Almost everything can be enhanced if it makes sense to do it (that means: it isn't too expensive and it's relatively easy to implement it). Lukas --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory-help@opensuse.org
Lukas Ocilka wrote:
The Nice Spider wrote:
----- Original Message ----- From: "Volker Kuhlmann"
... In your example, you could write
FW_SERVICES_EXT_TCP=" 80 443 21 "
or
FW_SERVICES_EXT_TCP= FW_SERVICES_EXT_TCP="$FW_SERVICES_EXT_TCP 80" FW_SERVICES_EXT_TCP="$FW_SERVICES_EXT_TCP 443" FW_SERVICES_EXT_TCP="$FW_SERVICES_EXT_TCP 21"
if you wanted to. Don't necessarily expect yast to still be able to handle it then though.
Volker
oo... thanks for the last tip, that's what i really needed!
On the other hand, if you experience such problem, you might try to file a bugreport to bugzilla. Despite the fact that YaST maybe isn't able to be able to handle this multiline configuration, it necessarily needn't stay that way ;)
Almost everything can be enhanced if it makes sense to do it (that means: it isn't too expensive and it's relatively easy to implement it).
By the way, too late to file a bugreport :) New entry in yast2.changes - Fixed handling of multiline entries in the SuSEfirewall2 sysconfig file. Newline characters were removed when joining multiline entries together. By now, .sysconfig.SuSEfirewall2 returns values as it reads them, newlines are replaced with spaces in SuSEFirewall::Read() (#194419). This should appear in yast2-2.13.69 Lukas --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory-help@opensuse.org
participants (2)
-
Lukas Ocilka
-
The Nice Spider