Wrapper functions like SuSEFirewall2


 
Thread Tools Search this Thread
Special Forums IP Networking Wrapper functions like SuSEFirewall2
# 1  
Old 01-15-2015
Wrapper functions like SuSEFirewall2

Hey everyone, I have a question. I'm administering a linux machine that runs openSuSE. A few of the functions that I'd normally do manually, have programs that take over the task. For example, I wanted to add a few rules to my iptables. I then found out that there is an openSuse tool (SuSEfirewall2). Another exists for DNS configuration. Is using these tools mandatory?

I tried making the iptables changes the normal way by editing the file, but it didn't seem to work. Once I did the same changes with SuSEFirewall2, it seemed to work. I'm not sure if me using the suse firewall is what helped though.

So my question is, in linux in general, when there is a 'wrapper' tool like these, that edit the files for us, are we obligated to use them or can we by pass the function and do it manually?

Did the act of me using the openSusefirewall2 tool cause it to add something that I couldn't have by manually editing the iptables file?
# 2  
Old 01-15-2015
Without knowing what you did, it's very difficult to know why it didn't work. I do know that I don't know many iptables configuration tools but I do know a lot of iptables configuration generators -- they tend to replace the firewall configuration wholesale, not edit it.

This is by no means the rule.
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 01-15-2015
Thanks for the reply, yea that's what I meant to call it, it's a generator. So yea perhaps when I used the SuSeFirewall2 it overrode the manually edited iptables file completely and replaced it with my apparently more correct version.
# 4  
Old 01-15-2015
Must have, yes. It's usually a one-way translation, the way souce code to exe is a one way translation. Trying to go backwards involves a lot of detective work into what the intent of the rule was.

It's certainly possible to edit the resulting rules by hand, but then, you can't really use the generator any more -- it would override your changes.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sm - mplayer wrapper with resume and more

This is a wrapper I use to play media files. If I quit I can restart, a big plus. #!/bin/bash # Title......: sm # Description: show media # Author.....: Mitchell Johnston - uid 0 # Contact....: mxj_97@yahoo.com #---------------------------------- # variables... (0 Replies)
Discussion started by: dragon-uid0
0 Replies

2. Shell Programming and Scripting

How to execute functions or initiate functions as command line parameters for below requirement?

I have 7 functions those need to be executed as command line inputs, I tried with below code it’s not executing function. If I run the ./script 2 then fun2 should execute , how to initiate that function I tried case and if else also, how to initiate function from command line if then... (8 Replies)
Discussion started by: saku
8 Replies

3. Shell Programming and Scripting

problem with the my wrapper script

Hi friends, i am working in ksh88. i am running the follwing wapper script in background to run two jobs parallely((eg nohup wrapper.ksh &):: wrapper.ksh ######################## #!/bin/ksh nohup ./pii_insert.ksh /nsing83/p2/test & nohup ./pii_update.ksh... (1 Reply)
Discussion started by: neelmani
1 Replies

4. UNIX for Dummies Questions & Answers

What is a wrapper?

Hi, I am a dummy and hear to the computation guys telling me, "Oh! that is easy, you just write a wrapper to do all that bunch of stuff!" :cool: Could someone tell me what is a wrapper? :rolleyes: The only one I know is Cling-Wrap for sandwiches. A small elegant example would be very... (1 Reply)
Discussion started by: genehunter
1 Replies

5. UNIX for Dummies Questions & Answers

SSH/SSL wrapper

My IRC client does not support SSL, so I was wondering if there was any other way to encrypt the information between SSL clients on an IRC network, maybe by using SSH to enter the IRC program or something (it's a command-line program) and passing all the plain-text through SSH first. I tried... (0 Replies)
Discussion started by: guitarscn
0 Replies

6. Shell Programming and Scripting

Help with a wrapper script not working

Hello, I have the below wrapper script: #!/usr/bin/perl -w if ($^O eq 'MSWin32' ) { $subnet = 'c:\path\to\subnet.txt'; } else { $subnet = '/opt/qip/wrapper-del-sub'; } open FH1, 'jj-deleted-subnets.txt' or die "Can't open 'jj-deleted-subnets.txt' ... (0 Replies)
Discussion started by: richsark
0 Replies

7. UNIX for Dummies Questions & Answers

Writing a wrapper

Hi everyone, I have this custom sudo package over which I want to write a wrapper using PERL. The wrapper will do some pre-work and then call the regular sudo package from within itself. But I am facing a peculiar problem here. Once invoked, I am able to do the pre-work from within the... (1 Reply)
Discussion started by: garric
1 Replies

8. UNIX for Dummies Questions & Answers

What is a wrapper script

I tried searching the forum ,,but couldn't locate ..Can anyone give me a link or some information about wrapper script. (1 Reply)
Discussion started by: thana
1 Replies

9. UNIX for Dummies Questions & Answers

What is wrapper script and how to write

hi guys, I have a requirement to run a script 4 times with different parameter values. the 4 jobs have to run parallely which actually access different data of same table and deletes. how can i achieve this.................? Thanks in advance (1 Reply)
Discussion started by: chiru
1 Replies

10. UNIX for Advanced & Expert Users

Tcp wrapper

I installed tcp wrappers version 7.6 and modify my inetd.conf file from ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd to ftp stream tcp6 nowait root /usr/local/bin/tcpd /usr/sbin/in.ftpd -l created /etc/hosts.allow file and modify it... (19 Replies)
Discussion started by: hassan2
19 Replies
Login or Register to Ask a Question