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

    WAN DHCP Asign public ip

    Scheduled Pinned Locked Moved General pfSense Questions
    22 Posts 3 Posters 6.0k 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.
    • W
      wallabybob
      last edited by

      Your configuration is rather difficult for FreeBSD to work with.

      Your WAN IP address is 46.31.x.x/8. Your default gateway is 195.10.125.82. Your default gateway is not on the WAN net and there is no gateway on the WAN net to get to the default gateway.

      Your DHCP server has IP address 192.168.1.254 a private IP address. Whose server is that? Why is it telling this particular client to use an "off network" default gateway? It should specify a default gateway on the network of the interface.

      1 Reply Last reply Reply Quote 0
      • B
        bilbo
        last edited by

        The 192.168.1.254 is the speedtouch. Once this assigns the public ip to pfsense I would presume it becomes invisible to pfsense and should just forward traffic like a dumb modem?

        1 Reply Last reply Reply Quote 0
        • W
          wallabybob
          last edited by

          @bilbo:

          The 192.168.1.254 is the speedtouch. Once this assigns the public ip to pfsense I would presume it becomes invisible to pfsense and should just forward traffic like a dumb modem?

          If that's what is supposed to happen then the speedtouch should give its IP address as the IP address of the default gateway.

          I have a dumb ADSL modem on my home network and it does "ppp passthrough" with the ADSL link, consequently my pfSense WAN link is a PPPoE link.

          I downloaded what claims to be the manual for the Speedtouch 780wl and I suspect it would be more effective to configure pfSense WAN interface for PPPoE and the speedtouch in Bridged Ethernet or Routed PPPoE (with PPPoE relay) (p40 of the manual I downloaded). Unfortunately a quick search didn't turn up any more details about these modes nor what assign public IP does.

          1 Reply Last reply Reply Quote 0
          • B
            bilbo
            last edited by

            Unfortunately am on a PPPoA connection, hence this problem.

            I did assign public ip address to a laptop here and had internet connectivity.

            Ethernet adapter Local Area Connection:

            Connection-specific DNS Suffix  . : lan
              Link-local IPv6 Address . . . . . : fe80::d10c:14c9:
              IPv4 Address. . . . . . . . . . . : 46.131.123.123
              Subnet Mask . . . . . . . . . . . : 255.0.0.0
              Default Gateway . . . . . . . . . : 195.10.125.82

            Tunnel adapter isatap.{5527EAED-CAD0-4A40-AE31-608A0A93A241}:

            Media State . . . . . . . . . . . : Media disconnected
              Connection-specific DNS Suffix  . :

            Tunnel adapter Teredo Tunneling Pseudo-Interface:

            Media State . . . . . . . . . . . : Media disconnected
              Connection-specific DNS Suffix  . :

            Tunnel adapter 6TO4 Adapter:

            Connection-specific DNS Suffix  . : lan
              IPv6 Address. . . . . . . . . . . : 2002:2e1f:ceb6::2e1f:ceb6
              Default Gateway . . . . . . . . . :

            C:\Users\Bil>PING 195.10.125.82

            Pinging 195.10.125.82 with 32 bytes of data:
            Request timed out.

            Ping statistics for 195.10.125.82:
                Packets: Sent = 1, Received = 0, Lost = 1 (100% loss),
            Control-C
            ^C
            C:\Users\Bil>ROUTE PRINT

            Interface List
            16…00 1c 23 09 df fa ......Broadcom NetXtreme 57xx Gigabit Controller
              1...........................Software Loopback Interface 1
            21...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
            12...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
            13...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter

            IPv4 Route Table

            Active Routes:
            Network Destination        Netmask          Gateway      Interface  Metric
                      0.0.0.0          0.0.0.0    195.10.125.82    46.123.123.123    20
                    46.0.0.0        255.0.0.0        On-link    46.123.123.123    276
                46.123.123.123  255.255.255.255        On-link    46.123.123.123  276
              46.255.255.255  255.255.255.255        On-link    46.123.123.123    276
                    127.0.0.0        255.0.0.0        On-link        127.0.0.1    306
                    127.0.0.1  255.255.255.255        On-link        127.0.0.1    306
              127.255.255.255  255.255.255.255        On-link        127.0.0.1    306
                    224.0.0.0        240.0.0.0        On-link        127.0.0.1    306
                    224.0.0.0        240.0.0.0        On-link    46.123.123.123    276
              255.255.255.255  255.255.255.255        On-link        127.0.0.1    306
              255.255.255.255  255.255.255.255        On-link    46.123.123.123  276

            C:\Users\Bil>PING 8.8.8.8

            Pinging 8.8.8.8 with 32 bytes of data:
            Reply from 8.8.8.8: bytes=32 time=55ms TTL=51
            Reply from 8.8.8.8: bytes=32 time=56ms TTL=51
            Reply from 8.8.8.8: bytes=32 time=55ms TTL=51
            Reply from 8.8.8.8: bytes=32 time=56ms TTL=51

            Ping statistics for 8.8.8.8:
                Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
            Approximate round trip times in milli-seconds:
                Minimum = 55ms, Maximum = 56ms, Average = 55ms

            C:\Users\Bil>TRACERT 8.8.8.8

            Tracing route to google-public-dns-a.google.com [8.8.8.8]
            over a maximum of 30 hops:

            1    6 ms    99 ms    99 ms  dsldevice.lan [192.168.1.254]            <==== how does it doe this?
              2    *      74 ms    32 ms  195.10.125.113
              3    32 ms    33 ms    32 ms  195.10.125.114
              4    32 ms    31 ms    33 ms  195.10.119.142
              5    56 ms    45 ms    46 ms  195.50.122.145
              6    46 ms    46 ms    46 ms  195.50.122.82
              7    46 ms    49 ms    51 ms  209.85.255.76
              8    46 ms    46 ms    46 ms  209.85.253.196
              9    53 ms    52 ms    53 ms  209.85.243.33
            10  106 ms  159 ms  105 ms  216.239.49.36
            11    56 ms    *        *    209.85.255.118
            etc…...

            1 Reply Last reply Reply Quote 0
            • W
              wallabybob
              last edited by

              @bilbo:

              Unfortunately am on a PPPoA connection, hence this problem.

              PPPoA = PPP over ATM. PPPoE = PPP over Ethernet. I haven't looked into it but I suspect the differences are purely related to the different communications media: ATM headers and segmentation vs Ethernet headers.

              The document I downloaded specifically discusses PPPoE on the router LAN side and PPPoA or PPPoE on the WAN side without any mention of restriction on translation between the two.

              @bilbo:

              I did assign public ip address to a laptop here and had internet connectivity.

              Windows laptop? Windows is not FreeBSD!

              @bilbo:

              C:\Users\Bil>TRACERT 8.8.8.8

              Tracing route to google-public-dns-a.google.com [8.8.8.8]
              over a maximum of 30 hops:

              1    6 ms    99 ms    99 ms  dsldevice.lan [192.168.1.254]            <==== how does it doe this?

              I don't know. Maybe the modem looks for traceroute packets and responds.

              Its clear DHCP from your modem says IP address: 46.x.x.x and default gateway 195.10.125.82. This information alone is insufficient in that it doesn't provide a way to get to 195.10.125.82. Perhaps the route is, by convention, implied: "use the interface on which DHCP information was received". Perhaps the information is provided in some DHCP options. Further investigation is required to answer the question "How does Windows know which interface to use to get to 195.10.125.82?" ARP on ALL LAN interfaces?

              dhclient reported: Jan 24 20:52:42    dhclient: /sbin/route add default 195.10.125.82 PERHAPS this is the command dhclient uses to tell the kernel the default gateway.  There is no information here to tell the kernel how to get to 195.10.125.82 because 195.10.125.80 is not in any network to which the computer is connected. The FreeBSD man page suggests the route command can have arguments specifying what interface to use. My very limited testing suggests that facility is broken or the documentation about this facility is woefully inadequate.

              I suggest your options include:
              1. If you insist on using the modem's "assign public IP" mode and pfSense you are venturing along a less commonly travelled path and should be prepared for a considerable time investment.
              2. If you insist on using the modem's "assign public IP mode" and don't care which firewall/router you use there are probably a number of options. Maybe you could even use m0n0wall which is very like pfSense but it MIGHT have a differnet combination of packages that work with the modem's "assign public IP" mode.
              3. You could try the modem configured for PPPoA on WAN, PPPoE on LAN and pfSense's wan interface in PPPoE.
              4. You could try a "dumb" ADSL modem (such as the Tenda D820B which I have been using for over a year and cost me less that the local equivalent of US$20) with pfSense's WAN interface in PPPoE.

              Here are some examples of the things I saw when trying to manipulate a route specifying an interface (I was attempting to create and reference a route to 10.0.0.0/8 with gateway 195.10.182.82 accessed through interface vr0)

              The man page is not clear about the command syntax:```

              [2.0.1-RELEASE][root@pfsense2.example.org]/root(1): route add 10.0.0.0/8 195.10.182.82 -interface vr0
              route: writing to routing socket: Network is unreachable
              add net 10.0.0.0: gateway 195.10.182.82: Network is unreachable
              [2.0.1-RELEASE][root@pfsense2.example.org]/root(2): route add 10.0.0.0/8 -interface vr0 195.10.182.82
              add net 10.0.0.0: gateway vr0
              [2.0.1-RELEASE][root@pfsense2.example.org]/root(3):

              Apparently the second form is correct.
              
              What does the routing table look like:
              

              [2.0.1-RELEASE][root@pfsense2.example.org]/root(4): netstat -r -n -f inet
              Routing tables

              Internet:
              Destination        Gateway            Flags    Refs      Use  Netif Expire
              default            192.168.211.173    UGS        0      383    vr0
              2.0.0.0&0xc30ab652 00:30:18:b0:19:85  US          0        0    vr0
              127.0.0.1          link#4            UH          0      210    lo0
              192.168.51.128/25  link#9            U          0        0 run0_w
              192.168.51.211    link#9            UHS        0        0    lo0
              192.168.211.128/25 link#3            U          0    39297    vr0
              192.168.211.173    00:30:18:b0:19:85  UHS        0    2278    vr0
              192.168.211.217    link#3            UHS        0        0    lo0
              192.168.217.0/24  link#2            U          0        0    rl0
              192.168.217.173    link#2            UHS        0        0    lo0

              
              Can I delete that route I added earlier?```
              
              [2.0.1-RELEASE][root@pfsense2.example.org]/root(9): route delete 10.0.0.0/8
              route: writing to routing socket: No such process
              delete net 10.0.0.0: not in table
              [2.0.1-RELEASE][root@pfsense2.example.org]/root(10): route delete 2.0.0.0/8
              route: writing to routing socket: No such process
              delete net 2.0.0.0: not in table
              [2.0.1-RELEASE][root@pfsense2.example.org]/root(11): route delete 10.0.0.0/8 -interface vr0 195.10.182.82
              route: writing to routing socket: No such process
              delete net 10.0.0.0: gateway vr0: not in table
              [2.0.1-RELEASE][root@pfsense2.example.org]/root(12): netstat -r -n -f inet
              Routing tables
              
              Internet:
              Destination        Gateway            Flags    Refs      Use  Netif Expire
              default            192.168.211.173    UGS         0      383    vr0
              2.0.0.0&0xc30ab652 00:30:18:b0:19:85  US          0       12    vr0
              127.0.0.1          link#4             UH          0      210    lo0
              192.168.51.128/25  link#9             U           0        0 run0_w
              192.168.51.211     link#9             UHS         0        0    lo0
              192.168.211.128/25 link#3             U           0    39719    vr0
              192.168.211.173    00:30:18:b0:19:85  UHS         0     2718    vr0
              192.168.211.217    link#3             UHS         0        0    lo0
              192.168.217.0/24   link#2             U           0        0    rl0
              192.168.217.173    link#2             UHS         0        0    lo0
              [2.0.1-RELEASE][root@pfsense2.example.org]/root(13): 
              
              ```Apparently not.
              
              Can I get some information about that strange 2.0.0.0 route?```
              
              [2.0.1-RELEASE][root@pfsense2.example.org]/root(13): route get default
                 route to: default
              destination: default
                     mask: default
                  gateway: pfsense
                interface: vr0
                    flags: <up,gateway,done,static>recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire
                     0         0         0         0      1500         1         0 
              [2.0.1-RELEASE][root@pfsense2.example.org]/root(14): route get 2.0.0.0
              route: writing to routing socket: No such process
              [2.0.1-RELEASE][root@pfsense2.example.org]/root(15): route get 10.0.0.0
              route: writing to routing socket: No such process
              [2.0.1-RELEASE][root@pfsense2.example.org]/root(16): route get
              route: writing to routing socket: Invalid argument
              [2.0.1-RELEASE][root@pfsense2.example.org]/root(17): route get 10.0.0.0/8
              route: writing to routing socket: No such process
              [2.0.1-RELEASE][root@pfsense2.example.org]/root(18): route get 10.0.0.0/8 -interface vr0 195.10.182.82
                 route to: 10.0.0.0
              destination: ANantes-651-1-49-net.w2-0.abo.wanadoo.fr
                     mask: 195.10.182.82
                interface: vr0
                    flags: <up,done,static>recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire
                     0         0         0         0      1500         1         0 
              [2.0.1-RELEASE][root@pfsense2.example.org]/root(19):</up,done,static></up,gateway,done,static> 
              ```That is a strange network mask. A _nslookup_ of ANantes-651-1-49-net.w2-0.abo.wanadoo.fr returned 2.0.0.0 Probably I didn't get the command syntax correct. A subsequent re-reading of the route man page suggests the -interface option is intended for a point-to-point interface and there is no mechanism for specifying BOTH a gateway by IP address AND an interface to get to that gateway. I wonder how PPPoE deals with this?
              1 Reply Last reply Reply Quote 0
              • B
                bilbo
                last edited by

                I appreciate the time you have taken to look at this. If I get the wan ip to pfsense in a working fashion I'll let you know.

                1 Reply Last reply Reply Quote 0
                • B
                  bilbo
                  last edited by

                  heres the routing table from the speedtouch:

                  Administrator}[ip]=>rtlist
                  abel                        Destination          Gateway  Interface    Mtc Sta
                  us
                                            10.0.0.138/32      127.0.0.1  loop          0  [UP

                  10.0.0.255/32      127.0.0.1  loop          0  [UP

                  46.31.205.68/32      127.0.0.1  loop          0  [UP

                  127.0.0.1/32      127.0.0.1  loop          0  [UP

                  192.168.1.254/32      127.0.0.1  loop          0  [UP

                  192.168.1.255/32      127.0.0.1  loop          0  [UP

                  255.255.255.255/32      127.0.0.1  loop          0  [UP

                  from_46.31.204.160/32    192.168.1.0/24                  LocalNetwork  0  [UP

                  195.10.125.82/32    46.31.205.68  Internet      0  UP

                  46.31.200.20/32                  Internet      10  UP

                  212.30.16.252/32                  Internet      10  UP

                  10.0.0.0/24      10.0.0.138  LocalNetwork  0  [UP

                  192.168.1.0/24  192.168.1.254  LocalNetwork  0  [UP

                  0.0.0.0/0                  Internet      10  UP

                  The gateway is not reachable when trying to ping when using the speetouch or my other netgear on their own yet internet works fine. How does that work if the gateway is not reachable?

                  1 Reply Last reply Reply Quote 0
                  • B
                    bilbo
                    last edited by

                    Think I'll give up on this dhcp spoofing method, it seems linux based systems do have trouble dealing with it and I cannot use a modem in bridge mode due to being PPPoA. The vigor 120 makes this possible I think but I am not ready to purchase anything else at this stage.

                    I may have found an alternative, PPPTP relay:  http://forums.whirlpool.net.au/archive/595905

                    I have set the speedtouch up as stated but having trouble setting up the PPTP section on pfsense, can you please advise how this should be setup or if this should even work?

                    The speedtouch has lan ip 10.0.0.38 and 192.168.1.254, one of which I think is a vlan.

                    1 Reply Last reply Reply Quote 0
                    • W
                      wallabybob
                      last edited by

                      @bilbo:

                      I cannot use a modem in bridge mode due to being PPPoA.

                      I don't know why you say that. As I wrote earlier, the document I downloaded describes using PPPoA on WAN side and PPPoE client on LAN side.

                      1 Reply Last reply Reply Quote 0
                      • B
                        bilbo
                        last edited by

                        Can you provide a link to said doc please?

                        1 Reply Last reply Reply Quote 0
                        • W
                          wallabybob
                          last edited by

                          http://www.cerberusnetworks.co.uk/PDF/780wl_userguide.pdf

                          1 Reply Last reply Reply Quote 0
                          • B
                            bilbo
                            last edited by

                            I could not see any info on how to get pppoa wan pppoe client working in the manual, also could not see any other instances of it working on the net.

                            However  :) I seem to be up and running using the pptp relay! Wan is getting public ip and internet is accessible. tfg.

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