LinuxQuestions.org
Visit Jeremy's Blog.
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 02-11-2006, 01:45 AM   #1
Xstar
LQ Newbie
 
Registered: Nov 2005
Posts: 12

Rep: Reputation: 0
How should I write the iptables rule for Samba?


I have a Samba Server in the Windows network.The rule write like this :
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP
iptables -A INPUT -p tcp -d 192.168.0.1 --dport 139 -j ACCEPT
iptables -A OUTPUT -p tcp -s 192.168.0.1 --dport 139 -j ACCEPT
iptables -A INPUT -p udp -d 192.168.0.1 --dport 137:138 -j ACCEPT
iptables -A OUTPIT -p udp -d 192.168.0.1 --dport 137:138 -j ACCEPT
But I can't access the Samba Server!
How should I do?
Thank you!
 
Old 02-11-2006, 04:05 AM   #2
~=gr3p=~
Member
 
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227

Rep: Reputation: 30
it's really easy trust me. but u better get started learning iptables from here:

http://www.linuxhomenetworking.com/w...Using_iptables
http://www.linuxhomenetworking.com/w...roubleshooting
 
Old 02-11-2006, 05:24 AM   #3
Xstar
LQ Newbie
 
Registered: Nov 2005
Posts: 12

Original Poster
Rep: Reputation: 0
OK,thanks!
 
  


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
help with iptables rule!! vishamr2000 Linux - Security 6 11-09-2005 05:34 AM
iptables rule order Kumado Linux - Security 4 10-13-2005 11:12 PM
iptables rule to let samba in phishintrip Linux - Networking 7 10-17-2003 10:25 AM
Help me write iptable rule to LOG gpagedar Linux - Security 1 10-01-2003 06:47 AM
IPTables Rule... Grim Reaper Linux - Software 8 04-28-2003 12:20 PM

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

All times are GMT -5. The time now is 05:47 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