LinuxQuestions.org
Help answer threads with 0 replies.
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 10-27-2006, 01:37 AM   #1
dewcansam
Member
 
Registered: Nov 2001
Location: Hi Hat KY USA
Distribution: RedHat, Mandrake
Posts: 63

Rep: Reputation: 15
cant conect to w2k shutting down ipchains works whats wrong with config file ?


running rh7.2 and using ipchains i cant connect to my w2k shares i issue '/etc/rc.d/init.d/ipchains stop' and then my smbmnt command works. so i know that it is my ipchains. my problem is i haved used this layout b4 and never had any problems, so i studied the rules and everything should check out? anyways if somebody can give me a hint. pc is not really connected to inet so not too woried if ipchains is down but would really rather have it up.

Code:
# Firewall configuration written by lokkit
# Manual customization of this file is not recommended.
# Note: ifup-post will punch the current nameservers through the
#       firewall; such entries will *not* be listed here.
:input ACCEPT
:forward ACCEPT
:output ACCEPT
## ACCEPT policy
-A input -s 0/0 -d 0/0 -i lo -j ACCEPT
-A input -s 0/0 -d 0/0 21 -p tcp -y -j ACCEPT
-A input -s 0/0 -d 0/0 23 -p tcp -y -j ACCEPT
-A input -s 192.168.1.1 53 -d 0/0 -p udp -j ACCEPT
-A input -s 208.225.80.2 53 -d 0/0 -p udp -j ACCEPT
-A input -s 208.225.80.4 53 -d 0/0 -p udp -j ACCEPT
-A input -s 0/0 -d 0/0 80 -p tcp -y -j ACCEPT
-A input -s 0/0 -d 0/0 137 -p tcp -y -j ACCEPT
-A input -s 0/0 -d 0/0 137 -p udp  -j ACCEPT
-A input -s 0/0 -d 0/0 138 -p tcp -y -j ACCEPT
-A input -s 0/0 -d 0/0 138 -p udp  -j ACCEPT
-A input -s 0/0 -d 0/0 139 -p tcp -y -j ACCEPT
-A input -s 0/0 -d 0/0 139 -p udp  -j ACCEPT
## REJECT policy
-A input -s 0/0 -d 0/0 -p tcp -y -j REJECT
-A input -s 0/0 -d 0/0 -p udp -j REJECT
 
Old 10-27-2006, 05:15 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Should you have port 445 in your accept rules?
 
Old 10-27-2006, 05:59 AM   #3
dewcansam
Member
 
Registered: Nov 2001
Location: Hi Hat KY USA
Distribution: RedHat, Mandrake
Posts: 63

Original Poster
Rep: Reputation: 15
nope didnt work

--edit--
ok after doing some checking(a lightbulb turned on).
i have 6 computers in a small home network tied to the internet by a router going to a cable modem. i did a tcpdump on the rh7.2 and saw a number of requests going out to the router (i guess to get the netbios name?)
GOT IT
added port 32787 to ipchains and all is well
thanx

Last edited by dewcansam; 10-27-2006 at 06:17 AM.
 
  


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
Whats wrong with this file? hermittlog Linux - Newbie 4 10-17-2004 08:07 PM
Whats wrong with my GRUB config? Memzback Linux - Newbie 1 04-25-2004 11:25 PM
RH8 conect to w2k share? kidwired Linux - Newbie 0 12-31-2002 02:58 PM
ipchains?? iptables? whats goin on? tarballedtux Linux - Networking 19 03-12-2002 12:22 PM
setup ipchains, doesn't seem to do anything, what am i doing wrong? JustinHoMi Linux - Security 3 10-11-2001 08:46 AM

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

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