Community discussions

MikroTik App
 
sankofa411
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Wed Feb 16, 2005 11:42 pm
Contact:

Ports opening help

Thu Aug 11, 2005 6:02 am

hello MT gurus

I have a server running redhat 9 with a 3rd party software running on it. When I run the 3rd party software locally on the server it works fine. There is a setup for a remote pc or client pc to access the software on the server. When I run the program on the client pc or the remote pc I get a error message about "can not communite with server". The server have all firewall on redhat disabled. I can ping the server fine. The server and client are all on the same network.

The documentation for the 3rd party software requires these ports to be open

1098- (JBoss RMI port) 1099-(JBoss RMI port)
4444- (JBoss RMI Object port) 3306- (MySQL DB port)

I opened the ports by implimenting these firewall rules. and moved the rules to the top.

add chain=forward dst-port=1098-1099 protocol=tcp action=accept
add chain=forward dst-port=4444 protocol=tcp action=accept
add chain=forward dst-port=3306 protocol=tcp action=accept

unfortunately I still get the error message and can not communicate with the server. Please if anyone can help I will really appreciate it.

Thank you in advance
Ben
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Thu Aug 11, 2005 9:32 am

Remote client can access your Red Hat server ?
you do not have any drops before this rules ?
 
sankofa411
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Wed Feb 16, 2005 11:42 pm
Contact:

Thu Aug 11, 2005 4:27 pm

I can SSH into the server and FTP as well. What I am doing wrong?

Do I have the rules right? Any help will be appreciated.

Thank you
 
User avatar
andrewluck
Forum Veteran
Forum Veteran
Posts: 700
Joined: Fri May 28, 2004 9:05 pm
Location: Norfolk, UK

Fri Aug 12, 2005 8:41 pm

The server and client are all on the same network
So the traffic doesn't actually traverse the MT box?

Run netstat on the server and ensure that it's actually listening for connections on your application ports.

Regards

Andrew
 
sankofa411
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Wed Feb 16, 2005 11:42 pm
Contact:

Fri Aug 12, 2005 11:43 pm

Thank you Andrew I will try that
 
User avatar
dwright
Member Candidate
Member Candidate
Posts: 158
Joined: Fri May 28, 2004 1:10 pm
Location: Mchenry, Il

Sat Aug 13, 2005 3:01 am

are you sure that your firewall is turned off the server?

as root:
/sbin/service iptables status
to shutdown:
/sbin/service iptables stop
to permanately disable, try:
/usr/sbin/ntsysv
Then uncheck iptables and save.

Note** Can't remember if Redhat 9 came with ntsysv

D~