Author Topic: Port Forwarding not working  (Read 2601 times)

zolf

  • Zen Monk
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Port Forwarding not working
« 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

Messir

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
Re: Port Forwarding not working
« Reply #1 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. :)
« Last Edit: February 17, 2011, 01:21:52 pm by Messir »

foxyboy

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Port Forwarding not working
« Reply #2 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.

therobust

  • Zen Apprentice
  • *
  • Posts: 41
  • Karma: +0/-0
    • View Profile
Re: Port Forwarding not working
« Reply #3 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???? :-[
« Last Edit: June 04, 2011, 11:12:35 am by therobust »

shawnbishop

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Port Forwarding not working
« Reply #4 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

UdoB

  • Zen Warrior
  • ***
  • Posts: 148
  • Karma: +17/-0
    • View Profile
Re: Port Forwarding not working
« Reply #5 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:
  • define a (Pseudo-) Service with a a specific port under Core -- Services -- Add new
  • allow connections to that port on the incoming side of Zentyal via UTM -- Firewall -- Packet Filter. Be sure to select the correct section for your task, for your case "Filtering rules from external networks to Zentyal" : Configure rules
  • finally define UTM -- Firewall -- Port forwarding -- Add new.
Works for me. :-)
« Last Edit: July 16, 2011, 09:45:37 pm by UdoB »
Udo

Christophe

  • Zen Warrior
  • ***
  • Posts: 170
  • Karma: +6/-1
    • View Profile
Re: Port Forwarding not working
« Reply #6 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
« Last Edit: July 16, 2011, 09:16:18 pm by Christophe »
DELL PowerEDGE R210 - ESXi 4.1 - 4 VM Zentyal