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

21st September 2004, 06:56 AM
|
|
Registered User
|
|
Join Date: Sep 2004
Posts: 45

|
|
How to open port 137:139
hi,
how could i open port 137:139 in my firewall. am using fedora core 2.
thanks!
|

21st September 2004, 12:12 PM
|
|
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.
|

21st September 2004, 03:32 PM
|
 |
Retired Community Manager
|
|
Join Date: Mar 2004
Location: Scotland
Age: 34
Posts: 1,019

|
|
|
Trying to run Samba?
__________________
http://blog.suretecsystems.com
|

21st September 2004, 07:34 PM
|
|
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.
|

22nd September 2004, 03:16 AM
|
 |
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:
|

22nd September 2004, 03:27 AM
|
|
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.
|

29th September 2004, 03:15 AM
|
|
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
|

30th September 2004, 12:55 AM
|
 |
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.
|

30th September 2004, 04:30 AM
|
 |
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:
|

30th September 2004, 05:47 AM
|
|
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
|

30th September 2004, 09:59 PM
|
|
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
|

1st October 2004, 03:31 AM
|
 |
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:
|

1st October 2004, 07:16 AM
|
|
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
|

2nd October 2004, 04:11 AM
|
 |
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:
|

2nd October 2004, 08:47 PM
|
|
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 09:35 (Sunday, 26-05-2013)
|
|
 |
 |
 |
 |
|
|