Networking Forums

Networking Forums > Computer Networking > Linux Networking > IP tables help

Reply
Thread Tools Display Modes

IP tables help

 
 
CCW
Guest
Posts: n/a

 
      05-17-2008, 11:59 AM
Hi,

I'm having problems with my Samba / internet connectivity. I have the
following setup:

Router (192.168.0.1) --- eth0 (192.168.0.3) - eth1 (192.168.1.1) ---
Windows workgroup (192.168.1.2-10)

Once I'd set IP addresses on the Windows PCs (I'm using static IP
addresses), using the default FC7 IPtables setup, the Windows PCs
could see the internet, but not see the Samba share I'd created.
Adding 2 rules to the IPtables manually, on the command line:

-I INPUT -i eth1 -p UDP -m multiport --dports 137, 138, 631 -j ACCEPT
-I INPUT -i eth1 -p TCP -m multiport --dports 135, 139, 445, 631 -j
ACCEPT

solved this problem. However, adding the following lines to /etc/
sysconfig/iptables file:

-A RH-Firewall-1-INPUT -p udp -m udp --dport 137 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 138 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 139
-
j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 445
-
j ACCEPT

I've attempted various combinations of adding port 631 to the rules
file but nothing seem to work. If anyone can help me with what the
correct rules should be, I'd be most grateful.

Thanks,
Chris
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IP Tables locally Vincent van Beveren Linux Networking 2 07-27-2006 11:42 AM
Access to the NAT tables Alvaro Linux Networking 2 12-05-2005 04:10 PM
NAT tables chains lekkie.aydot@gmail.com Linux Networking 5 07-29-2005 07:21 PM
Configuring IP Tables Max Linux Networking 1 07-28-2004 06:22 AM
IP Tables - PPTP/GRE + NAT Andrew Townsend Linux Networking 1 06-12-2004 09:23 AM



1 2 3 4 5 6 7 8 9 10 11