LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-28-2004, 03:28 AM   #1
jon_nxt
LQ Newbie
 
Registered: May 2004
Location: ROMANIA
Distribution: SuSE Linux 9.1
Posts: 1

Rep: Reputation: 0
Setting up custom rules in SuSEfirewall2 on SuSE 9.1


Hello,

I have searched some of the posted topics, but I didn't found them very specific with my problem so, I will try to post it separately. My apologies in advance for my impatience. I don't have the time to read all the linux forums on the net and I hope this way someone will help me solve my problem faster...

So, to cut to the chase, my problem is that I want to set some custom rules in that damned firewall...
I run Linux SuSE 9.1 on a Compaq Laptop (1700 series model)
I run it like a standalone workstation. In my work hours I am connecting to my company network through the one and only eth0 available (the laptop has also a dial-up adapter, but I am not using it at all).
I don't need routing, I just want to drop all ICMP echo-replies from outside my trusted network and to close all services, except ssh.

Offcourse, manually it's working just fine, but I got very bored to do the same lines every time I boot up...
iptables -I INPUT -p icmp -j DROP
iptables -I INPUT -p tcp --dport :111 -j DROP (this is just an example, there are some other few ports opened, but when I scan with nmap -P0 localhost - they are reported as filtered.)

I have tried to add some rules in /etc/sysconfig/SuSEfirewall2-custom - but those rules of mine have no effect after the bootup sequence. (Offcourse, I have set in /etc/sysconfig/SuSEfirewall2 to FW_CUSTOMRULES = "yes" - to load from custom aditional rules from /etc/sysconfig/scripts/SuSEfirewall2-custom, but still doesn't work.

Where I'm doing wrong ? I am no linux specialist, I am still at the beginning, more a rookie I could say... but I'm not addicted to windows, so... I want to learn... still... the linux is a little more complicated than I imagined at the first glance... I hope my programming knowledges in turbo pascal, c and c++ to be some help for me.
I also hope that someone has a quick reply to solve my problem.

Thanks.
Jon
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mailscanner custom rules. David ward Linux - Software 1 11-17-2005 01:10 AM
setting rules in iptables through ssh bijuhpd Linux - Newbie 1 11-11-2005 07:59 PM
Setting up router with IP based or TCP/UDP port rules raakjoer Linux - Networking 1 10-24-2005 08:51 AM
locking down suse 9.0 with susefirewall2 heathenx Linux - Security 4 05-18-2004 10:50 AM
Suse firewall and custom iptables rules guerilla fighta Linux - Software 1 01-05-2003 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration