Koozali.org: home of the SME Server

port forward issue for SME 7

foxof

port forward issue for SME 7
« 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

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: port forward issue for SME 7
« Reply #1 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.

foxof

Re: port forward issue for SME 7
« Reply #2 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

Offline mmccarn

  • *
  • 2,657
  • +10/-0
port forward issue for SME 7
« Reply #3 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.

foxof

port forward issue for SME 7
« Reply #4 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.

Offline jfarschman

  • *
  • 406
  • +0/-0
port forward issue for SME 7
« Reply #5 on: September 06, 2006, 01:58:32 PM »
Try rebooting.
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

foxof

port forward issue for SME 7
« Reply #6 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:

Offline JonB

  • *
  • 351
  • +0/-0
port forward issue for SME 7
« Reply #7 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
...

foxof

port forward issue for SME 7
« Reply #8 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

Offline JonB

  • *
  • 351
  • +0/-0
port forward issue for SME 7
« Reply #9 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
...

foxof

port forward issue for SME 7
« Reply #10 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.