Port Forward not working

Started by BlackDragon381, February 12, 2017, 12:20:48 AM

Previous topic - Next topic
February 12, 2017, 12:20:48 AM Last Edit: February 13, 2017, 11:40:59 PM by BlackDragon381
I try to forward RDP, but can't connect. In previous build (16.7) have the same problem.

OPNsense host is Proxmox with e1000 ethernet card.

Quote from: BlackDragon381 on February 12, 2017, 12:20:48 AM
I try to forward RDP, but can't connect. In previous build (16.7) have the same problem.
would be much helpful if you shows your firewall rules , and provide more informatie about your network
DEC4240 – OPNsense Owner

February 12, 2017, 10:07:26 PM #2 Last Edit: February 12, 2017, 10:21:27 PM by BlackDragon381
Quote from: Julien on February 12, 2017, 08:27:15 PM
would be much helpful if you shows your firewall rules , and provide more informatie about your network
I added screenshots. What information about my network do you need?
The same configuration on pfSense work fine, as I remeber.

Try setting the Destination to "WAN Address"

I see you have two RDP rules on the WAN side, probably that conflict.
RDP protocol is TCP and not UDP.
DEC4240 – OPNsense Owner

February 13, 2017, 11:40:07 PM #5 Last Edit: February 14, 2017, 10:22:22 PM by BlackDragon381
Reconfigure settings.
Nothing changes, don't work.

PS. OPNsense host is Proxmox with e1000 ethernet card.

May be I need to change virtual ethernet card?

Quote from: Julien on February 13, 2017, 02:38:30 PM
I see you have two RDP rules on the WAN side, probably that conflict.
RDP protocol is TCP and not UDP.
Now I have only one TCP rule, it's not working.

Make sure you are on 17.1.1 first, then run this command in shell / console as root:
sysctl net.pf.share_forward=0

Quote from: djGrrr on February 15, 2017, 03:15:39 PM
Make sure you are on 17.1.1 first, then run this command in shell / console as root:
sysctl net.pf.share_forward=0
Yes, I on 17.1.1.
I do this command, but nothing changed. For what this command?
After reboot value back to 1.

Quote from: BlackDragon381 on February 16, 2017, 10:30:48 PM
Quote from: djGrrr on February 15, 2017, 03:15:39 PM
Make sure you are on 17.1.1 first, then run this command in shell / console as root:
sysctl net.pf.share_forward=0
Yes, I on 17.1.1.
I do this command, but nothing changed. For what this command?
After reboot value back to 1.
are you trying to RDP over the internet ? don't see a firewall hit on the logs ?
DEC4240 – OPNsense Owner

Quote from: Julien on February 17, 2017, 01:12:47 AM
are you trying to RDP over the internet ? don't see a firewall hit on the logs ?
Yes, over Internet.
I can't find information about this connection in firewall logs :(

Looking at the port forward rules screenshot a bit closer, the problem is that you have the destination address set to "LAN Address" when it must be set to "WAN address"

Quote from: djGrrr on February 18, 2017, 04:58:21 PM
Looking at the port forward rules screenshot a bit closer, the problem is that you have the destination address set to "LAN Address" when it must be set to "WAN address"
Thank you, now it's work, sometimes, but sometimes not, it's very strange (may be is android MS RDP client is buggy). But it's better then was!
I use sysctl net.pf.share_forward=1
And I can't connect through LAN.

Port forwarding work fine only first a few minutes after rebooting forwarding rules.
After that there is no ways to connect.

It is very strange.
The phone can connect via RDP always, but it does not work from another computer.
In the rules, the source is set as "*"!
What could be the problem?