Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: foxof on September 02, 2006, 04:06:23 AM

Title: port forward issue for SME 7
Post by: foxof on September 02, 2006, 04:06:23 AM
Dear,

I want to use the port forward function of SME7 (internal IP:192.168.1.254) in the SERVER-MANAGER page,  I forward the port 8080 to my internal ip 192.168.1.2 port 80

I test in local area network:

when I tried access http://192.168.1.2 in IE, it success to visit the page.
when I tried access http://192.168.1.254:8080, page cannot be found.

May I know anything I missed in the setting?

Also where can I config the firewall setting of SME 7.

Thank you


Fox
Title: Re: port forward issue for SME 7
Post by: CharlieBrady on September 02, 2006, 09:56:34 AM
Quote from: "foxof"

I test in local area network:


You cannot test port forwarding from the local network.
Title: Re: port forward issue for SME 7
Post by: foxof on September 05, 2006, 06:24:51 AM
Quote from: "CharlieBrady"
Quote from: "foxof"

I test in local area network:


You cannot test port forwarding from the local network.


Thank you for your reply, then try to connect outside our local network, but still don't work when I use IE to brower the 8080 port of my domain

Any way I can check for my problem?

Also anyone know where is the record of the iptable?
I try to list out the iptable rule [iptables -L], but I cannot find the rule of port forward, thank you
Title: port forward issue for SME 7
Post by: mmccarn on September 05, 2006, 02:38:34 PM
# iptables -L -t nat
will display the iptables information on forwarded ports.

You might also want to try
# nmap localhost
to see if you have any services on the SME box that already use port 8080 - this would conflict with your port forward rule.
Title: port forward issue for SME 7
Post by: foxof on September 06, 2006, 06:22:42 AM
Quote from: "mmccarn"
# iptables -L -t nat
will display the iptables information on forwarded ports.

You might also want to try
# nmap localhost
to see if you have any services on the SME box that already use port 8080 - this would conflict with your port forward rule.


Yes, when I iptable -L -t nat, the port forward shown as below:

Chain PortForwarding_6483 (1 references)
target     prot opt source               destination
DNAT       tcp  --  anywhere             anywhere            tcp dpt:5000 to:192.168.1.2:80

and port 5000 is not used byother service.
Title: port forward issue for SME 7
Post by: jfarschman on September 06, 2006, 01:58:32 PM
Try rebooting.
Title: port forward issue for SME 7
Post by: foxof on September 07, 2006, 07:49:49 AM
Quote from: "jfarschman"
Try rebooting.


Thank you Jfarshman, yes, I always forget to reboot the server, hehe.

But this time, the problem cannot be solved :cry:
Title: port forward issue for SME 7
Post by: JonB on September 07, 2006, 10:07:59 AM
The server does not need rebooting. This is not Windows  :lol:

What does the Port Forwarding panel in the server-manager show?

From the console do

Quote
config show masq


and post the results here.

Jon
Title: port forward issue for SME 7
Post by: foxof on September 08, 2006, 04:01:10 AM
Quote from: "JonB"
The server does not need rebooting. This is not Windows  :lol:

What does the Port Forwarding panel in the server-manager show?

From the console do

Quote
config show masq


and post the results here.

Jon


That why I always not reboot the linux machine ^_^.

on the SME, the results is:
[root@sme ~]# config show masq
masq=service
    DenylogTarget=drop
    Logging=most
    Stealth=no
    TCPForwards=5000,192.168.1.2:80
    TCPMinimizeDelay=22
    Trace=disabled
    UDPForwards=
    pptp=yes
    status=enabled
[root@sme ~]#


In addition, here is the information from the machine 192.168.1.2:
[root@foxnet ~]# 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@foxnet ~]#

Thank you
Title: port forward issue for SME 7
Post by: JonB on September 08, 2006, 04:32:20 AM
Ok,

Are you sure that in the Port Forwarding panel on the SME that it shows port 8080 is forwarded to 192.168.1.2:80 and not that port 5000 is forwarded to 192.168.1.2:80

Delete the Port Forwarding you have set up and set it up again and do a

config show masq

and post result
Title: port forward issue for SME 7
Post by: foxof on September 08, 2006, 05:17:29 AM
Quote from: "JonB"
Ok,

Are you sure that in the Port Forwarding panel on the SME that it shows port 8080 is forwarded to 192.168.1.2:80 and not that port 5000 is forwarded to 192.168.1.2:80

Delete the Port Forwarding you have set up and set it up again and do a

config show masq

and post result


Sorry man, since sometime 8080 is the default port for Tomcat, I am afraid that may have some affect on it (of course not, since I checked that 8080 is not in used), so I change the port forward port to 5000, sorry.