pfsense port forwards.

jadams

2[H]4U
Joined
Mar 14, 2010
Messages
4,086
I have about 15 VM's behind my pfsense v2.0.1 all running multiple game servers at a remote location. Keeping in mind I also have VPN to this location through OpenVPN

With CS:GO coming out soon I thought it was time to deploy a new VM and install the server.

I was running a CSS server which used the same ports. I had shut that down. Removed the port forward entries for that machines as well as the port alias associated with it.

I created a new port alias for CS:GO which contain 27015 and 27005. I forwarded UDP the ports to the new machine using the alias and I cannot connect through the WAN IP. I turned off Windows Firewall just to be sure. However I can connect through VPN. Problem must be in the firewall soemwhere.

Thinking that by some off chance that maybe the game server itself was rejecting some sort of connections I setup an FTP server and had it run on port 2121. Forwarded that port and same thing. Cannot connect through WAN, but can connect through VPN.

I then changed my production FTP server over to port 2121 and changed the port forward ip to that machine. I could connect through WAN!!

Changed it back to the CS:GO server (which is still running ftp server on 2121) and cannot connect. <-------Interestingly though! Even after applying the port forward change, when I try to connect I can clearly see the FTP admin interface on my production FTP alerting me of a connection! WTF! The port forward isnt even on that machine anymore. Thinking this was way out of whack i removed the port forward for 2121 altogether. It STILL connects to the production ftp server. I'm at a total loss.

I've cleared the states on this thing so nothing is still hanging around. Rebooted it to clear anything. I'm stumped! Any ideas?
 
these are the sorts of pfsense bugs that make me a little uneasy...

You can rest a little easy.

I looked at the state table and saw that traffic on port 27015 was now being forwarded to my UT3 server. Took a look at that alias and sure enough there was an entry for 27000:28000. Removed the line from the alias and remapped all the port forwards.

It now works.

However it doesnt explain the goofyness with the ftp servers which doesnt seem to be happening this morning.

Note to self.... no working on firewalls at 11 at night when you're too tired to see the most obvious things.
 
these are the sorts of pfsense bugs that make me a little uneasy...

I haven't seen a routing or firewalling bug in release versions of pfsense for years. In add-on user maintained packages, sometimes, but the base system, no.
 
Back
Top