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

Changing Network Subnet Limited User Access

Scheduled Pinned Locked Moved General pfSense Questions
24 Posts 5 Posters 5.1k 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.
  • D
    Derelict LAYER 8 Netgate
    last edited by Oct 5, 2014, 5:10 PM

    Never liked Auto NAT much.  IMHO it should always show you all the rules in play but be grayed out.  Thanks for the correction.

    Please find a client that can't access 192.168.3.1 and post it's ipconfig.

    Be sure there's not a rule somewhere that's 192.168.3.0/24 instead of "WIRELESS net"

    Chattanooga, Tennessee, USA
    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
    DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
    Do Not Chat For Help! NO_WAN_EGRESS(TM)

    1 Reply Last reply Reply Quote 0
    • P
      phil.davis
      last edited by Oct 6, 2014, 1:28 AM

      Never liked Auto NAT much.  IMHO it should always show you all the rules in play but be grayed out.  Thanks for the correction.

      That has all been fixed up in 2.2 - you can have Auto plus rules of your own in a mixed mode. The GUI shows what Auto is doing underneath plus any extra rules you have added. IMHO it will help a lot for people to see what is really happening and reduce the forum help needed when people touch NAT settings.

      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

      1 Reply Last reply Reply Quote 0
      • A
        alltime
        last edited by Oct 8, 2014, 5:26 PM

        I went ahead and assigned my machine 192.168.2.5. See below for the IP Configuration.
        The network addresses loaded correctly, however, requests timed out when attempting to ping our gateway or any other addresses.

        @phil.davis:

        There is nothing in the screen shots above that would prevent 192.168.2.x from accessing the webGUI at 192.168.3.1
        Is there anything in floating rules?
        If you "ping 192.168.3.1"from a 192.168.2.x device in WiFi I am guessing there is no reply? Does anything appear in the firewall log?
        Look in /tmp/rules.debug for 192.168.2 - maybe that will give some inspiration as to what setting somewhere accidentally refers to this address block.

        I went ahead and copied snippets that were relevant from the file. I'm not quite sure what I'm looking at, however, I do see 192.168.2.0/24 instead of /23 below.

        #SSH Lockout Table
        table <sshlockout>persist
        table <webconfiguratorlockout>persist
        #Snort tables
        table <snort2c>table <virusprot>table <bogons>persist file "/etc/bogons"
        table <vpn_networks>{ 192.168.2.0/24 }
        table <negate_networks>{ 192.168.2.0/24 }

        –-

        Subnets to NAT

        tonatsubnets = "{ 192.168.2.0/23 192.168.1.0/24 192.168.2.0/24 127.0.0.0/8  }"
        nat on $LIME  from $tonatsubnets port 500 to any port 500 -> 209.59.100.194/32 port 500 
        nat on $LIME  from $tonatsubnets to any -> 209.59.100.194/32 port 1024:65535


        rdr on { em3 bge0 em2 em1 em0 openvpn } from any to 209.59.100.196 -> 192.168.3.4 bitmask
        no nat on em3 from em3 to 192.168.3.4
        nat on em3 from 192.168.2.0/23 to 192.168.3.4 -> 192.168.3.1 port 1024:65535</negate_networks></vpn_networks></bogons></virusprot></snort2c></webconfiguratorlockout></sshlockout>

        1 Reply Last reply Reply Quote 0
        • D
          Derelict LAYER 8 Netgate
          last edited by Oct 8, 2014, 6:44 PM

          If you have manual outbound NAT enabled you need to make sure you have those rules right.  They don't track "LAN net", etc names.

          If you don't have Manual outbound NAT enabled, you have another interface on 192.168.2.0/24 or something else borked.  You need to take a look at everything again.  You also have the 192.168.2.0/24 network in your VPN config.

          nat on em3 from 192.168.2.0/23 to 192.168.3.4 -> 192.168.3.1 port 1024:65535

          What is that?

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 0
          • A
            alltime
            last edited by Oct 8, 2014, 7:30 PM Oct 8, 2014, 7:18 PM

            @Derelict:

            If you have manual outbound NAT enabled you need to make sure you have those rules right.  They don't track "LAN net", etc names.

            If you don't have Manual outbound NAT enabled, you have another interface on 192.168.2.0/24 or something else borked.  You need to take a look at everything again.  You also have the 192.168.2.0/24 network in your VPN config.

            nat on em3 from 192.168.2.0/23 to 192.168.3.4 -> 192.168.3.1 port 1024:65535

            What is that?

            I'm not quite sure, but what I'm assuming is that there is NAT on em3 which appears to be our "Wireless" interface. Regarding Manual NAT, I've really never messed with those rules.

            • I went ahead and switched to manual NAT, the same rules appeared so nothing changed from above.

            • I deleted the existing rules as you suggested. Internet access completely halted for everyone (no ping).

            • We then switched back to Automatic

            • We are now operational with the below NAT rules, or lack thereof.

            I switched to Manual to see if new rules would be created:

            Switched back to Automatic mode after deleting the existing rules (since they would be recreated) and retested the 192.168.2.1 network. Same result. I received all network information shown in prior posts, however, I cannot ping the local gateway.

            UPDATE:  I am just noticing here that according to NAT, our OpenVPN server is on the 192.168.2.1 network. Let me remove this.

            1 Reply Last reply Reply Quote 0
            • A
              alltime
              last edited by Oct 8, 2014, 7:32 PM

              Well I went ahead and removed the OpenVPN configuration and deleted the package since it is not in use. My machine still picks everything up as it did in the above ipconfig screenshot, but I still not ping the gateway or other IP's. Would you recommend leaving pfSense in Automatic or Manual mode?

              1 Reply Last reply Reply Quote 0
              • D
                Derelict LAYER 8 Netgate
                last edited by Oct 8, 2014, 7:39 PM

                If you don't need anything different from what auto provides, I'd leave it auto.

                Does /tmp/rules.debug show anything interesting now?

                Deleted the OpenVPN package?  What version of pfSense is this?

                Chattanooga, Tennessee, USA
                A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                Do Not Chat For Help! NO_WAN_EGRESS(TM)

                1 Reply Last reply Reply Quote 0
                • A
                  alltime
                  last edited by Oct 8, 2014, 7:47 PM

                  @Derelict:

                  If you don't need anything different from what auto provides, I'd leave it auto.

                  Does /tmp/rules.debug show anything interesting now?

                  Deleted the OpenVPN package?  What version of pfSense is this?

                  Auto it is then.

                  /tmp/rules.debug shows as follows (related to 192.168.2.*)

                  Outbound NAT rules

                  Subnets to NAT

                  tonatsubnets = "{ 192.168.2.0/23 192.168.1.0/24 127.0.0.0/8  }"
                  nat on $LIME  from $tonatsubnets port 500 to any port 500 -> 209.59.59.194/32 port 500 
                  nat on $LIME  from $tonatsubnets to any -> 209.59.59.194/32 port 1024:65535

                  –--

                  Reflection redirects and NAT for 1:1 mappings

                  rdr on { em3 bge0 em2 em1 em0 } from any to 209.59.59.194 -> 192.168.1.4 bitmask
                  no nat on em2 from em2 to 192.168.1.4
                  nat on em2 from 192.168.1.0/24 to 192.168.1.4 -> 192.168.1.1 port 1024:65535

                  rdr on { em3 bge0 em2 em1 em0 } from any to 209.59.59.196 -> 192.168.3.4 bitmask
                  no nat on em3 from em3 to 192.168.3.4
                  nat on em3 from 192.168.2.0/23 to 192.168.3.4 -> 192.168.3.1 port 1024:65535

                  I removed the configured settings of OpenVPN first, then deleted the package entirely. We are running: 2.1.5-RELEASE (i386)

                  1 Reply Last reply Reply Quote 0
                  • D
                    Derelict LAYER 8 Netgate
                    last edited by Oct 8, 2014, 7:50 PM

                    There is no OpenVPN package on 2.1.5.  It's part of the base system.  Are you talking about the client export utility?

                    Anyway. Now that all that is out of there, step back and take another look at the /tmp/rules.debug and all your interfaces and rules.

                    Chattanooga, Tennessee, USA
                    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                    DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                    Do Not Chat For Help! NO_WAN_EGRESS(TM)

                    1 Reply Last reply Reply Quote 0
                    • A
                      alltime
                      last edited by Oct 8, 2014, 7:53 PM

                      @Derelict:

                      There is no OpenVPN package on 2.1.5.  It's part of the base system.  Are you talking about the client export utility?

                      Anyway. Now that all that is out of there, step back and take another look at the /tmp/rules.debug and all your interfaces and rules.

                      My apologies, yes the client Export Utility for OpenVPN.

                      1 Reply Last reply Reply Quote 0
                      24 out of 24
                      • First post
                        24/24
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received