OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Tutorials and FAQs »
  • [Tutorial] How I do port forwarding - simple and straightforward
« previous next »
  • Print
Pages: 1 [2]

Author Topic: [Tutorial] How I do port forwarding - simple and straightforward  (Read 79600 times)

bMac

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: [Tutorial] How I do port forwarding - simple and straightforward
« Reply #15 on: March 12, 2021, 05:59:04 am »
Thanks for the thread, Been trying all day to get a vpn working, and Just used the port forward for my vpn into my synology router (which is just as AP now)

 8)
Logged

gverbist

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: [Tutorial] How I do port forwarding - simple and straightforward
« Reply #16 on: April 01, 2021, 02:52:39 pm »
First of all I dont have that + sign in aliases.

I seem to be unable to get port forwarding to work. I forwarded 80 and 443 to an internal nginx proxy manager but it doesnt seem to reach this

Am I doing this the right way?

Logged

seithan

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • View Profile
Re: [Tutorial] How I do port forwarding - simple and straightforward
« Reply #17 on: October 12, 2021, 03:12:43 am »
Hi, thanx for the guide.

Got a question though, as its not fully working for my end.

when i try to connect from the internet (through ddns) i get a pass outgoing rule (?) and thats it, it stops there. Locally, the machine accepts (ssh) connections.
Code: [Select]
__timestamp__ Oct 12 04:07:05
ack
action [pass]
anchorname
datalen 0
dir [out]
dst 192.168.1.91
dstport 22
ecn
id 30776
interface em0
interface_name lan
ipflags DF
ipversion 4
label let out anything from firewall host itself
length 60
offset 0
protoname tcp
protonum 6
reason match
rid 1232f88e5fac29a32501e3f051020cac
rulenr 70
seq 342642971
src 71.120.21.331
srcport 54264
subrulenr
tcpflags S
tcpopts
tos 0x0
ttl 62
urp 64240

I dont understand though, why there it shows thats a connection is being made with direction to the outside.. Shouldn't it say incoming instead? The local IP im trying to connect to is 192.168.1.91.
Logged

alexei

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: [Tutorial] How I do port forwarding - simple and straightforward
« Reply #18 on: October 29, 2021, 11:04:19 am »
THANK YOU!!! I have spent hours trying to get port forwarding to work.  Nobody ever mentions the bit about "reflections for port forwards" and "automatic outbound NAT for reflection".  After checking these boxes, my port forwards work!
Logged

Totte

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
Re: [Tutorial] How I do port forwarding - simple and straightforward
« Reply #19 on: November 08, 2021, 12:14:16 pm »
This post solved my 3-day headache. THANKS! <3 NAT Reflection did the trick..
Logged

NetGobbler

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 2
    • View Profile
Re: [Tutorial] How I do port forwarding - simple and straightforward
« Reply #20 on: December 19, 2021, 12:41:04 pm »
Is this still the best guide for newbies? I literally only will need to forward one port nowadays.
Logged

mr.random

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: [Tutorial] How I do port forwarding - simple and straightforward
« Reply #21 on: April 11, 2022, 03:13:30 pm »
i've tried this tutorial and others and the official how to   but i cannot get any of my port forwarding to work.  i've done port forwarding in the past on regular wifi routers but never anything like opnsense.

 i use a  noip domain to  rdp into my windows machine at home. 

internally i can rdp into any machine in my network in my lan.

the problem i have is can't  RDP from the wan. 

before my setup was    westdallas.ddns.net:9999  from the router  i would forward the 9999 port to win rdp ports in my lan to my server.  then i would use  9989  to connect to my desktop or another machine.

now i can't port forward anything  i need to set my truenas and my plex and my nextcloud but none of the port forward options are working.

i enabled nat reflection

i've spent a few hours on this can't get it to work.

I opened up the ports on the firewall for 9999 and 9989 and  WIN RDP  and in the firewall log i can see request hitting the firewall on port 9999 but it's not being routed to the internal ip i need it to go to.

i did set up the nat port forwarding as well .
Logged

Olli

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
Re: [Tutorial] How I do port forwarding - simple and straightforward
« Reply #22 on: June 07, 2022, 02:10:05 pm »
Hi there ans Thanks a lot for that manual, it works great. But how can I specify that only special hosts can access this ports, like a whitelisting.

Logged

  • Print
Pages: 1 [2]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Tutorials and FAQs »
  • [Tutorial] How I do port forwarding - simple and straightforward
 

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