Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: zolf on December 03, 2010, 11:02:36 am

Title: Port Forwarding not working
Post by: zolf on December 03, 2010, 11:02:36 am

Hi there,

i am trying to forward the RDP port 3389 from remote users to my server. but they cannot connect. i have configured Port Forwarding in the UTM--Firewall menu.

Interface: eth0
Original destination: <The name of the virtual interface with IP x.x.x.134>
Original destination port: 3389
Protocol: TCP
Source: Any
Destination IP: 192.168.0.2
Port: Same

please help
Title: Re: Port Forwarding not working
Post by: Messir on February 17, 2011, 04:11:03 am
+1
I'm facing the same problem. I've performed a careful search in the forum, but failed to find a decision.
So, I configured the port forwarding as topic starter did (except one difference: I don't use a virtual interface, but the real one; I've tried both "ip_address/32" and "Zetyal" as Original destination). Another difference is that I have eth2 as external interface, eth0 as internal one.
Moreover, I created the service RDP (protocol TCP, source port any, destination port 3389) and allowed it in Firewall Packet Filter sections "Internal networks to Zentyal", "External networks to Zentyal", and even "External networks to internal networks".
It's supposed to be working, but it isn't!
Firewall logs show the packets from eth2 to eth0 with source ip of external host and correct destination (ip address of the internal server), decision is REDIRECT. But external host fails to establish the connection!
Where's the problem? Please, help.
P.S. Zetyal 2.0.3 installed from original iso.


Update: I have solved this myself. The problem wasn't actually with Zentyal. Sorry for that little panic. :)
Title: Re: Port Forwarding not working
Post by: foxyboy on March 16, 2011, 10:20:09 am
I am also have problems setting up port forwarding.

Can you please give an example on a working port forwarding rule that will forward tcp/udp traffic on port 22 from the wan port (im my case i've called this Wan0) to a local server on my lan (say 10.74.10.50).

Also can you include any firewall rules to allow this to work.

Port forwarding should be very easy to setup but i unable to get it to work with Zentyal 2.0.16.
Title: Re: Port Forwarding not working
Post by: therobust on June 04, 2011, 07:42:39 am
@Messir: i am facing exactly the same issue.
Could you please tell me what was the exact problem?

Update: well, i tried to access the webserver from another pc using public ip in the same range assigned to WAN interface of zentyal.
say zentyal wan ip is 115.xx.xx.19/28
i am trying to reach webserver behind zentyal with port forwarding from ip 115.xx.xx.21/28 and it works...seems everything fine with port forwarding however an issue with http proxy?....but http proxy is disabled.... wher could be the issue???? :-[
Title: Re: Port Forwarding not working
Post by: shawnbishop on July 16, 2011, 08:27:40 pm
Good Day

I have the following setup and I cannot get the port forwarding to work...

WAN---196.X.X.X---Zentyal---172.16.0.1 -------LAN --- SBS-SERVER ( 192.168.0.10 )

I Setup the Port forwarding on the WAN interface and configure the port forwarding, and it doenst work??

Do I have to configure the packet filtering information as well??

Shawn
Title: Re: Port Forwarding not working
Post by: UdoB on July 16, 2011, 09:07:30 pm
(Sidenote: please do not highjack threads. Most times it is better to start a new one...)

I have the following setup and I cannot get the port forwarding to work...

WAN---196.X.X.X---Zentyal---172.16.0.1 -------LAN --- SBS-SERVER ( 192.168.0.10 )

No specific solution from me, sorry, just two remarks:
You may need to provide more information. For me it looks as if the SBS-Server is on a different network than your Zentyal box. In that case there need to be explicit routes to be set up. Zentyal can successfully "ping 192.168.0.10"? And SBS-Server can "ping 8.8.8.8" (google) through Zentyal?

Zentyal needs to listen on the port you want to forward, so this port needs to be open on the WAN side. Probably you need to explicitly allow this.
Best regards

Edited/Added: Just playing a little bit to forward a port. For me it seems to work this way:
Works for me. :-)
Title: Re: Port Forwarding not working
Post by: Christophe on July 16, 2011, 09:11:09 pm
Port forwarding works here !
see picture.
Note : zentyal is my gateway.

I dont add any rules in filter paquet

Sorry both pictures are the  same