LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-24-2010, 12:23 PM   #1
grodech
LQ Newbie
 
Registered: Nov 2010
Posts: 8

Rep: Reputation: 0
Rusty as hell


I've been out of the linux admin game for at least 5 years and I could use some help. I've been asked to check on why the control software on a new windows machine can't talk to a device that is running SUSE Linux Enterprise Server 9. At first it's just that there wasn't a route to the subnet that the windows machine was on. I managed to fix that, but now the SUSE server is refusing connections on the ports that the windows server is trying to talk over. As near as I can tell, it's just that nothing is listening on the ports that the software is trying to connect to. I don't think the SUSE server is running any firewall software, but how do I confirm?
 
Old 11-24-2010, 12:38 PM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
You might try:

iptables -L

which would list any rules that are current.


Regards,

Fordeck
 
1 members found this post helpful.
Old 11-24-2010, 12:58 PM   #3
grodech
LQ Newbie
 
Registered: Nov 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Would that show me the rules even if the firewall was not running? Or would it error out?
 
Old 11-24-2010, 01:02 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
If no iptables firewall is running (enabled) you would see something like this:
Code:
root@reactor: iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
root@reactor
That's my default, with no firewall. Yours may differ slightly, but the idea is, there's no rules in there, and the default policies are all "ACCEPT".

If you had an iptables firewall running (enabled), you'd see much more stuff.
 
1 members found this post helpful.
Old 11-24-2010, 01:06 PM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Make sure the service you want to contact a the linux machine is running.
Code:
ps ax | grep service-you-want-to-run
Then try to connect to the port/service from the linux machine using telnet or the app you use.

Kind regards
 
1 members found this post helpful.
Old 11-24-2010, 01:37 PM   #6
grodech
LQ Newbie
 
Registered: Nov 2010
Posts: 8

Original Poster
Rep: Reputation: 0
ps ax doesn't show iptables running

iptables -L gives me:

Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:https
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http-alt
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:https
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http-alt
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:https
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http-alt

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
I had tried the telnet to the port before posting, and it didn't work. Now I find out that they gave me the wrong port number *d'oh*. A telnet to the correct port number works, but the software still doesn't. Sounds like a software issue to me...

Thanks for all your help.

Last edited by grodech; 11-24-2010 at 01:38 PM.
 
Old 11-24-2010, 01:50 PM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
You can try to change the port in the program on the windows machine, or change the port the service is listening on the linux machine.

Kind regards
 
Old 11-24-2010, 03:43 PM   #8
josh.engelbrecht
LQ Newbie
 
Registered: Sep 2010
Location: Sioux Falls, SD
Distribution: Fedora/CentOS
Posts: 4

Rep: Reputation: 0
That firewall is pretty restrictive, only allowing communications on ports 80,443,591. If you can safely stop the firewall, do so. This would be a quick and easy way to tell if its causing your issues. Or add the port manually to iptables (iptables -A INPUT -p tcp --dport <portNum> -j ACCEPT) to see if that also solvs the problem. May also have to add the udp protocol.

Also try netstat -l (lowercase L) and see if your port you need is listed.

Last edited by josh.engelbrecht; 11-24-2010 at 03:44 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Geek Time with Rusty Russell [Video] LXer Syndicated Linux News 0 10-19-2010 03:00 AM
[SOLVED] NVIDIA drivers for my rusty VGA Asido Linux - Software 2 05-11-2010 04:18 PM
C++ Rusty need a few pointers bigearsbilly Programming 3 06-09-2009 11:02 AM
Rusty and need help shulsberg LinuxQuestions.org Member Intro 1 03-20-2008 08:46 PM
Have a lab final coming up and im rusty on implementing the commands steve21 Linux - Newbie 8 02-22-2006 05:47 PM


All times are GMT -5. The time now is 11:17 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration