OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: mow4cash on February 11, 2017, 11:52:06 pm

Title: Port forward stopped working
Post by: mow4cash on February 11, 2017, 11:52:06 pm
What would cause all of my port forwards to stop working? I was making some changes to my vpn connection. For some reason all my traffic was being sent through the vpn and not respecting the firewall rules. I'm not sure what I did to get it work correctly but now all of my port forwarding is not working?

Edit: Port forwarding on the vpn works but not on the wan
Title: Re: Port forward stopped working
Post by: djGrrr on February 12, 2017, 07:05:47 pm
Please try running this command in shell/console as root:
sysctl net.pf.share_forward=0

And see if that makes any difference
Title: Re: Port forward stopped working
Post by: mow4cash on February 13, 2017, 02:31:19 am
It did not help.
Title: Re: Port forward stopped working
Post by: mow4cash on February 13, 2017, 05:23:57 am
Solved. My LAN firewall Default allow LAN to any rule source was set to any instead of LAN net.

EDIT: Spoke too soon. It's still not working, I have no clue what is going on. It's like it only wants to let me open ports on my Vpn or Wan but not both at the same time.

UPDATE: So I got port forwarding on the Wan to work by not pulling routes from the VPN. However having this enabled kills my port forwarding through my VPN. How can I have them both working? The VPN routes are strong enough to kill my Wan and force everything through the VPN.
Title: Re: Port forward stopped working
Post by: Julien on February 13, 2017, 02:37:10 pm
Solved. My LAN firewall Default allow LAN to any rule source was set to any instead of LAN net.

EDIT: Spoke too soon. It's still not working, I have no clue what is going on. It's like it only wants to let me open ports on my Vpn or Wan but not both at the same time.

UPDATE: So I got port forwarding on the Wan to work by not pulling routes from the VPN. However having this enabled kills my port forwarding through my VPN. How can I have them both working? The VPN routes are strong enough to kill my Wan and force everything through the VPN.
have you checked the firewall rules for your OPNVPN ?
I remember me having trouble with accessing the RDP over the RDP, after needed to create any to any rules on the VPN NIC.
Title: Re: Port forward stopped working
Post by: djGrrr on February 13, 2017, 03:27:04 pm
What OPNsense version are you running?
Title: Re: Port forward stopped working
Post by: mow4cash on February 13, 2017, 05:08:04 pm
What OPNsense version are you running?
17.1.1

[/quote]
have you checked the firewall rules for your OPNVPN ?
I remember me having trouble with accessing the RDP over the RDP, after needed to create any to any rules on the VPN NIC.
Yes, the firewall rules work fine on the VPN and Wan just not at the same time.

Here are my fire wall rules:
Title: Re: Port forward stopped working
Post by: mow4cash on February 13, 2017, 05:17:01 pm
Firewall rules: