LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-14-2003, 10:13 AM   #1
puzz_1
Member
 
Registered: May 2003
Posts: 49

Rep: Reputation: 15
Samba and IPCHAINS


I have the following in my rc.local

/sbin/ipchains -A input -j ACCEPT -p tcp -i eth0 -s 0.0.0.0/0 -d 0.0.0.0/0 137:139

/sbin/ipchains -A output -j ACCEPT -p tcp -i eth0 -s 0.0.0.0/0 -d 0.0.0.0/0 137:139

/sbin/ipchains -A input -j ACCEPT -p udp -i eth0 -s 0.0.0.0/0 -d 0.0.0.0/0 137:139

/sbin/ipchains -A output -j ACCEPT -p udp -i eth0 -s 0.0.0.0/0 -d 0.0.0.0/0 137:139


But I still have to do a 'srvice ipchains stop' before I can access the filesystem remotely from my windows xp box. What wrong with my ipchains script? How come I am still being firewalled?

Thanks....
 
Old 11-17-2003, 08:26 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
What wrong with my ipchains script?
1. It's in the wrong place: initialisation usially is done with /etc/rc.* scripts.
2. It's not a "proper" firewall script: it doesn't cover the "basics".
3. If you have problems doing basic troubleshooting, try add logging.

Check out the LQ FAQ: Security references, post #2, "Netfilter, firewall, Iptables, Ipchains, DoS, DDoS" for some HOWTO's.
 
  


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
ipchains log and samba query RichardBuck Linux - Networking 0 12-22-2004 07:16 PM
Samba and IPChains MaleMe Linux - Security 2 11-24-2002 08:36 PM
ipchains and samba Serena Linux - Networking 1 04-27-2002 10:20 AM
ipchains mika9372 Linux - Newbie 6 03-29-2002 12:03 PM
IpChains again ETT Linux - Security 3 07-24-2001 07:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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