LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-03-2003, 02:26 PM   #1
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Rep: Reputation: 15
iptables


i have installed RedHat 8.0. I also installed Samba. I can see all of my shared files locally when i run smbclient but when i try to connect from another machine tells me it cant through port 139. i checked my security level and it says HIGH, with no boxes checked for any devices, especially eth0. I tried to change it but when i said save it wouldnt let me. I know u can change this file from iptables but i am not sure how, or what it should say inside iptables. Not even sure which file to make the changes on. If somebody can help me or lead me in the right direction i would appreciate it. thanks.
 
Old 04-03-2003, 02:32 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Make sure you are loggen in as root before you run lokkit. You can remove all firewall rules with "iptables -F".
 
Old 04-03-2003, 02:32 PM   #3
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
Do: 'iptables -t filter -I INPUT -p TCP --dport 139 -j ACCEPT'

This will insert a rule at the very beginning of the packet filter for incomming connections that will accept any packet coming in on TCP 139.

If this fixes your issue, do a 'iptables-save > /etc/sysconfig/iptables' so that the changes retained after a reboot.
 
Old 04-03-2003, 10:09 PM   #4
Magueta
LQ Newbie
 
Registered: Apr 2003
Location: Toronto, Ontario, Canada
Distribution: Red Hat
Posts: 29

Rep: Reputation: 15
If what Bentz said doesn't work then use iptables -F and give that a try. You'll have to change your iptables rules if this fixes your problem or you'll have to run iptables -F after every reboot, not to mention that after that command you won't have any firewall up and running whatsoever.
p.s. iptables -F removes all your firewall rules.

Joe
 
Old 04-05-2003, 08:20 AM   #5
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
If you choose to follow Magueta's advice and ditch your firewall altogether, you can do so by using 'chkconfig --level 2345 iptables off' this will prevent iptables from loading any firewall rules on startup. (This can be reenabled using 'chkconfig --level 2345 iptables on').
 
  


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
An error occured getting IPtables status from the command /etc/rc.d/init.d/iptables s CrazyMAzeY Linux - Newbie 10 08-12-2010 05:25 AM
Iptables - Couldn't load target `ACCPET':/lib/iptables/libipt_ACCPET.so: z00t Linux - Security 3 01-26-2004 02:24 AM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 06:08 AM
iptables book wich one can you pll recomment to be an iptables expert? linuxownt Linux - General 2 06-26-2003 04:38 PM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 07:36 AM

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

All times are GMT -5. The time now is 06:33 PM.

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