LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 02-17-2005, 11:17 AM   #1
one_ro
LQ Newbie
 
Registered: Nov 2004
Location: Romania
Posts: 20

Rep: Reputation: 0
setting the firewall


Hi listers,

I have a Linux machine in a Windoz network, and trying to connect to the server via samba I ran in all sorts of troubles until I found out it's my firewall that wouldn't let me connect to the server.
Shutting down the firewall does solve the problem, but I feel more secure with it on... how can I configure it so that the winsows server's IP (or a range of IPs in a local network) could be trusted?

Any help appreciated,
Adrian
 
Old 02-17-2005, 04:59 PM   #2
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
Hi.

To allow samba connections through your firewall you can do this....

iptables -A INPUT -i eth0 -p tcp -m multiport --dport 135,136,137,138,139,445 -j ACCEPT
iptables -A INPUT -i eth0 -p udp -m multiport --dport 135,136,137,138,139,445 -j ACCEPT

What that does in this case is allows samba connections through my eth0 network card.

You will need both lines, the ports there are the ones that samba uses.

Let me know how you go.
Craig
 
Old 02-17-2005, 05:10 PM   #3
brundles
Member
 
Registered: Nov 2003
Location: UK
Distribution: SUSE 9.2
Posts: 77

Rep: Reputation: 15
Are you using the SuSE firewall2?

I've found YAST itself to be fairly unhelpful when configuring this. The firewall itself has quite a bit of flexibility but Yast seems fairly limited as to what it can do with it.

If I remember rightly (booted on Windows at the moment - having problems building my first new kernel ) you can find the main config file in /etc/sysconfig/network. There's a lot of stuff in there to allow you to setup specific services for cards, IP addresses, DMZs, etc. Very handy for me as I have two wireless cards at the moment - one with no routing to the internet but the other with it (among other things).

Once that's edited as you want, just type
Code:
rcSuSEfirewall2 restart
from a command prompt.
 
  


Reply



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
firewall setting DanielTan Linux - Security 47 11-16-2005 10:09 PM
Setting up a firewall myguest Linux - Security 5 08-02-2004 12:32 PM
setting up a firewall behind a router mattmc97 Linux - Security 3 05-05-2004 04:36 PM
Setting up MDK 9.2 Firewall raysr Linux - Newbie 13 01-05-2004 07:46 PM
Setting up firewall linuxfond Linux - Newbie 3 02-21-2003 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 11:40 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
Open Source Consulting | Domain Registration