Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Port forwarding: trying to get access to my exsi host via wireless and opnsense
« previous
next »
Print
Pages: [
1
]
Author
Topic: Port forwarding: trying to get access to my exsi host via wireless and opnsense (Read 802 times)
jphilipfry
Newbie
Posts: 5
Karma: 0
Port forwarding: trying to get access to my exsi host via wireless and opnsense
«
on:
January 19, 2024, 11:25:41 pm »
Hi I hope someone can help me with this issue. What I am trying to achieve is that I am on a different subnet and I'm trying to connect to my exsi host with port forward, but I can't. So far, I can only connect to my exsi host if my laptop is connected via ethernet on LAN 1 since they can ping to each other.
I have 2 Lans on my opnsense box configured. It's a VP 2410 if that matters.
Lan 1: 192.168.10.1 which is my opnsense gui
Lan 2: 192.168.20.2 which is my exsi host.
What I tried to setup in the firewall as I thought this was the issue was
Interface: wan
Protocol: TCP
source Address: ANY
source Ports: ANY
Destination: LAN2 address
Destination port range: 80 to 80
IP redirected: 192.168.20.2/24 (which is exsi host I am trying to get traffic sent to)
ports redirected: HTTP
Thanks if anyone needs more info, I can send photos of the other rules, but they are just allow internet rules with any on all the settings on my LAN, LAN2.
I will say I can't ping my WAN address which is a private ip so that's weird, but that's because it's behind another router I assume. (I'm on a college campus). I don't know if that's an issue but all my interfaces are up (green).
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: Port forwarding: trying to get access to my exsi host via wireless and opnsense
«
Reply #1 on:
January 20, 2024, 12:03:23 am »
If you want to port forward port 80 from WAN to the host on LAN2, you want to first, change the port for OPN as it is normally listening on ports 80 and 443.
Then on NAT | Port Forward you'd want:
Interface: WAN
Protocol: TCP
source Address: ANY
source Ports: ANY
Destination: WAN address
Destination port range: 80 to 80
IP redirected: 192.168.20.2/32 (which is exsi host I am trying to get traffic sent to) #note the /32 is single host, /24 is a whole network.
ports redirected: HTTP
Logged
jphilipfry
Newbie
Posts: 5
Karma: 0
Re: Port forwarding: trying to get access to my exsi host via wireless and opnsense
«
Reply #2 on:
January 20, 2024, 12:13:36 am »
Thanks a lot! I'll try this for sure.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Port forwarding: trying to get access to my exsi host via wireless and opnsense