Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-27-2006, 01:37 AM   #1
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.

# 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 53 -d 0/0 -p udp -j ACCEPT
-A input -s 53 -d 0/0 -p udp -j ACCEPT
-A input -s 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
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
Registered: Nov 2001
Location: Hi Hat KY USA
Distribution: RedHat, Mandrake
Posts: 63

Original Poster
Rep: Reputation: 15
nope didnt work

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?)
added port 32787 to ipchains and all is well

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


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
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

All times are GMT -5. The time now is 04:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration