Subnet issue, can't reach hosts outside of subnet

  • Hello, i'm trying to get a better understanding of routers, and subnetting so I decided to try and set up my own little network

    I have my cable router with the IP address of

    I have a couple of hosts under this, one being my computer (

    I have also have a server of running Hyper-v with three hosts

    • Ubuntu (
    • PFsense (WAN of and (LAN of
    • Windows server (

    So here's my problem, I can ping from my PFsense router in either the network and the network

    If I try to ping sitting at my computer or any other host that resides on my network, I cannot reach my

    I've tried setting up a static route on my cable router:


    I've also set a static route on the PFsense router:
    gateway= WAN_DHCP -

    Like I said, I'm fairly new to this side of networking, so I'd really appreciate it if I could get some ideas of what I should be looking at changing. Thank you!

  • LAYER 8 Netgate

    What is a /32 network? /32 is one host only.

    Even if you get all that sorted out, here's one example of one problem

    Your computer is configured like this:

    Netmask: (/24) (Guess)
    Default gateway: (Guess)

    When your computer tries to reach it will see the traffic isn't on the local subnet and send it to the default gateway. Even if you put a route for in the cable router, it will have to hairpin the traffic back out the same interface it arrived on. This can result in ICMP redirects and other noisy, unsound crap.

    The proper solution to this problem is to put a route for with a destination of into your computer's routing table.

    You will quickly find that maintaining routes in hosts such as this will be extremely cumbersome.

    A better way is to design your network so each host only has one choice of router on its subnet, and that router is its default gateway.  Static routes in routers are still a pain, but are much easier to maintain.

  • I guess I meant /24

    I get the usefulness of the static routes, but how do I implement them correctly?

    Right now I have the static routes in as I mentioned above, but I keep getting a destination host unreachable from if i try to ping the pfsense router at

  • So I went into the settings of the pfsense router and disabled the firewall, which also disabled NAT, this now allows me to ping my router ( from my workstation (

    My question is why did I have to disable the firewall? I tried passing all traffic through the firewall, and disabling all the rules on NAT, but it didn't fix my issue.

    The only way I was able to route traffic between the two subnets was to just disable the firewall. Is there anyway to keep the firewall up and still be able to route through both subnets?

  • If I read your description correctly, you're trying to ping a LAN address (192.168.100.x) from a WAN address (192.168.1.x) across the firewall. This won't work, since your firewall will only NAT traffic from LAN to WAN out of the box. To ping an address from WAN to LAN, you'd have to set up a port forward rule on the WAN side of the firewall to send ICMP packets to a LAN address. The effect of this is that the address you would be pinging would have to be an alias address you set up on the WAN, which would then forward the icmp packets to the LAN address.

    I'm not entirely clear why you have your network set up this way. Ideally, you should put your trusted hosts on the LAN side of the firewall and just the untrusted ones on the WAN side. Looks like you're trying to use the pfsense more as a bridge than a firewall, given the description. If I'm wrong on this, then the next thing you should do is post a diagram (picture, not text) of your network setup with the LAN/WAN and associated addresses labelled so it's possible to get a clearer picture of what you have and what you're trying to do.

  • Below is a diagram, hopefully this helps. I'm trying to learn more about subnetting. I know this isn't an ideal network setup, but im looking to get a hang of the fundamentals. Why is it that I had to disable the firewall on my PFsense router just to be able to reach my virtual server ( on my computer (

  • LAYER 8 Netgate

    Did you pass traffic in pfSense WAN via firewall rules and or port forwards?

    You have to remember that as far as the default configuration is concerned, to pfSense is the internet.  Connections aren't just passed in from the internet to LAN.

  • Hi,

    Hook up your computer up behind pfSense.
    You'll be having a router after router setup, which needs some special thoughts if you consider using 'incoming trafic', but you could administer pfSense just fine, and you will have a normalized setup.

  • LAYER 8 Netgate

    im looking to get a hang of the fundamentals.

    Then configure your network in a fundamentally-sound way.  Not one that requires hairpinning traffic in and out of to get from to

    You also have to disable NAT in pfSense. or you won't be able to directly address at all.

Log in to reply