Results 1 to 3 of 3

Thread: iptables & samba -- quick question

  1. #1

    iptables & samba -- quick question

    I followed the instructions at iptablesrocks.org to set up a firewall for my home network. It's working great, and I can see the benefits immediately just by checking the logs.

    Problem is I have this box connected to 3 other windows machines and 1 mac via samba. Samba worked beautifully before I installed the iptables rules. I've scoured the web for instructions on how to fix this, but can't seem to get it working. Any assistance would be greatly appreciated.

    ifconfig results:

    Code:
    eth0      Link encap:Ethernet  HWaddr 00:08:74:C2:95:16  
              inet addr:192.168.1.10  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::208:74ff:fec2:9516/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:101305914 errors:684749 dropped:331602 overruns:0 frame:115992
              TX packets:203890532 errors:0 dropped:0 overruns:0 carrier:12
              collisions:0 txqueuelen:1000 
              RX bytes:564101728 (537.9 Mb)  TX bytes:3956813268 (3773.5 Mb)
              Interrupt:11 
    
    eth1      Link encap:Ethernet  HWaddr 00:00:C5:53:21:88  
              inet addr:192.168.1.110  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::200:c5ff:fe53:2188/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:7335394 dropped:0 overruns:0 frame:0
              TX packets:0 errors:24 dropped:0 overruns:0 carrier:67
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
              Interrupt:11 Base address:0xc000 
    
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:3087675 errors:0 dropped:0 overruns:0 frame:0
              TX packets:3087675 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:1098955532 (1048.0 Mb)  TX bytes:1098955532 (1048.0 Mb)
    Kind regards,
    Michael

  2. #2
    Senior Member
    Join Date
    May 2004
    Location
    Pakistan
    Posts
    253

    Re:

    Dear mcohn,
    Hello,

    Also use these rules !!

    # iptables -I INPUT -p tcp --dport 137 -j ACCEPT
    # iptables -I INPUT -p udp --dport 137 -j ACCEPT
    # iptables -I INPUT -p tcp --dport 138 -j ACCEPT
    # iptables -I INPUT -p udp --dport 138 -j ACCEPT
    # iptables -I INPUT -p tcp --dport 139 -j ACCEPT
    # iptables -I INPUT -p udp --dport 139 -j ACCEPT


    Best Regards.
    Färrükh Ähmëd

  3. #3

    Samba + iptables

    make this rule as well.

    # iptables -I INPUT -p tcp --dport 445 -j ACCEPT
    # iptables -I INPUT -p udp --dport 445 -j ACCEPT

    ok.

    u can also visit
    http://www.linuxcops.com
    or
    http://forum.linuxcops.com
    for howtos...

Similar Threads

  1. iptables, samba and ftp
    By dk639 in forum Security
    Replies: 0
    Last Post: 02-08-2007, 07:51 AM
  2. Using IPTABLES to block access to samba except certain IPs
    By addicted2linux in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 02-01-2006, 03:02 PM
  3. NAT Question Im missing something simple
    By jccurtis in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 01-04-2006, 02:26 PM
  4. Router not routing/masquerading. Why?
    By Anubis in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 03-21-2003, 11:05 PM
  5. iptables script...
    By Mor_gath in forum Programming
    Replies: 5
    Last Post: 12-24-2001, 03:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •