Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    strange icmp behaviour

    Scheduled Pinned Locked Moved Firewalling
    2 Posts 2 Posters 410 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      chuchi2k2
      last edited by

      For test purposes i have a pfsense with 2 nics (LAN and LAN2) connected to a 2 switches
      PFSENSE LAN: 192.168.10.254/24
      PFSENSE LAN2: 192.168.20.254/24
      I have two computers (PC1 and PC2) attached to each switch.
      PC1: 192.168.10.1/24 GW: 192.168.10.254
      PC2: 192.168.20.1/24 GW: 192.168.20.254c

      The network diagram is more or less like this:
      gns3_nTPLxc2NkD.png

      The rules in PFSENSE are this (LAN and LAN2):
      tvnviewer_JU5fwz1wLw.png
      tvnviewer_g05L2p6zQ9.png

      I have only allowed ICMP protocol (for ping) from LAN to LAN2
      ie: ping from PC1 to PC2
      Explicitly blocked ICMP protocol from LAN2 to LAN:
      ie: ping from PC2 to PC1

      Testing this scenario confuses me, because:
      .- If i start the ping from PC2 to PC1 there is no reply from PC1 (it works as it should). I leave the ping works continuous (-t)
      .- If i start the ping from PC1 to PC2 there are replys from PC2 (it works as it should) but suddenly the ping from PC2 to PC1 appears reply. ?¿

      Can someone explains this strange behaviour?

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @chuchi2k2
        last edited by johnpoz

        @chuchi2k2 well since icmp is a stateless protocol, but with stateful firewall still want to keep track.. So it creates states..

        I would guess that once you create the pseudo state when you ping from pc1 to pc2, that his state is allowing the traffic from pc2 to pc1

        Here pinging from my lan to my dmz (192.168.3) you can see states on both the lan and dmz interface being created to track this traffic.

        state.jpg

        edit: I just tried duplicating your test, started a ping from 3.32 to 9.100, fails - left it running and started a ping from 9.100 to 3.32 which works, but the other ping was still failing.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.