LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-19-2005, 06:37 AM   #1
jamal555
LQ Newbie
 
Registered: Apr 2005
Posts: 2

Rep: Reputation: 0
I need to lock some ports between 2 workgroups but retain LAN connectivity...


To get to the point i have a workgroup A and workgroup B both on winXP Home, i have enabled file sharing but Home has only simple file sharing so users from workgroup A can see shares in workgroup B, since i have 2 Switches for 2 workgroups that are connected i want to put something simple in between, like a firewall, but just to block ports for windows file sharing and retain LAN connectivity, network neighborhood, LAN Games etc...
I tried Clarckconnect firewall and ipcop but no luck, maybe just didn't configured it right, don't know... I someone has any idea... Thanks...

Help much appreciated...
 
Old 04-19-2005, 12:44 PM   #2
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

what do you mean by network neighborhood, isn't it file sharing ?

anyway, windows file sharing uses ports 137, 13_ and 139, so this simple iptables lines would work pretty well :
iptables -A FORWARD -p tcp --sport 137:139 -j DROP
iptables -A FORWARD -p tcp --dport 137:139 -j DROP
iptables -A FORWARD -p udp --sport 137:139 -j DROP
iptables -A FORWARD -p udp --sport 137:139 -j DROP
echo 1 > /proc/sys/net/ipv4/ip_forward (enables forwarding between NICs)

If you want your 2 LANs in the same subnet, then configure a bridge : just look for brctl on Internet
 
Old 04-22-2005, 05:19 AM   #3
jamal555
LQ Newbie
 
Registered: Apr 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Hi,

Thanks very much for the info, it did help, bridging is the way to go for me, just blocking two ports is required 139 and 445 for the xp...

Thanks Again....
 
  


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
Connectivity problem with Mandrake Linux 10.1 LAN/WAN/Samba Server BiO|Happy Linux - Networking 3 05-05-2005 02:51 PM
Connectivity problem with network on Mandrake 10.1 LAN/WAN/Samba BiO|Happy Linux - Wireless Networking 0 04-29-2005 04:11 PM
How to set up a LAN with four PC and a 4 ports ASDL Router jeffcheng Linux - Networking 1 09-21-2004 11:02 AM
KDE won't retain settings murray_linux Slackware 7 09-19-2004 01:42 PM
LAN Connectivity issues withotnot Linux - Networking 5 10-08-2003 12:57 PM

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

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