Sign in to follow this  
Followers 0
hacnslash

port closer

6 posts in this topic

is there any nix program that can be included in the original install that closes different ports??

I ask this because I have been trying to configure my samba and I'm too lazy to manually edit samba.conf I need swat. So....every time I type in localhost:901 I get a little box saying that the connection was refuzed, this means the port is closed (right?), if indeed its closed, how can I open it up???

I was thinking maybe it was iptables, if anyone's got a command to let packets go thru 901......

I just did an nmap scan and 901 is closed, any ideas?

0

Share this post


Link to post
Share on other sites

do netstat -a to see if that port is even listening. If not then there's your problem :).

If it is then it sounds like you'll have to tweak around with iptables.

You positive you have the samba daemon running?

0

Share this post


Link to post
Share on other sites

I dont think u have to have the daemon running to be able to open up swat....

and when I do a netstat -a I dont even see the port anywhere.

0

Share this post


Link to post
Share on other sites

Not sure what swat is hac and I should clarify.

Do "netstat -an" instead so that the output will just show just the port number.

If the port you are looking for isn't listed there then no network app is communicating on that port.

0

Share this post


Link to post
Share on other sites

http://us1.samba.org/samba/docs/man/swat.8.html

it should be clear what it is....

and when I do the netstat -an it still doesn't show up. The thing is that there should be no app using that port, it should be reserved for swat. The thing is I think that it is being blocked somehow, because whenever I try to connect to it it tells me the connection has been refused.

0

Share this post


Link to post
Share on other sites

ok, low tech solution.................

a line pertaining to swat was commented out in my /etc/services file.........oops shoulda seen that earlier.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0