OPNsense Forum

English Forums => General Discussion => Topic started by: ecliPze507 on January 05, 2023, 07:05:23 pm

Title: Traffic from LAN to WAN not being port forwarded but it works from WLAN to WAN
Post by: ecliPze507 on January 05, 2023, 07:05:23 pm
I have port forwarding set up and its working for traffic of the WAN interface. Traffic origination from my LAN is not beeing forwareded correctly if I attempt to connect from within the LAN using the WAN adress. I added a Port forward for the LAN interface like this:

imagine this network:
LAN network: 192.168.1.0 /24
WAN static IP: 200.200.200.200
OPNsense LAN: 192.168.1.254
WLAN network: 192.168.2.0 /24

Interface: LAN
Proto: TCP
Address: *
Src Ports: *
Destination: 200.200.200.200
Dst Ports: 80
NAT IP: 192.168.1.100
NAT dst Ports: 80

The strangest thing about this Problem is, that its working if I access the port from within the WLAN network. I dont have any port forwards for the WLAN network and it seems like its absolutly identically configured to the LAN network. But obivously I am missing something here. Has anyone an idea whats happening here?
Title: Re: Traffic from LAN to WAN not being port forwarded but it works from WLAN to WAN
Post by: ecliPze507 on January 09, 2023, 12:35:09 pm
*bump*
Title: Re: Traffic from LAN to WAN not being port forwarded but it works from WLAN to WAN
Post by: ecliPze507 on January 11, 2023, 11:09:42 pm
*bump*
Title: Re: Traffic from LAN to WAN not being port forwarded but it works from WLAN to WAN
Post by: Demusman on January 12, 2023, 12:24:38 am
What exactly are you trying to do here??
LAN to WAN doesn't need any port forwarding, it's allowed by the default any any rule.
Title: Re: Traffic from LAN to WAN not being port forwarded but it works from WLAN to WAN
Post by: jlab on January 12, 2023, 04:29:36 pm
What exactly are you trying to do here??
LAN to WAN doesn't need any port forwarding, it's allowed by the default any any rule.

Yeah also confused, Port forwarding ?  :P. Is the op trying to get traffic from one network to another ? or ?