OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.1 Legacy Series »
  • Port Forward not working
« previous next »
  • Print
Pages: [1] 2

Author Topic: Port Forward not working  (Read 10912 times)

BlackDragon381

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Port Forward not working
« 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.

OPNsense host is Proxmox with e1000 ethernet card.
« Last Edit: February 13, 2017, 11:40:59 pm by BlackDragon381 »
Logged

Julien

  • Hero Member
  • *****
  • Posts: 651
  • Karma: 32
    • View Profile
Re: Port Forward not working
« Reply #1 on: February 12, 2017, 08:27:15 pm »
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
Logged
An intelligent man is sometimes forced to be drunk to spend time with his fool.

BlackDragon381

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Re: Port Forward not working
« Reply #2 on: February 12, 2017, 10:07:26 pm »
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.
« Last Edit: February 12, 2017, 10:21:27 pm by BlackDragon381 »
Logged

djGrrr

  • Full Member
  • ***
  • Posts: 112
  • Karma: 22
    • View Profile
Re: Port Forward not working
« Reply #3 on: February 13, 2017, 12:49:16 am »
Try setting the Destination to "WAN Address"
Logged

Julien

  • Hero Member
  • *****
  • Posts: 651
  • Karma: 32
    • View Profile
Re: Port Forward not working
« Reply #4 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.
Logged
An intelligent man is sometimes forced to be drunk to spend time with his fool.

BlackDragon381

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Re: Port Forward not working
« Reply #5 on: February 13, 2017, 11:40:07 pm »
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?
« Last Edit: February 14, 2017, 10:22:22 pm by BlackDragon381 »
Logged

BlackDragon381

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Re: Port Forward not working
« Reply #6 on: February 14, 2017, 10:23:25 pm »
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.
Logged

djGrrr

  • Full Member
  • ***
  • Posts: 112
  • Karma: 22
    • View Profile
Re: Port Forward not working
« Reply #7 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
Logged

BlackDragon381

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Re: Port Forward not working
« Reply #8 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.
Logged

Julien

  • Hero Member
  • *****
  • Posts: 651
  • Karma: 32
    • View Profile
Re: Port Forward not working
« Reply #9 on: February 17, 2017, 01:12:47 am »
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 ?
Logged
An intelligent man is sometimes forced to be drunk to spend time with his fool.

BlackDragon381

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Re: Port Forward not working
« Reply #10 on: February 18, 2017, 12:18:07 am »
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 :(
Logged

djGrrr

  • Full Member
  • ***
  • Posts: 112
  • Karma: 22
    • View Profile
Re: Port Forward not working
« Reply #11 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"
Logged

BlackDragon381

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Re: Port Forward not working
« Reply #12 on: February 19, 2017, 12:07:30 am »
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.
Logged

BlackDragon381

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Re: Port Forward not working
« Reply #13 on: February 21, 2017, 10:25:32 am »
Port forwarding work fine only first a few minutes after rebooting forwarding rules.
After that there is no ways to connect.
Logged

BlackDragon381

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
Re: Port Forward not working
« Reply #14 on: April 24, 2017, 05:06:43 pm »
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?
Logged

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.1 Legacy Series »
  • Port Forward not working
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2