Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 21st September 2004, 06:56 AM
linux_fed2 Offline
Registered User
 
Join Date: Sep 2004
Posts: 45
Exclamation How to open port 137:139

hi,
how could i open port 137:139 in my firewall. am using fedora core 2.

thanks!
Reply With Quote
  #2  
Old 21st September 2004, 12:12 PM
taylor65 Offline
Registered User
 
Join Date: Jan 2004
Posts: 806
Go to System Settings -> Security Level. At the bottom of the window is a place for entering other ports.
Reply With Quote
  #3  
Old 21st September 2004, 03:32 PM
ghenry's Avatar
ghenry Offline
Retired Community Manager
 
Join Date: Mar 2004
Location: Scotland
Age: 34
Posts: 1,019
Trying to run Samba?
__________________
http://blog.suretecsystems.com
Reply With Quote
  #4  
Old 21st September 2004, 07:34 PM
vinu Offline
Registered User
 
Join Date: May 2004
Location: Vellore, Tamil Nadu, India
Posts: 192
Do the following as root from a command prompt
/sbin/iptables -p tcp --sport 137:139 -j ACCEPT

If you're using multiple NIC's, it's advisable to enable them on your internal network only, by specifying the -i <interface> option.

And you can add it to a local start-up script like /etc/rc.local so that it's enabled at every boot.
Reply With Quote
  #5  
Old 22nd September 2004, 03:16 AM
crackers's Avatar
crackers Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423
I sure as hell hope this computer isn't connected to the Internet... Ports 137:139 are those nasty Netbios ports used by Microsoft networking. Those particular ports get hit real hard all the time, so it may render your connection worthless if it's to the world at large, instead of just locally.
__________________
Linux User #28251 (April '93)
Professional Java Geek :cool:
Reply With Quote
  #6  
Old 22nd September 2004, 03:27 AM
superbnerd
Guest
 
Posts: n/a
an easier way is to use a decent firewall frontend like firestarter to install it use yum [code]yum install firestarter[/url] its very intuitive.
Reply With Quote
  #7  
Old 29th September 2004, 03:15 AM
Ned Offline
Registered User
 
Join Date: May 2004
Location: UK
Posts: 399
Quote:
Originally Posted by crackers
I sure as hell hope this computer isn't connected to the Internet... Ports 137:139 are those nasty Netbios ports used by Microsoft networking. Those particular ports get hit real hard all the time, so it may render your connection worthless if it's to the world at large, instead of just locally.
Absolutely. You must also add a filter for checking the source is ONLY from your internal IP address range and preferably use mac filtering to prevent IP spoofing. For example:


Code:
iptables -A INPUT -p tcp -s 192.168.0.1 --sport 137:139 -m mac --mac-source xx:xx:xx:xx:xx:xx -j ACCEPT
Otherwise you might as well just leave the door wide open and hang a big sign outside welcoming people in

Ned
Reply With Quote
  #8  
Old 30th September 2004, 12:55 AM
Lopov's Avatar
Lopov Offline
Registered User
 
Join Date: Jul 2004
Posts: 159
Quote:
Originally Posted by crackers
I sure as hell hope this computer isn't connected to the Internet... Ports 137:139 are those nasty Netbios ports used by Microsoft networking. Those particular ports get hit real hard all the time, so it may render your connection worthless if it's to the world at large, instead of just locally.
Yep he's right, you never open any of the ports lower than 1000 unless you want a new and state of the art trojan controlling your system.
Reply With Quote
  #9  
Old 30th September 2004, 04:30 AM
crackers's Avatar
crackers Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423
Quote:
Originally Posted by Lopov
Yep he's right, you never open any of the ports lower than 1000 unless you want a new and state of the art trojan controlling your system.
That's not entirely correct, otherwise web servers wouldn't work at all. The "trick" to opening a port below 1024 is that those are controlled by the "root" user (priviledged). Typical behavior for using these ports is to be opened by an application, acting as the "root" user, then the application (servers) will change to an un-priviledged user (e.g. "nobody") that has logins disabled. This prevents someone from tunneling in through the port and immediately acquiring "root" access. And this is why buffer over-runs are dangerous - they make it possible to execute inserted code as the unpriviledged user and possibly gain a login onto the box, sometimes (depening on how poorly the server's written/setup/run) even as "root."

This, incidentally, is one of the reasons why older Windows OSs were/are so dangerous - the "normal" user always had administrative control of the system. NT and XP have addressed this, somewhat, but there's simply too many holes and shortcuts from those legacy days to be found and eliminated - Windows wasn't built with ANY kind of actual security in mind.
__________________
Linux User #28251 (April '93)
Professional Java Geek :cool:
Reply With Quote
  #10  
Old 30th September 2004, 05:47 AM
Ned Offline
Registered User
 
Join Date: May 2004
Location: UK
Posts: 399
Quote:
Originally Posted by crackers
This, incidentally, is one of the reasons why older Windows OSs were/are so dangerous - the "normal" user always had administrative control of the system. NT and XP have addressed this, somewhat,
True, but how many windows users do you know that don't automatically give their user accounts administrative privileges - only the ones who've used *nix before

MS should drum it into users to only use the admin account for admin, but it's funny that I've never ever seen this mentioned even once in all my time using NT4, Win2K and XP.

Ned
Reply With Quote
  #11  
Old 30th September 2004, 09:59 PM
AwPhuch Offline
Registered User
 
Join Date: Sep 2004
Posts: 29
There is a large misconception about attackers on the intenet



Check that out
https://secure.dshield.org/index.php

Brian
AwPhuch
__________________
http://awphuch2000.dyndns.org:1079/sigs/awphuch.jpg
Firewall: SmoothWall Express [2.0]
http://www.smoothwall.org
CPU: Intel Pentium II (Deschutes) 333 MHz
Mem: 127624K:Swap: 149200K
eth0: 3Com PCI 3c905 Boomerang 100baseTx
eth1: Lite-On 82c168 PNIC rev 32
eth2: SMSC EPIC/100 83c170
./S99LinuxRevolution start
Reply With Quote
  #12  
Old 1st October 2004, 03:31 AM
crackers's Avatar
crackers Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423
Lies, damn lies, and statistics. I presume you're talking about "others?" Let's see:

There are 6 specific ports listed in the legend. That means "others" covers 65530 ports. Using eyeballs on the US-chart, that means for each "other" port, it (statisitically) accounts for about 0.07% of the chart, whereas port 135 (again by eyeball) alone accounts for over 30%.

Isn't it amazing how you can spin numbers to mean pretty much what you want?
__________________
Linux User #28251 (April '93)
Professional Java Geek :cool:
Reply With Quote
  #13  
Old 1st October 2004, 07:16 AM
Ned Offline
Registered User
 
Join Date: May 2004
Location: UK
Posts: 399
Crackers,

I wonder if you have any opinion on the merits of their FightBack scheme and whether you consider it worth participating in?

Link again:
https://secure.dshield.org/index.php

Ned
Reply With Quote
  #14  
Old 2nd October 2004, 04:11 AM
crackers's Avatar
crackers Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423
Participating in things like this never hurt, as long as you believe it's a valid organization and not someone on a phishing trip.

Me, I'm overly paranoid - I keep my head down, try to stay invisible, and don't share my logs with nobody!
__________________
Linux User #28251 (April '93)
Professional Java Geek :cool:
Reply With Quote
  #15  
Old 2nd October 2004, 08:47 PM
Ned Offline
Registered User
 
Join Date: May 2004
Location: UK
Posts: 399
Thanks Crackers - always interesting to get opinions one wouldn't think of

Oh - just wondering where all my hard earned reputation points went. I guess they expire after a while as I've been a bit less active lately or maybe I got a load of negative feedback and they cancelled out

Ned
Reply With Quote
Reply

Tags
open, port

Thread Tools Search this Thread
Search this Thread:

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to open port 443 simplestar Servers & Networking 4 19th January 2006 02:50 AM
can't open port 22 lindan Servers & Networking 10 26th December 2005 09:35 PM
Which is better....open port or open service? backroger Security and Privacy 12 20th February 2005 12:49 PM


Current GMT-time: 09:35 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat