Port forwarding issue?



  • Hi,

    I'm trying to figure out a port forwarding issue which i can't wrap my head around. I want to port forward port 3070 from WAN to a loacl machine on my OPT1 network.

    My pfsense box is my edge router, since my ISP modem is in bridge mode.

    I'v set the NAT rule:

    and firewall rule:

    Opened inbound ports on the client's firewall:

    And even outbound (which shouldn't be closed anyway, but just to be sure:

    The gateway on the client's machine is set to the pfSense box:

    Now, when i use an external tool like http://www.ipfingerprints.com/portscan.php (i tried several), it's always reported as closed:

    But when i check the firewall log:

    Things seem fine.

    States:

    What am i missing here?

    EDIT: Sorry for creating this post in 3 steps, the "Preview" and "Save" buttons are just too close next to each other. :P



  • I too am having a similar issue.  i have followed every write up out there tried it all i have my modem bridged to the router with all pppoe settings in pfsense and have a great no problem connection just am unable to forward any ports



  • Rilo: your images are all broken, they 403 from dropbox.

    goody1928: start a new thread describing what you're trying to do, please don't hijack other people's threads.

    for both, the answer is here somewhere: https://doc.pfsense.org/index.php/Port_Forward_Troubleshooting



  • @cmb:

    Rilo: your images are all broken, they 403 from dropbox.

    Yeah, stupid web version of dropbox doesn't give the correct hotlinks. Should work now.

    @cmb:

    the answer is here somewhere: https://doc.pfsense.org/index.php/Port_Forward_Troubleshooting

    I've read that, therfore i created all the screenshots to verify i checked the suggestions in there.


  • Rebel Alliance Global Moderator

    So clearly pfsense shows its allowing the traffic..  So as per the doc listed - why don you not sniff and validate the traffic actually leaves pfsense interface and sniff on where you forwarding that it actually sees the traffic.. And is it responding..

    5. Use a Packet Capture or tcpdump to see what is happening on the wire.

    According to your state table pfsense sent the syn, but your machine didn't answer..  Sure that machine is actually listening on 3070??  Great you opened the firewall, but if nothing listing never going to work.  Also your outbound rules are wrong dest sure would not be 3070..  That would be the source port of the outbound traffic to who started the conversation with you to 3070.

    That looks to be the built in windows firewall - any sort of 3rd party firewall/security software on that box?  Simple netstat -an will show you what ports are listing on the box..

    example

    C:>netstat -an

    Active Connections

    Proto  Local Address          Foreign Address        State
      TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
      TCP    0.0.0.0:445            0.0.0.0:0              LISTENING
      TCP    0.0.0.0:1025          0.0.0.0:0              LISTENING

    snip

    UDP    0.0.0.0:3052          :
      UDP    0.0.0.0:3389          :
      UDP    0.0.0.0:4500          :



  • OK, so i finally had some time to dig into this.

    @johnpoz:

    According to your state table pfsense sent the syn, but your machine didn't answer..  Sure that machine is actually listening on 3070??  Great you opened the firewall, but if nothing listing never going to work.

    Oh man, that was it. These port checker websites of course assume there is already some application listening on the specified port. I tried PFPortChecker from Portforward.com (nice little tool btw.) and everything turned out to be working just fine :)

    Thanks for your help!