Need help seting up firewall!

Hi, guys my first post and maybe my last here.
I have an assignment to setup a firewall in OpenSuSE . I have done everything but cannot find how to setup IP address, DNS and gateway manualy in terminal no gui stuff. Also i need to make that firewall starts up automatic when the computer starts , also do it in terminal by hand. Can someone help please.
I am not native to Linux, so please in write the full command lines.

P.S. Sorry to admins if this is not the correct thread.

On Sun, 06 May 2012 17:26:02 +0000, Sevid wrote:

> Hi, guys my first post and maybe my last here.
> I have an assignment to setup a firewall in OpenSuSE . I have done
> everything but cannot find how to setup IP address, DNS and gateway
> manualy in terminal no gui stuff. Also i need to make that firewall
> starts up automatic when the computer starts , also do it in terminal by
> hand. Can someone help please.
> I am not native to Linux, so please in write the full command lines.

Hi, Sevid -

It sounds like this is a homework assignment - that being the case, I
would expect nobody is going to just give you the answers to your
assignment.

Have a look at the YaST firewall module and the runlevel editor. That
should get you pointed in the right direction.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

To setup your network in Terminal, often also called CLI, you would need to configure your networking setup in YaST to use the Traditional method with ifup. Have a look at the GUI side first: Configure a network card in Suse/openSUSE 11.x for Internet Access & wifi.

Next, here is a small tutorial on using ifup: Linux and UNIX ifup and ifdown command help

As for your firewall you will be doing a manual edit of this file as root in terminal:

sudo vi /etc/sysconfig/SuSEfirewall2

Here is some help on using the vi editor: Using the vi editor

After you make changes to the SuSEfirewall2 config file and have saved the changes, then you must run the following command:

sudo /sbin/SuSEfirewall2

Here is some more info on setting up iptables: Iptables - openSUSE

Consider that both networking and firewall operation are part of the Linux kernel and you must use other utilities to modify and present the required configuration files. Each Linux distribution can have a different way of doing that. Also consider doing a kernel restart if/when required. I have a bash script you can use to reload the kernel version of your choice without actually doing a reboot of your PC.

FastBoot for Grub Legacy Menu using Kexec - Version 1.40 - Blogs - openSUSE Forums

Thank You,

@hendersj

Yeah i would like the time to look at all of that but i really don’t have the time. I have 4 other assignments that are new plus exams so i really don’t have the time to look into this because it is not my thing right now, maybe i will work with something like this in the future but not right now.

@jdmcdaniel3

Tanks allot , I will try this tonight. You have helped me so much.

On Mon, 07 May 2012 11:16:02 +0000, Sevid wrote:

> Yeah i would like the time to look at all of that but i really don’t
> have the time. I have 4 other assignments that are new plus exams so i
> really don’t have the time to look into this because it is not my thing
> right now

You’ll have to do that - nobody’s going to just give you the answers to
your schoolwork. That defeats the purpose of the schoolwork, which is
for you to learn how to find the answers rather than just being given the
answers.

This forum is not the place to ask for people to do your homework for
you, and the users are strongly discouraged from doing assignments for
students who have been tasked with doing homework.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C