Insert comments for rules on SuseFirewall
Hi, How can I add comments for rules on SuseFirewall? I have to many rules to register and I need to do someting like this: FW_MASQ_NETS="192.168.0.1/32,0/0,tcp,1863 \ #msn to local server 192.168.0.2/32,0/0,tcp,1863 \ # this is for Mr. Smith (manager) 192.168.0.3/32,0/0,tcp,80 # and this rules is to me But this don't work because /sbin/SuSEfirewall2 failed if I put this. So, how can I insert this comments ? Thanks a lot!
Am Dienstag, 25. April 2006 17:20 schrieb rejaine@bhz.jamef.com.br:
Hi,
How can I add comments for rules on SuseFirewall?
I have to many rules to register and I need to do someting like this:
FW_MASQ_NETS="192.168.0.1/32,0/0,tcp,1863 \ #msn to local server 192.168.0.2/32,0/0,tcp,1863 \ # this is for Mr. Smith (manager) 192.168.0.3/32,0/0,tcp,80 # and this rules is to me
But this don't work because /sbin/SuSEfirewall2 failed if I put this.
So, how can I insert this comments ?
Thanks a lot!
Not sure, but have you tried, when you begin the comment # on the beginning of a new line? Daniel -- Daniel Bauer photographer Basel Switzerland professional photography: http://www.daniel-bauer.com special interest site: http://www.bauer-nudes.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2006-04-25 at 12:20 -0300, rejaine@bhz.jamef.com.br wrote:
FW_MASQ_NETS="192.168.0.1/32,0/0,tcp,1863 \ #msn to local server 192.168.0.2/32,0/0,tcp,1863 \ # this is for Mr. Smith (manager) 192.168.0.3/32,0/0,tcp,80 # and this rules is to me
But this don't work because /sbin/SuSEfirewall2 failed if I put this.
So, how can I insert this comments ?
Using the syntax that is valid for any bash script. The "\" has got to be the last character in the line, or it will not mean "continues on next line". I don't think you can break it with a comment before the "\", because it will be interpreted to be part of the comment. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFET4GntTMYHG2NR9URAm1EAJ9Iq8D+jDkS3HeQ1kdjXP5QYbzCGQCfeS+4 8pj4uvYwkLDTdKFcEQRQdB4= =ywpZ -----END PGP SIGNATURE-----
On Tuesday 25 April 2006 17:20, rejaine@bhz.jamef.com.br wrote:
Hi,
How can I add comments for rules on SuseFirewall?
I have to many rules to register and I need to do someting like this:
FW_MASQ_NETS="192.168.0.1/32,0/0,tcp,1863 \ #msn to local server 192.168.0.2/32,0/0,tcp,1863 \ # this is for Mr. Smith (manager) 192.168.0.3/32,0/0,tcp,80 # and this rules is to me
But this don't work because /sbin/SuSEfirewall2 failed if I put this.
So, how can I insert this comments ?
Thanks a lot! Have you looked into fwbuilder? Jerry
participants (4)
-
Carlos E. R.
-
Daniel Bauer
-
Jerry Westrick
-
rejaine@bhz.jamef.com.br